From 46053145691fda8227ff44cf761ec0e4e286abfb Mon Sep 17 00:00:00 2001 From: Raymond Wen Date: Thu, 8 Mar 2012 14:09:28 +0800 Subject: [PATCH] fix bug: the project can't compile on windows with vs 2005 - define UPNP_USE_MSVCPP when necessary - set release build's output directory to be consistent with debug build - add missing ClientSubscription.c to libupnp project - reference correct source files in sample project (backport of commit 0097180ce48fb94a121f369e57a6eafcc1f0b6da) --- build/vc8/ixml.vcproj | 434 ++++++++++++++++++------------------ build/vc8/libupnp.vcproj | 8 +- build/vc8/threadutil.vcproj | 25 +-- build/vc8/tvcombo.vcproj | 16 +- build/vc8/tvctrlpt.vcproj | 14 +- build/vc8/tvdevice.vcproj | 14 +- 6 files changed, 256 insertions(+), 255 deletions(-) diff --git a/build/vc8/ixml.vcproj b/build/vc8/ixml.vcproj index 39a370e..792f97d 100644 --- a/build/vc8/ixml.vcproj +++ b/build/vc8/ixml.vcproj @@ -1,217 +1,217 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/build/vc8/libupnp.vcproj b/build/vc8/libupnp.vcproj index 76ea8ac..bcf1c56 100644 --- a/build/vc8/libupnp.vcproj +++ b/build/vc8/libupnp.vcproj @@ -50,7 +50,7 @@ Optimization="2" InlineFunctionExpansion="1" AdditionalIncludeDirectories="..\..\pthreads\include;..\..\ixml\src\inc;..\..\ixml\inc;..\..\threadutil\inc;..\..\upnp\inc;..\..\upnp\src\inc;..\inc;..\msvc" - PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_USRDLL;LIBUPNP_EXPORTS;PTW32_STATIC_LIB;UPNP_STATIC_LIB;UPNP_USE_MSVCPP;_CRT_SECURE_NO_WARNINGS" + PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_USRDLL;LIBUPNP_EXPORTS;PTW32_STATIC_LIB;UPNP_USE_MSVCPP;_CRT_SECURE_NO_WARNINGS" StringPooling="true" RuntimeLibrary="0" EnableFunctionLevelLinking="true" @@ -80,8 +80,8 @@ OutputFile="$(OutDir)\libupnp.dll" LinkIncremental="1" SuppressStartupBanner="true" - ProgramDatabaseFile=".\Release/libupnp.pdb" - ImportLibrary=".\Release/libupnp.lib" + ProgramDatabaseFile="$(OutDir)\libupnp.pdb" + ImportLibrary="$(OutDir)\libupnp.lib" TargetMachine="1" /> @@ -103,6 +103,8 @@ /> - @@ -139,12 +134,6 @@ - - diff --git a/build/vc8/tvcombo.vcproj b/build/vc8/tvcombo.vcproj index 3f4ce28..2b7af13 100644 --- a/build/vc8/tvcombo.vcproj +++ b/build/vc8/tvcombo.vcproj @@ -40,7 +40,7 @@ Name="VCCLCompilerTool" Optimization="0" AdditionalIncludeDirectories="..\..\upnp\inc;..\..\ixml\inc;..\..\upnp\sample\common;..\inc;..\..\threadutil\inc;..\..\pthreads\include;..\..\upnp\sample\tvcombo;..\..\upnp\sample\tvcombo\linux" - PreprocessorDefinitions="WIN32;DEBUG" + PreprocessorDefinitions="WIN32;DEBUG;UPNP_USE_MSVCPP" MinimalRebuild="true" BasicRuntimeChecks="3" RuntimeLibrary="3" @@ -91,8 +91,8 @@ diff --git a/build/vc8/tvctrlpt.vcproj b/build/vc8/tvctrlpt.vcproj index 833f340..2e040d3 100644 --- a/build/vc8/tvctrlpt.vcproj +++ b/build/vc8/tvctrlpt.vcproj @@ -40,7 +40,7 @@ Name="VCCLCompilerTool" Optimization="0" AdditionalIncludeDirectories="..\..\upnp\inc;..\..\ixml\inc;..\..\upnp\sample\common;..\inc;..\..\threadutil\inc;..\..\pthreads\include;..\..\upnp\sample\tvctrlpt;..\..\upnp\sample\tvctrlpt\linux" - PreprocessorDefinitions="WIN32;DEBUG" + PreprocessorDefinitions="WIN32;DEBUG;UPNP_USE_MSVCPP" MinimalRebuild="true" BasicRuntimeChecks="3" RuntimeLibrary="3" @@ -91,8 +91,8 @@ diff --git a/build/vc8/tvdevice.vcproj b/build/vc8/tvdevice.vcproj index 372410b..8c7a726 100644 --- a/build/vc8/tvdevice.vcproj +++ b/build/vc8/tvdevice.vcproj @@ -40,7 +40,7 @@ Name="VCCLCompilerTool" Optimization="0" AdditionalIncludeDirectories="..\..\upnp\inc;..\..\ixml\inc;..\..\upnp\sample\common;..\inc;..\..\threadutil\inc;..\..\pthreads\include;..\..\upnp\sample\tvdevice;..\..\upnp\sample\tvdevice\linux" - PreprocessorDefinitions="WIN32;DEBUG" + PreprocessorDefinitions="WIN32;DEBUG;UPNP_USE_MSVCPP" MinimalRebuild="true" BasicRuntimeChecks="3" RuntimeLibrary="3" @@ -91,8 +91,8 @@