source: trunk/build/vs2010/Lol.Core.Rules.props @ 1580

Last change on this file since 1580 was 1580, checked in by sam, 10 years ago

build: fix PS3 optimisation flags in VS2010.

File size: 6.1 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;$(SolutionDir)\..\..\src\bullet;$(FlexIncludes);$(BtPhysIncludes);%(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;_CRT_SECURE_NO_WARNINGS;%(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      <PreprocessorDefinitions Condition="'$(Platform)'=='PS3'">$(Ps3Defines);%(PreprocessorDefinitions)</PreprocessorDefinitions>
20      <BufferSecurityCheck Condition="'$(Platform)'=='Xbox 360'">false</BufferSecurityCheck>
21    </ClCompile>
22    <ClCompile Condition="'$(Configuration)'=='Debug'">
23      <GenerateDebugInformation>true</GenerateDebugInformation>
24      <Optimization>Disabled</Optimization>
25      <RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary>
26      <PreprocessorDefinitions>_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
27    </ClCompile>
28    <ClCompile Condition="'$(Configuration)'=='Release'">
29      <!-- For Microsoft tools -->
30      <Optimization>MaxSpeed</Optimization>
31      <!-- For PlayStation tools -->
32      <OptimizationLevel>Level2</OptimizationLevel>
33
34      <RuntimeLibrary>MultiThreaded</RuntimeLibrary>
35      <FunctionLevelLinking>true</FunctionLevelLinking>
36      <IntrinsicFunctions>true</IntrinsicFunctions>
37      <FavorSizeOrSpeed>Speed</FavorSizeOrSpeed>
38      <PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
39    </ClCompile>
40
41    <Link>
42      <!-- FIXME: not for the static library! -->
43      <AdditionalDependencies Condition="'$(Platform)'=='Win32' Or '$(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);%(AdditionalDependencies)</AdditionalDependencies>
44      <AdditionalDependencies Condition="'$(UseOpenGL)'=='true' And ('$(Platform)'=='Win32' Or '$(Platform)'=='x64')">$(GlDeps);%(AdditionalDependencies)</AdditionalDependencies>
45      <AdditionalDependencies Condition="'$(UseOpenGL)'=='false' And ('$(Platform)'=='Win32' Or '$(Platform)'=='x64')">$(D3d9Deps);%(AdditionalDependencies)</AdditionalDependencies>
46      <AdditionalDependencies>%(AdditionalDependencies)</AdditionalDependencies>
47      <AdditionalLibraryDirectories Condition="'$(Platform)'=='Win32' Or '$(Platform)'=='x64'">$(SdlLibs);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
48      <AdditionalLibraryDirectories Condition="'$(UseOpenGL)'=='true' And ('$(Platform)'=='Win32' Or '$(Platform)'=='x64')">$(GlLibs);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
49      <AdditionalLibraryDirectories Condition="'$(UseOpenGL)'=='false' And ('$(Platform)'=='Win32' Or '$(Platform)'=='x64')">$(D3d9Libs);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
50      <AdditionalLibraryDirectories>%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
51      <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>
52      <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>
53      <AdditionalLibraryDirectories Condition="'$(Platform)'=='PS3'">$(Ps3Libs);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
54      <AdditionalLibraryDirectories Condition="'$(Platform)'=='PS3'">$(GlLibs);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
55      <AdditionalDependencies Condition="'$(Platform)'=='PS3'">$(Ps3Deps);%(AdditionalDependencies)</AdditionalDependencies>
56      <AdditionalDependencies Condition="'$(Platform)'=='PS3'">$(GlDeps);%(AdditionalDependencies)</AdditionalDependencies>
57    </Link>
58    <Link Condition="'$(Configuration)'=='Debug'">
59      <GenerateDebugInformation>true</GenerateDebugInformation>
60    </Link>
61    <Link Condition="'$(Configuration)'=='Release'">
62      <EnableCOMDATFolding>true</EnableCOMDATFolding>
63      <OptimizeReferences>true</OptimizeReferences>
64    </Link>
65
66    <!-- FIXME: not for the static library! -->
67    <PostBuildEvent Condition="'$(Platform)'=='Win32' Or '$(Platform)'=='x64'">
68      <Command>
69        set A=$(SdlLibs)
70        :again
71        for /f "tokens=1* delims=;" %%I in ("%A%") do (
72          if not "%%I" == "" xcopy /y /c /d "%%I"\*.dll "$(TargetDir)" &amp;&amp; set A=%%J
73          if not "%%I" == "" goto again
74        )
75      </Command>
76    </PostBuildEvent>
77
78    <!-- FIXME: not for the static library! -->
79    <Deploy Condition="'$(Platform)'=='Xbox 360'">
80      <DeploymentType>CopyToHardDrive</DeploymentType>
81    </Deploy>
82
83  </ItemDefinitionGroup>
84</Project>
Note: See TracBrowser for help on using the repository browser.