|
14 | 14 | <VCProjectVersion>17.0</VCProjectVersion> |
15 | 15 | <ProjectName>stdshader_dx9</ProjectName> |
16 | 16 | <ProjectGuid>{C8D2DC83-E117-7576-7B43-10C844264C51}</ProjectGuid> |
| 17 | + <WindowsTargetPlatformVersion>10.0</WindowsTargetPlatformVersion> |
17 | 18 | </PropertyGroup> |
18 | 19 | <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" /> |
19 | 20 | <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration"> |
20 | 21 | <ConfigurationType>DynamicLibrary</ConfigurationType> |
21 | 22 | <PlatformToolset>v143</PlatformToolset> |
22 | 23 | <CharacterSet>MultiByte</CharacterSet> |
| 24 | + <WholeProgramOptimization>true</WholeProgramOptimization> |
23 | 25 | </PropertyGroup> |
24 | 26 | <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration"> |
25 | 27 | <ConfigurationType>DynamicLibrary</ConfigurationType> |
|
46 | 48 | <PreLinkEventUseInBuild>true</PreLinkEventUseInBuild> |
47 | 49 | <LinkIncremental>true</LinkIncremental> |
48 | 50 | <GenerateManifest>false</GenerateManifest> |
49 | | - <PostBuildEventUseInBuild>true</PostBuildEventUseInBuild> |
| 51 | + <PostBuildEventUseInBuild>false</PostBuildEventUseInBuild> |
| 52 | + <TargetName>game_shader_dx9</TargetName> |
50 | 53 | </PropertyGroup> |
51 | 54 | <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'"> |
52 | 55 | <OutDir>Release_dx9\</OutDir> |
|
55 | 58 | <PreLinkEventUseInBuild>true</PreLinkEventUseInBuild> |
56 | 59 | <LinkIncremental>false</LinkIncremental> |
57 | 60 | <GenerateManifest>false</GenerateManifest> |
58 | | - <PostBuildEventUseInBuild>true</PostBuildEventUseInBuild> |
| 61 | + <PostBuildEventUseInBuild>false</PostBuildEventUseInBuild> |
| 62 | + <TargetName>game_shader_dx9</TargetName> |
59 | 63 | </PropertyGroup> |
60 | 64 | <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'"> |
61 | 65 | <PreBuildEvent> |
62 | 66 | <Command /> |
63 | 67 | </PreBuildEvent> |
64 | 68 | <CustomBuildStep> |
65 | | - <Message>Publishing to target directory (..\..\game\swarm\bin\)...</Message> |
66 | | - <Command>if exist "..\..\game\swarm\bin\game_shader_dx9.dll" attrib -r "..\..\game\swarm\bin\game_shader_dx9.dll" |
67 | | -</Command> |
68 | | - <Outputs>..\..\game\swarm\bin\game_shader_dx9.dll;%(Outputs)</Outputs> |
| 69 | + <Message> |
| 70 | + </Message> |
| 71 | + <Command> |
| 72 | + </Command> |
| 73 | + <Outputs> |
| 74 | + </Outputs> |
69 | 75 | </CustomBuildStep> |
70 | 76 | <ClCompile> |
71 | 77 | <AdditionalOptions>/MP %(AdditionalOptions)</AdditionalOptions> |
|
101 | 107 | <Link> |
102 | 108 | <AdditionalDependencies>version.lib;winmm.lib;legacy_stdio_definitions.lib;%(AdditionalDependencies)</AdditionalDependencies> |
103 | 109 | <ShowProgress>NotSet</ShowProgress> |
104 | | - <OutputFile>$(OutDir)game_shader_dx9.dll</OutputFile> |
| 110 | + <OutputFile>$(TargetPath)</OutputFile> |
105 | 111 | <SuppressStartupBanner>true</SuppressStartupBanner> |
106 | 112 | <AdditionalLibraryDirectories>..\..\lib\common\.;..\..\lib\public\.;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories> |
107 | 113 | <IgnoreSpecificDefaultLibraries>libc;libcd;libcmtd;%(IgnoreSpecificDefaultLibraries)</IgnoreSpecificDefaultLibraries> |
|
124 | 130 | <OutputFile>$(OutDir)stdshader_dx9.bsc</OutputFile> |
125 | 131 | </Bscmake> |
126 | 132 | <PostBuildEvent> |
127 | | - <Command /> |
| 133 | + <Command>setlocal enabledelayedexpansion |
| 134 | + |
| 135 | +set DestDir=..\..\game\swarm\bin |
| 136 | + |
| 137 | +if not exist !DestDir! mkdir !DestDir! |
| 138 | +if exist !DestDir!\$(TargetFileName) attrib -R !DestDir!\$(TargetFileName) |
| 139 | +copy /Y $(TargetPath) !DestDir!\ |
| 140 | +</Command> |
| 141 | + <Message>Publishing to target directory (..\..\game\swarm\bin)...</Message> |
128 | 142 | </PostBuildEvent> |
| 143 | + <PreLinkEvent> |
| 144 | + <Command>if exist "$(TargetPath)" attrib -R "$(TargetPath)"</Command> |
| 145 | + </PreLinkEvent> |
129 | 146 | </ItemDefinitionGroup> |
130 | 147 | <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'"> |
131 | 148 | <PreBuildEvent> |
132 | 149 | <Command /> |
133 | 150 | </PreBuildEvent> |
134 | 151 | <CustomBuildStep> |
135 | | - <Message>Publishing to target directory (..\..\game\swarm\bin\)...</Message> |
136 | | - <Command>if exist "..\..\game\swarm\bin\game_shader_dx9.dll" attrib -r "..\..\game\swarm\bin\game_shader_dx9.dll" |
137 | | -</Command> |
138 | | - <Outputs>..\..\game\swarm\bin\game_shader_dx9.dll;%(Outputs)</Outputs> |
| 152 | + <Message> |
| 153 | + </Message> |
| 154 | + <Command> |
| 155 | + </Command> |
| 156 | + <Outputs> |
| 157 | + </Outputs> |
139 | 158 | </CustomBuildStep> |
140 | 159 | <ClCompile> |
141 | | - <AdditionalOptions>/MP %(AdditionalOptions)</AdditionalOptions> |
142 | 160 | <Optimization>MaxSpeed</Optimization> |
143 | 161 | <InlineFunctionExpansion>AnySuitable</InlineFunctionExpansion> |
144 | 162 | <IntrinsicFunctions>true</IntrinsicFunctions> |
|
165 | 183 | <DebugInformationFormat>ProgramDatabase</DebugInformationFormat> |
166 | 184 | <CompileAs>CompileAsCpp</CompileAs> |
167 | 185 | <ErrorReporting>Prompt</ErrorReporting> |
| 186 | + <OmitFramePointers>true</OmitFramePointers> |
| 187 | + <MultiProcessorCompilation>true</MultiProcessorCompilation> |
168 | 188 | </ClCompile> |
169 | 189 | <ResourceCompile> |
170 | 190 | <PreprocessorDefinitions>NDEBUG;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;%(PreprocessorDefinitions)</PreprocessorDefinitions> |
|
173 | 193 | <Link> |
174 | 194 | <AdditionalDependencies>version.lib;winmm.lib;legacy_stdio_definitions.lib;%(AdditionalDependencies)</AdditionalDependencies> |
175 | 195 | <ShowProgress>NotSet</ShowProgress> |
176 | | - <OutputFile>$(OutDir)game_shader_dx9.dll</OutputFile> |
| 196 | + <OutputFile>$(TargetPath)</OutputFile> |
177 | 197 | <SuppressStartupBanner>true</SuppressStartupBanner> |
178 | 198 | <AdditionalLibraryDirectories>..\..\lib\common\.;..\..\lib\public\.;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories> |
179 | 199 | <IgnoreSpecificDefaultLibraries>libc;libcd;libcmtd;%(IgnoreSpecificDefaultLibraries)</IgnoreSpecificDefaultLibraries> |
|
188 | 208 | </BaseAddress> |
189 | 209 | <TargetMachine>MachineX86</TargetMachine> |
190 | 210 | <LinkErrorReporting>PromptImmediately</LinkErrorReporting> |
| 211 | + <LinkTimeCodeGeneration>UseLinkTimeCodeGeneration</LinkTimeCodeGeneration> |
191 | 212 | </Link> |
192 | 213 | <Xdcmake> |
193 | 214 | <SuppressStartupBanner>true</SuppressStartupBanner> |
|
197 | 218 | <OutputFile>$(OutDir)stdshader_dx9.bsc</OutputFile> |
198 | 219 | </Bscmake> |
199 | 220 | <PostBuildEvent> |
200 | | - <Command /> |
| 221 | + <Command>setlocal enabledelayedexpansion |
| 222 | + |
| 223 | +set DestDir=..\..\game\swarm\bin |
| 224 | + |
| 225 | +if not exist !DestDir! mkdir !DestDir! |
| 226 | +if exist !DestDir!\$(TargetFileName) attrib -R !DestDir!\$(TargetFileName) |
| 227 | +copy /Y $(TargetPath) !DestDir!\ |
| 228 | +</Command> |
| 229 | + <Message>Publishing to target directory (..\..\game\swarm\bin)...</Message> |
201 | 230 | </PostBuildEvent> |
| 231 | + <PreLinkEvent> |
| 232 | + <Command>if exist "$(TargetPath)" attrib -R "$(TargetPath)"</Command> |
| 233 | + </PreLinkEvent> |
202 | 234 | </ItemDefinitionGroup> |
203 | 235 | <ItemGroup> |
204 | 236 | <None Include="..\..\vpc_scripts\loadaddress.vpc" /> |
|
0 commit comments