From 88248cc90c18ab670468e72fef9019ba8a8c2f0a Mon Sep 17 00:00:00 2001 From: Ghislain MARY Date: Tue, 22 Sep 2015 12:48:11 +0200 Subject: [PATCH] Fix build of liblinphone-tester for Windows 10. --- .../liblinphone-tester-runtime-component.vcxproj | 4 ++++ .../liblinphone-tester-static.vcxproj | 1 + .../liblinphone-tester/liblinphone-tester.sln | 16 +++++++++++++++- tester/common/bc_tester_utils.h | 3 +++ tester/liblinphone_tester_windows.cpp | 2 +- 5 files changed, 24 insertions(+), 2 deletions(-) diff --git a/build/windows10/liblinphone-tester/liblinphone-tester-runtime-component/liblinphone-tester-runtime-component.vcxproj b/build/windows10/liblinphone-tester/liblinphone-tester-runtime-component/liblinphone-tester-runtime-component.vcxproj index a66c5e7ed..351aac008 100644 --- a/build/windows10/liblinphone-tester/liblinphone-tester-runtime-component/liblinphone-tester-runtime-component.vcxproj +++ b/build/windows10/liblinphone-tester/liblinphone-tester-runtime-component/liblinphone-tester-runtime-component.vcxproj @@ -45,6 +45,9 @@ {6a18bbb9-08d1-41a8-be57-17fc992cc36f} + + {bb8ebb21-f22c-4a68-99cb-67fa36c495e3} + {b84d5c3b-6de5-49c8-b3dd-5eb67b01a527} @@ -97,6 +100,7 @@ false + $(SolutionDir)$(Platform)\$(Configuration)\ diff --git a/build/windows10/liblinphone-tester/liblinphone-tester-static/liblinphone-tester-static.vcxproj b/build/windows10/liblinphone-tester/liblinphone-tester-static/liblinphone-tester-static.vcxproj index 80e57dedb..b5cb1b46c 100644 --- a/build/windows10/liblinphone-tester/liblinphone-tester-static/liblinphone-tester-static.vcxproj +++ b/build/windows10/liblinphone-tester/liblinphone-tester-static/liblinphone-tester-static.vcxproj @@ -108,6 +108,7 @@ false + $(SolutionDir)$(Platform)\$(Configuration)\ diff --git a/build/windows10/liblinphone-tester/liblinphone-tester.sln b/build/windows10/liblinphone-tester/liblinphone-tester.sln index 5c6955078..c0e2247c7 100644 --- a/build/windows10/liblinphone-tester/liblinphone-tester.sln +++ b/build/windows10/liblinphone-tester/liblinphone-tester.sln @@ -1,7 +1,7 @@  Microsoft Visual Studio Solution File, Format Version 12.00 # Visual Studio 14 -VisualStudioVersion = 14.0.22823.1 +VisualStudioVersion = 14.0.23107.0 MinimumVisualStudioVersion = 10.0.40219.1 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "liblinphone-tester", "liblinphone-tester.csproj", "{EC78E1D3-6FD8-4CAF-8D3F-6F4F97093BE5}" EndProject @@ -63,6 +63,8 @@ Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "webrtc", "..\..\..\..\msweb EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "libmsbcg729", "..\..\..\..\bcg729\build\windows10\libmsbcg729\libmsbcg729.vcxproj", "{ACF5EA95-D647-4D0C-8F97-2CD9AAE8A2E0}" EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "libmsopenh264", "..\..\..\..\msopenh264\build\windows10\libmsopenh264\libmsopenh264.vcxproj", "{BB8EBB21-F22C-4A68-99CB-67FA36C495E3}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|ARM = Debug|ARM @@ -439,6 +441,18 @@ Global {ACF5EA95-D647-4D0C-8F97-2CD9AAE8A2E0}.Release|x64.Build.0 = Release|x64 {ACF5EA95-D647-4D0C-8F97-2CD9AAE8A2E0}.Release|x86.ActiveCfg = Release|Win32 {ACF5EA95-D647-4D0C-8F97-2CD9AAE8A2E0}.Release|x86.Build.0 = Release|Win32 + {BB8EBB21-F22C-4A68-99CB-67FA36C495E3}.Debug|ARM.ActiveCfg = Debug|ARM + {BB8EBB21-F22C-4A68-99CB-67FA36C495E3}.Debug|ARM.Build.0 = Debug|ARM + {BB8EBB21-F22C-4A68-99CB-67FA36C495E3}.Debug|x64.ActiveCfg = Debug|x64 + {BB8EBB21-F22C-4A68-99CB-67FA36C495E3}.Debug|x64.Build.0 = Debug|x64 + {BB8EBB21-F22C-4A68-99CB-67FA36C495E3}.Debug|x86.ActiveCfg = Debug|Win32 + {BB8EBB21-F22C-4A68-99CB-67FA36C495E3}.Debug|x86.Build.0 = Debug|Win32 + {BB8EBB21-F22C-4A68-99CB-67FA36C495E3}.Release|ARM.ActiveCfg = Release|ARM + {BB8EBB21-F22C-4A68-99CB-67FA36C495E3}.Release|ARM.Build.0 = Release|ARM + {BB8EBB21-F22C-4A68-99CB-67FA36C495E3}.Release|x64.ActiveCfg = Release|x64 + {BB8EBB21-F22C-4A68-99CB-67FA36C495E3}.Release|x64.Build.0 = Release|x64 + {BB8EBB21-F22C-4A68-99CB-67FA36C495E3}.Release|x86.ActiveCfg = Release|Win32 + {BB8EBB21-F22C-4A68-99CB-67FA36C495E3}.Release|x86.Build.0 = Release|Win32 EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE diff --git a/tester/common/bc_tester_utils.h b/tester/common/bc_tester_utils.h index 8eeaa1c44..75da5d465 100644 --- a/tester/common/bc_tester_utils.h +++ b/tester/common/bc_tester_utils.h @@ -29,6 +29,9 @@ #ifndef snprintf #define snprintf _snprintf #endif +#ifndef strdup +#define strdup _strdup +#endif #endif extern int bc_printf_verbosity_info; diff --git a/tester/liblinphone_tester_windows.cpp b/tester/liblinphone_tester_windows.cpp index 30b480a8c..946345763 100644 --- a/tester/liblinphone_tester_windows.cpp +++ b/tester/liblinphone_tester_windows.cpp @@ -110,7 +110,7 @@ void LibLinphoneTester::runAllToXml() init(true); FILE *f = fopen(logFile, "w"); ortp_set_log_file(f); - bc_tester_start(); + bc_tester_start("liblinphone-tester"); bc_tester_uninit(); fclose(f); free(xmlFile);