|
23 | 23 | </PropertyGroup> |
24 | 24 | <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" /> |
25 | 25 | <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration"> |
26 | | - <ConfigurationType>DynamicLibrary</ConfigurationType> |
| 26 | + <ConfigurationType Condition="'$(USE_STATIC_LIB)' == 'true'">StaticLibrary</ConfigurationType> |
| 27 | + <ConfigurationType Condition="'$(USE_STATIC_LIB)' != 'true'">DynamicLibrary</ConfigurationType> |
27 | 28 | <UseDebugLibraries>true</UseDebugLibraries> |
28 | 29 | <PlatformToolset>v143</PlatformToolset> |
29 | 30 | <CharacterSet>MultiByte</CharacterSet> |
30 | 31 | </PropertyGroup> |
31 | 32 | <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Legacy|Win32'" Label="Configuration"> |
32 | | - <ConfigurationType>DynamicLibrary</ConfigurationType> |
| 33 | + <ConfigurationType Condition="'$(USE_STATIC_LIB)' == 'true'">StaticLibrary</ConfigurationType> |
| 34 | + <ConfigurationType Condition="'$(USE_STATIC_LIB)' != 'true'">DynamicLibrary</ConfigurationType> |
33 | 35 | <CharacterSet>MultiByte</CharacterSet> |
34 | 36 | <PlatformToolset>v141_xp</PlatformToolset> |
35 | 37 | </PropertyGroup> |
36 | 38 | <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration"> |
37 | | - <ConfigurationType>DynamicLibrary</ConfigurationType> |
| 39 | + <ConfigurationType Condition="'$(USE_STATIC_LIB)' == 'true'">StaticLibrary</ConfigurationType> |
| 40 | + <ConfigurationType Condition="'$(USE_STATIC_LIB)' != 'true'">DynamicLibrary</ConfigurationType> |
38 | 41 | <UseDebugLibraries>false</UseDebugLibraries> |
39 | 42 | <PlatformToolset>v143</PlatformToolset> |
40 | 43 | <WholeProgramOptimization>true</WholeProgramOptimization> |
|
61 | 64 | <Import Project="..\vss-release.props" /> |
62 | 65 | </ImportGroup> |
63 | 66 | <PropertyGroup Label="UserMacros" /> |
64 | | - |
65 | 67 | <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'"> |
66 | | - <TargetExt>.vcc</TargetExt> |
67 | | - <OutDir>$(SolutionDir)__obj\$(Platform)\$(Configuration)\vcc\out\</OutDir> |
| 68 | + <OutDir Condition="'$(USE_STATIC_LIB)' == 'true'">$(SolutionDir)__obj\$(Platform)\$(Configuration)\libcommon\out\</OutDir> |
| 69 | + <OutDir Condition="'$(USE_STATIC_LIB)' != 'true'">$(SolutionDir)__obj\$(Platform)\$(Configuration)\vcc\out\</OutDir> |
| 70 | + <TargetExt Condition="'$(USE_STATIC_LIB)' == 'true'">.vcc</TargetExt> |
68 | 71 | </PropertyGroup> |
69 | 72 | <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Legacy|Win32'"> |
70 | 73 | <LibraryPath>C:\Program Files %28x86%29\Windows Kits\8.1\Lib\winv6.3\um\x86;$(LibraryPath)</LibraryPath> |
71 | | - <TargetExt>.vcc</TargetExt> |
72 | | - <OutDir>$(SolutionDir)__obj\$(Platform)\$(Configuration)\vcc\out\</OutDir> |
| 74 | + <OutDir Condition="'$(USE_STATIC_LIB)' == 'true'">$(SolutionDir)__obj\$(Platform)\$(Configuration)\libcommon\out\</OutDir> |
| 75 | + <OutDir Condition="'$(USE_STATIC_LIB)' != 'true'">$(SolutionDir)__obj\$(Platform)\$(Configuration)\vcc\out\</OutDir> |
| 76 | + <TargetExt Condition="'$(USE_STATIC_LIB)' != 'true'">.vcc</TargetExt> |
73 | 77 | </PropertyGroup> |
74 | 78 | <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'"> |
75 | | - <TargetExt>.vcc</TargetExt> |
76 | | - <OutDir>$(SolutionDir)__obj\$(Platform)\$(Configuration)\vcc\out\</OutDir> |
| 79 | + <OutDir Condition="'$(USE_STATIC_LIB)' == 'true'">$(SolutionDir)__obj\$(Platform)\$(Configuration)\libcommon\out\</OutDir> |
| 80 | + <OutDir Condition="'$(USE_STATIC_LIB)' != 'true'">$(SolutionDir)__obj\$(Platform)\$(Configuration)\vcc\out\</OutDir> |
| 81 | + <TargetExt Condition="'$(USE_STATIC_LIB)' != 'true'">.vcc</TargetExt> |
77 | 82 | </PropertyGroup> |
78 | 83 | <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'"> |
79 | 84 | <ClCompile> |
80 | | - <PreprocessorDefinitions>WIN32;_DEBUG;LIBCOMMON_EXPORTS;_WINDOWS;_USRDLL;%(PreprocessorDefinitions)</PreprocessorDefinitions> |
| 85 | + <PreprocessorDefinitions Condition="'$(USE_STATIC_LIB)' != 'true'">WIN32;_DEBUG;LIBCOMMON_EXPORTS;_WINDOWS;_USRDLL;%(PreprocessorDefinitions)</PreprocessorDefinitions> |
| 86 | + <PreprocessorDefinitions Condition="'$(USE_STATIC_LIB)' == 'true'">WIN32;_DEBUG;_WINDOWS;%(PreprocessorDefinitions)</PreprocessorDefinitions> |
| 87 | + <WholeProgramOptimization Condition="'$(USE_STATIC_LIB)' != 'true'">false</WholeProgramOptimization> |
81 | 88 | </ClCompile> |
82 | 89 | <Link> |
83 | | - <LinkDLL>true</LinkDLL> |
| 90 | + <LinkDLL Condition="'$(USE_STATIC_LIB)' != 'true'">true</LinkDLL> |
84 | 91 | <AdditionalDependencies>Ws2_32.lib;%(AdditionalDependencies)</AdditionalDependencies> |
85 | 92 | </Link> |
86 | 93 | </ItemDefinitionGroup> |
87 | 94 | <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Legacy|Win32'"> |
88 | 95 | <ClCompile> |
89 | | - <PreprocessorDefinitions>WIN32;_USRDLL;LIBCOMMON_EXPORTS;_LEGACY_VCC;%(PreprocessorDefinitions)</PreprocessorDefinitions> |
| 96 | + <PreprocessorDefinitions Condition="'$(USE_STATIC_LIB)' != 'true'">WIN32;_USRDLL;LIBCOMMON_EXPORTS;_LEGACY_VCC;%(PreprocessorDefinitions)</PreprocessorDefinitions> |
| 97 | + <PreprocessorDefinitions Condition="'$(USE_STATIC_LIB)' == 'true'">WIN32;_LEGACY_VCC;%(PreprocessorDefinitions)</PreprocessorDefinitions> |
| 98 | + <WholeProgramOptimization Condition="'$(USE_STATIC_LIB)' != 'true'">false</WholeProgramOptimization> |
90 | 99 | <AdditionalOptions>/arch:SSE</AdditionalOptions> |
91 | 100 | </ClCompile> |
92 | 101 | <ResourceCompile> |
93 | 102 | <Culture>0x0409</Culture> |
94 | 103 | <PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions> |
95 | 104 | </ResourceCompile> |
96 | 105 | <Link> |
97 | | - <LinkDLL>true</LinkDLL> |
| 106 | + <LinkDLL Condition="'$(USE_STATIC_LIB)' != 'true'">true</LinkDLL> |
98 | 107 | <AdditionalDependencies>Shlwapi.lib;Ws2_32.lib;%(AdditionalDependencies)</AdditionalDependencies> |
99 | 108 | </Link> |
100 | 109 | </ItemDefinitionGroup> |
101 | 110 | <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'"> |
102 | 111 | <ClCompile> |
103 | | - <PreprocessorDefinitions>WIN32;NDEBUG;LIBCOMMON_EXPORTS;_WINDOWS;_USRDLL;%(PreprocessorDefinitions)</PreprocessorDefinitions> |
| 112 | + <PreprocessorDefinitions Condition="'$(USE_STATIC_LIB)' != 'true'">WIN32;NDEBUG;LIBCOMMON_EXPORTS;_WINDOWS;_USRDLL;%(PreprocessorDefinitions)</PreprocessorDefinitions> |
| 113 | + <PreprocessorDefinitions Condition="'$(USE_STATIC_LIB)' == 'true'">WIN32;NDEBUG;_WINDOWS;%(PreprocessorDefinitions)</PreprocessorDefinitions> |
| 114 | + <WholeProgramOptimization Condition="'$(USE_STATIC_LIB)' != 'true'">false</WholeProgramOptimization> |
104 | 115 | </ClCompile> |
105 | 116 | <Link> |
106 | | - <LinkDLL>true</LinkDLL> |
| 117 | + <LinkDLL Condition="'$(USE_STATIC_LIB)' != 'true'">true</LinkDLL> |
107 | 118 | <AdditionalDependencies>Ws2_32.lib;%(AdditionalDependencies)</AdditionalDependencies> |
108 | 119 | </Link> |
109 | 120 | </ItemDefinitionGroup> |
|
0 commit comments