source: trunk/win32/Lol.Core.Rules.props @ 1420

Last change on this file since 1420 was 1420, checked in by sam, 8 years ago

build: define NOMINMAX unconditionally on Windows.

File size: 5.0 KB
Line 
1<?xml version="1.0" encoding="utf-8"?>
2<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3  <PropertyGroup>
4    <LinkIncremental Condition="'$(Configuration)'=='Debug'">true</LinkIncremental>
5    <LinkIncremental Condition="'$(Configuration)'=='Release'">false</LinkIncremental>
6  </PropertyGroup>
7  <ItemDefinitionGroup>
8    <ClCompile>
9      <WarningLevel>Level3</WarningLevel>
10      <MultiProcessorCompilation>true</MultiProcessorCompilation>
11      <FloatingPointModel>Fast</FloatingPointModel>
12      <AdditionalIncludeDirectories>$(SolutionDir)\..\src;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
13      <AdditionalIncludeDirectories Condition="'$(Platform)'=='Win32'">$(GlIncludes);$(SdlIncludes);$(D3d9Includes);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
14      <AdditionalIncludeDirectories Condition="'$(Platform)'=='x64'">$(GlIncludes);$(SdlIncludes);$(D3d9Includes);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
15      <PreprocessorDefinitions>NOMINMAX;%(PreprocessorDefinitions)</PreprocessorDefinitions>
16      <PreprocessorDefinitions Condition="'$(Platform)'=='Win32'">WIN32;$(Win32Defines);%(PreprocessorDefinitions)</PreprocessorDefinitions>
17      <PreprocessorDefinitions Condition="'$(Platform)'=='x64'">WIN32;$(Win32Defines);%(PreprocessorDefinitions)</PreprocessorDefinitions>
18      <PreprocessorDefinitions Condition="'$(Platform)'=='Xbox 360'">_XBOX;$(XboxDefines);%(PreprocessorDefinitions)</PreprocessorDefinitions>
19      <BufferSecurityCheck Condition="'$(Platform)'=='Xbox 360'">false</BufferSecurityCheck>
20    </ClCompile>
21    <ClCompile Condition="'$(Configuration)'=='Debug'">
22      <Optimization>Disabled</Optimization>
23      <RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary>
24      <PreprocessorDefinitions>_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
25    </ClCompile>
26    <ClCompile Condition="'$(Configuration)'=='Release'">
27      <Optimization>MaxSpeed</Optimization>
28      <RuntimeLibrary>MultiThreaded</RuntimeLibrary>
29      <FunctionLevelLinking>true</FunctionLevelLinking>
30      <IntrinsicFunctions>true</IntrinsicFunctions>
31      <FavorSizeOrSpeed>Speed</FavorSizeOrSpeed>
32      <PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
33    </ClCompile>
34
35    <Link>
36      <GenerateDebugInformation>true</GenerateDebugInformation>
37      <!-- FIXME: not for the static library! -->
38      <AdditionalDependencies Condition="'$(Platform)'=='Win32'">kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;$(SdlDeps);$(GdiDeps);$(GlDeps);$(D3d9Deps);%(AdditionalDependencies)</AdditionalDependencies>
39      <AdditionalLibraryDirectories Condition="'$(Platform)'=='Win32'">$(SdlLibs);$(GlLibs);$(D3d9Libs);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
40      <AdditionalDependencies Condition="'$(Platform)'=='x64'">kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;$(SdlDeps);$(GdiDeps);$(GlDeps);$(D3d9Deps);%(AdditionalDependencies)</AdditionalDependencies>
41      <AdditionalLibraryDirectories Condition="'$(Platform)'=='x64'">$(SdlLibs);$(GlLibs);$(D3d9Libs);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
42      <AdditionalDependencies Condition="'$(Configuration)|$(Platform)'=='Debug|Xbox 360'">xapilibd.lib;d3d9d.lib;d3dx9d.lib;xgraphicsd.lib;xboxkrnl.lib;xnetd.lib;xaudiod2.lib;xactd3.lib;x3daudiod.lib;xmcored.lib;xbdm.lib;vcompd.lib;%(AdditionalDependencies)</AdditionalDependencies>
43      <AdditionalDependencies Condition="'$(Configuration)|$(Platform)'=='Release|Xbox 360'">xapilib.lib;d3d9.lib;d3dx9.lib;xgraphics.lib;xboxkrnl.lib;xnet.lib;xaudio2.lib;xact3.lib;x3daudio.lib;xmcore.lib;vcomp.lib;%(AdditionalDependencies)</AdditionalDependencies>
44    </Link>
45    <Link Condition="'$(Configuration)'=='Release'">
46      <EnableCOMDATFolding>true</EnableCOMDATFolding>
47      <OptimizeReferences>true</OptimizeReferences>
48    </Link>
49
50    <!-- FIXME: not for the static library! -->
51    <PostBuildEvent Condition="'$(Platform)'=='Win32'">
52      <Command>
53        set A=$(SdlLibs)
54        :again
55        for /f "tokens=1* delims=;" %%I in ("%A%") do (
56          if not "%%I" == "" xcopy /y /c /d "%%I"\*.dll "$(TargetDir)" &amp;&amp; set A=%%J
57          if not "%%I" == "" goto again
58        )
59      </Command>
60    </PostBuildEvent>
61    <PostBuildEvent Condition="'$(Platform)'=='x64'">
62      <Command>
63        set A=$(SdlLibs)
64        :again
65        for /f "tokens=1* delims=;" %%I in ("%A%") do (
66          if not "%%I" == "" xcopy /y /c /d "%%I"\*.dll "$(TargetDir)" &amp;&amp; set A=%%J
67          if not "%%I" == "" goto again
68        )
69      </Command>
70    </PostBuildEvent>
71
72    <!-- FIXME: not for the static library! -->
73    <Deploy Condition="'$(Platform)'=='Xbox 360'">
74      <DeploymentType>CopyToHardDrive</DeploymentType>
75    </Deploy>
76
77  </ItemDefinitionGroup>
78</Project>
Note: See TracBrowser for help on using the repository browser.