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