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.
 
 
 

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