You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

96 lines
6.7 KiB

  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. <!-- Always multiprocessor, never minimal rebuild -->
  11. <MultiProcessorCompilation>true</MultiProcessorCompilation>
  12. <MinimalRebuild>false</MinimalRebuild>
  13. <!-- We should use %(RelativeDir) here but for some reason it's an _absolute_ dir. WTF. -->
  14. <ObjectFileName>$(IntDir)/%(Directory)/</ObjectFileName>
  15. <AdditionalIncludeDirectories>$(SolutionDir)\..\src;$(SolutionDir)\..\src\bullet;$(SolutionDir)\..\tools\lolunit;$(PegtlIncludes);$(ImguiIncludes);$(BtPhysIncludes);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
  16. <AdditionalIncludeDirectories Condition="'$(Platform)'=='Win32'">$(GlIncludes);$(SdlIncludes);$(FfmpegIncludes);$(AssimpIncludes);$(XinputIncludes);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
  17. <AdditionalIncludeDirectories Condition="'$(Platform)'=='x64'">$(GlIncludes);$(SdlIncludes);$(FfmpegIncludes);$(AssimpIncludes);$(XinputIncludes);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
  18. <PreprocessorDefinitions>NOMINMAX;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
  19. <!-- Escape backslashes for C++, but replace \ with / on the PS4
  20. because the SCE VSI seems to have trouble with backslashes -->
  21. <PreprocessorDefinitions Condition="'$(Platform)'!='Orbis'">LOL_CONFIG_PROJECTDIR="$(ProjectDir.Replace('\','\\'))";%(PreprocessorDefinitions)</PreprocessorDefinitions>
  22. <PreprocessorDefinitions Condition="'$(Platform)'!='Orbis'">LOL_CONFIG_SOLUTIONDIR="$(SolutionDir.Replace('\','\\'))";%(PreprocessorDefinitions)</PreprocessorDefinitions>
  23. <PreprocessorDefinitions Condition="'$(Platform)'=='Orbis'">LOL_CONFIG_PROJECTDIR="$(ProjectDir.Replace('\','/'))";%(PreprocessorDefinitions)</PreprocessorDefinitions>
  24. <PreprocessorDefinitions Condition="'$(Platform)'=='Orbis'">LOL_CONFIG_SOLUTIONDIR="$(SolutionDir.Replace('\','/'))";%(PreprocessorDefinitions)</PreprocessorDefinitions>
  25. <PreprocessorDefinitions Condition="'$(Platform)'=='Win32'">WIN32;$(Win32Defines);%(PreprocessorDefinitions)</PreprocessorDefinitions>
  26. <PreprocessorDefinitions Condition="'$(Platform)'=='x64'">WIN32;$(Win32Defines);%(PreprocessorDefinitions)</PreprocessorDefinitions>
  27. <PreprocessorDefinitions Condition="'$(Platform)'=='Orbis'">$(OrbisDefines);%(PreprocessorDefinitions)</PreprocessorDefinitions>
  28. </ClCompile>
  29. <ClCompile Condition="'$(Configuration)'=='Debug'">
  30. <GenerateDebugInformation>true</GenerateDebugInformation>
  31. <Optimization>Disabled</Optimization>
  32. <RuntimeLibrary Condition="'$(Platform)'=='Win32' Or '$(Platform)'=='x64'">MultiThreadedDebugDLL</RuntimeLibrary>
  33. <PreprocessorDefinitions>_DEBUG;LOL_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
  34. </ClCompile>
  35. <ClCompile Condition="'$(Configuration)'=='Release'">
  36. <GenerateDebugInformation>true</GenerateDebugInformation>
  37. <!-- For Microsoft tools -->
  38. <Optimization>MaxSpeed</Optimization>
  39. <!-- For PlayStation tools -->
  40. <OptimizationLevel>Level2</OptimizationLevel>
  41. <RuntimeLibrary Condition="'$(Platform)'=='Win32' Or '$(Platform)'=='x64'">MultiThreadedDLL</RuntimeLibrary>
  42. <FunctionLevelLinking>true</FunctionLevelLinking>
  43. <IntrinsicFunctions>true</IntrinsicFunctions>
  44. <FavorSizeOrSpeed>Speed</FavorSizeOrSpeed>
  45. <PreprocessorDefinitions>NDEBUG;LOL_RELEASE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
  46. </ClCompile>
  47. <Link>
  48. <!-- FIXME: not for the static library! -->
  49. <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);$(FfmpegDeps);$(AssimpDeps);$(LibGccDeps);$(GdiDeps);$(XinputDeps);$(GlDeps);%(AdditionalDependencies)</AdditionalDependencies>
  50. <AdditionalDependencies>%(AdditionalDependencies)</AdditionalDependencies>
  51. <AdditionalLibraryDirectories Condition="'$(Platform)'=='Win32' Or '$(Platform)'=='x64'">$(LibGccLibs);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
  52. <AdditionalLibraryDirectories Condition="'$(Platform)'=='Win32' Or '$(Platform)'=='x64'">$(SdlLibs);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
  53. <AdditionalLibraryDirectories Condition="'$(Platform)'=='Win32' Or '$(Platform)'=='x64'">$(FfmpegLibs);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
  54. <AdditionalLibraryDirectories Condition="'$(Platform)'=='Win32' Or '$(Platform)'=='x64'">$(AssimpLibs);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
  55. <AdditionalLibraryDirectories Condition="'$(Platform)'=='Win32' Or '$(Platform)'=='x64'">$(GlLibs);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
  56. <AdditionalLibraryDirectories Condition="'$(Platform)'=='Win32' Or '$(Platform)'=='x64'">$(XinputLibs);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
  57. <AdditionalLibraryDirectories>%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
  58. <AdditionalLibraryDirectories Condition="'$(Platform)'=='Orbis'">$(OrbisLibs);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
  59. <AdditionalDependencies Condition="'$(Platform)'=='Orbis'">$(OrbisDeps);%(AdditionalDependencies)</AdditionalDependencies>
  60. </Link>
  61. <Link Condition="'$(Platform)'=='Win32' Or '$(Platform)'=='x64'">
  62. <SubSystem>Windows</SubSystem>
  63. </Link>
  64. <Link Condition="'$(Configuration)'=='Debug'">
  65. <GenerateDebugInformation>true</GenerateDebugInformation>
  66. </Link>
  67. <Link Condition="'$(Configuration)'=='Release'">
  68. <GenerateDebugInformation>true</GenerateDebugInformation>
  69. <EnableCOMDATFolding>true</EnableCOMDATFolding>
  70. <OptimizeReferences>true</OptimizeReferences>
  71. </Link>
  72. <!-- FIXME: not for the static library! -->
  73. <PostBuildEvent Condition="'$(Platform)'=='Win32' Or '$(Platform)'=='x64'">
  74. <Command>
  75. set A=$(SdlLibs)
  76. :again
  77. for /f "tokens=1* delims=;" %%I in ("%A%") do (
  78. if not "%%I" == "" echo xcopy /y /c /d "%%I"\*.dll "$(TargetDir)"
  79. if not "%%I" == "" xcopy /y /c /d "%%I"\*.dll "$(TargetDir)"
  80. if not "%%I" == "" set A=%%J
  81. if not "%%I" == "" goto again
  82. )
  83. </Command>
  84. </PostBuildEvent>
  85. </ItemDefinitionGroup>
  86. </Project>