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

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

win32: add a custom build rule for '.lolfx' files. The files are properly
transformed to C++ but aren't compiled into the project yet.

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