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.
 
 
 

124 rivejä
6.3 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. <!--
  8. - Secret stuff for platforms under NDA
  9. -->
  10. <Import Condition="Exists('$(LolDir)\src\private\nx\msbuild\nx.rules.props')"
  11. Project="$(LolDir)\src\private\nx\msbuild\nx.rules.props" />
  12. <ItemDefinitionGroup>
  13. <ClCompile>
  14. <WarningLevel>Level3</WarningLevel>
  15. <!-- Use latest version of the C++ draft -->
  16. <LanguageStandard>stdcpplatest</LanguageStandard>
  17. <!-- Always multiprocessor, never minimal rebuild -->
  18. <MultiProcessorCompilation>true</MultiProcessorCompilation>
  19. <MinimalRebuild>false</MinimalRebuild>
  20. <!-- We should use %(RelativeDir) here but for some reason it's an _absolute_ dir. WTF. -->
  21. <ObjectFileName>$(IntDir)/%(Directory)/</ObjectFileName>
  22. <AdditionalIncludeDirectories>
  23. $(LolDir)\src;
  24. $(LolDir)\src\3rdparty\bullet3\src;
  25. $(LolDir)\tools\lolunit;
  26. $(PegtlIncludes);
  27. $(ImguiIncludes);
  28. $(BtPhysIncludes);
  29. $(GlIncludes);
  30. %(AdditionalIncludeDirectories)
  31. </AdditionalIncludeDirectories>
  32. <AdditionalIncludeDirectories Condition="'$(Platform)'=='Win32' Or '$(Platform)'=='x64'">
  33. $(SdlIncludes);
  34. $(CppHttpIncludes);
  35. $(FfmpegIncludes);
  36. $(AssimpIncludes);
  37. $(XinputIncludes);
  38. %(AdditionalIncludeDirectories)
  39. </AdditionalIncludeDirectories>
  40. <AdditionalPreprocessorDefinitions>
  41. NOMINMAX;
  42. _CRT_SECURE_NO_WARNINGS;
  43. B3_USE_CLEW;
  44. LUA_ANSI;
  45. </AdditionalPreprocessorDefinitions>
  46. <PreprocessorDefinitions>$(AdditionalPreprocessorDefinitions.Replace('\n',''));%(PreprocessorDefinitions)</PreprocessorDefinitions>
  47. <!-- Trim trailing backslashes and escape them for C++ -->
  48. <PreprocessorDefinitions>LOL_CONFIG_PROJECTDIR="$(ProjectDir.Trim('\').Replace('\','/'))";%(PreprocessorDefinitions)</PreprocessorDefinitions>
  49. <PreprocessorDefinitions>LOL_CONFIG_SOLUTIONDIR="$(SolutionDir.Trim('\').Replace('\','/'))";%(PreprocessorDefinitions)</PreprocessorDefinitions>
  50. <PreprocessorDefinitions Condition="'$(Platform)'=='Win32'">WIN32;$(Win32Defines);%(PreprocessorDefinitions)</PreprocessorDefinitions>
  51. <PreprocessorDefinitions Condition="'$(Platform)'=='x64'">WIN32;$(Win32Defines);%(PreprocessorDefinitions)</PreprocessorDefinitions>
  52. <PreprocessorDefinitions Condition="'$(Platform)'=='Orbis'">$(OrbisDefines);%(PreprocessorDefinitions)</PreprocessorDefinitions>
  53. </ClCompile>
  54. <ClCompile Condition="'$(Configuration)'=='Debug'">
  55. <GenerateDebugInformation>true</GenerateDebugInformation>
  56. <Optimization>Disabled</Optimization>
  57. <RuntimeLibrary Condition="'$(Platform)'=='Win32' Or '$(Platform)'=='x64'">MultiThreadedDebugDLL</RuntimeLibrary>
  58. <PreprocessorDefinitions>_DEBUG;LOL_BUILD_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
  59. </ClCompile>
  60. <ClCompile Condition="'$(Configuration)'=='Release'">
  61. <GenerateDebugInformation>true</GenerateDebugInformation>
  62. <!-- For Microsoft tools -->
  63. <Optimization>MaxSpeed</Optimization>
  64. <!-- For PlayStation tools -->
  65. <OptimizationLevel>Level2</OptimizationLevel>
  66. <RuntimeLibrary Condition="'$(Platform)'=='Win32' Or '$(Platform)'=='x64'">MultiThreadedDLL</RuntimeLibrary>
  67. <FunctionLevelLinking>true</FunctionLevelLinking>
  68. <IntrinsicFunctions>true</IntrinsicFunctions>
  69. <FavorSizeOrSpeed>Speed</FavorSizeOrSpeed>
  70. <PreprocessorDefinitions>NDEBUG;LOL_BUILD_RELEASE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
  71. </ClCompile>
  72. <Link Condition="'$(Platform)'=='Win32' Or '$(Platform)'=='x64'">
  73. <!-- FIXME: not for the static library! -->
  74. <AdditionalDependencies>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);$(CppHttpDeps);%(AdditionalDependencies)</AdditionalDependencies>
  75. <AdditionalLibraryDirectories>$(LibGccLibs);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
  76. <AdditionalLibraryDirectories>$(SdlLibs);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
  77. <AdditionalLibraryDirectories>$(CppHttpLibs);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
  78. <AdditionalLibraryDirectories>$(FfmpegLibs);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
  79. <AdditionalLibraryDirectories>$(AssimpLibs);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
  80. <AdditionalLibraryDirectories>$(GlLibs);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
  81. <AdditionalLibraryDirectories>$(XinputLibs);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
  82. <SubSystem Condition="'$(enable_sdl)'!='no'">Windows</SubSystem>
  83. <SubSystem Condition="'$(enable_sdl)'=='no'">Console</SubSystem>
  84. </Link>
  85. <Link Condition="'$(Platform)'=='Orbis'">
  86. <AdditionalLibraryDirectories>$(OrbisLibs);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
  87. <AdditionalDependencies>$(OrbisDeps);%(AdditionalDependencies)</AdditionalDependencies>
  88. </Link>
  89. <Link Condition="'$(Configuration)'=='Debug'">
  90. <GenerateDebugInformation>true</GenerateDebugInformation>
  91. </Link>
  92. <Link Condition="'$(Configuration)'=='Release'">
  93. <GenerateDebugInformation>true</GenerateDebugInformation>
  94. <EnableCOMDATFolding>true</EnableCOMDATFolding>
  95. <OptimizeReferences>true</OptimizeReferences>
  96. </Link>
  97. <Link>
  98. <AdditionalDependencies>%(AdditionalDependencies)</AdditionalDependencies>
  99. <AdditionalLibraryDirectories>%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
  100. </Link>
  101. <!-- Post-build hook to run commands -->
  102. <PostBuildEvent Condition="'$(Platform)'=='Win32' Or '$(Platform)'=='x64'">
  103. <Command Condition="'$(enable_sdl)'!='no'">
  104. rem do nothing
  105. </Command>
  106. </PostBuildEvent>
  107. </ItemDefinitionGroup>
  108. </Project>