Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

122 lignes
6.1 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. $(FfmpegIncludes);
  35. $(AssimpIncludes);
  36. $(XinputIncludes);
  37. %(AdditionalIncludeDirectories)
  38. </AdditionalIncludeDirectories>
  39. <AdditionalPreprocessorDefinitions>
  40. NOMINMAX;
  41. _CRT_SECURE_NO_WARNINGS;
  42. B3_USE_CLEW;
  43. LUA_ANSI;
  44. </AdditionalPreprocessorDefinitions>
  45. <PreprocessorDefinitions>$(AdditionalPreprocessorDefinitions.Replace('\n',''));%(PreprocessorDefinitions)</PreprocessorDefinitions>
  46. <!-- Trim trailing backslashes and escape them for C++ -->
  47. <PreprocessorDefinitions>LOL_CONFIG_PROJECTDIR="$(ProjectDir.Trim('\').Replace('\','/'))";%(PreprocessorDefinitions)</PreprocessorDefinitions>
  48. <PreprocessorDefinitions>LOL_CONFIG_SOLUTIONDIR="$(SolutionDir.Trim('\').Replace('\','/'))";%(PreprocessorDefinitions)</PreprocessorDefinitions>
  49. <PreprocessorDefinitions Condition="'$(Platform)'=='Win32'">WIN32;$(Win32Defines);%(PreprocessorDefinitions)</PreprocessorDefinitions>
  50. <PreprocessorDefinitions Condition="'$(Platform)'=='x64'">WIN32;$(Win32Defines);%(PreprocessorDefinitions)</PreprocessorDefinitions>
  51. <PreprocessorDefinitions Condition="'$(Platform)'=='Orbis'">$(OrbisDefines);%(PreprocessorDefinitions)</PreprocessorDefinitions>
  52. </ClCompile>
  53. <ClCompile Condition="'$(Configuration)'=='Debug'">
  54. <GenerateDebugInformation>true</GenerateDebugInformation>
  55. <Optimization>Disabled</Optimization>
  56. <RuntimeLibrary Condition="'$(Platform)'=='Win32' Or '$(Platform)'=='x64'">MultiThreadedDebugDLL</RuntimeLibrary>
  57. <PreprocessorDefinitions>_DEBUG;LOL_BUILD_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
  58. </ClCompile>
  59. <ClCompile Condition="'$(Configuration)'=='Release'">
  60. <GenerateDebugInformation>true</GenerateDebugInformation>
  61. <!-- For Microsoft tools -->
  62. <Optimization>MaxSpeed</Optimization>
  63. <!-- For PlayStation tools -->
  64. <OptimizationLevel>Level2</OptimizationLevel>
  65. <RuntimeLibrary Condition="'$(Platform)'=='Win32' Or '$(Platform)'=='x64'">MultiThreadedDLL</RuntimeLibrary>
  66. <FunctionLevelLinking>true</FunctionLevelLinking>
  67. <IntrinsicFunctions>true</IntrinsicFunctions>
  68. <FavorSizeOrSpeed>Speed</FavorSizeOrSpeed>
  69. <PreprocessorDefinitions>NDEBUG;LOL_BUILD_RELEASE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
  70. </ClCompile>
  71. <Link Condition="'$(Platform)'=='Win32' Or '$(Platform)'=='x64'">
  72. <!-- FIXME: not for the static library! -->
  73. <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);%(AdditionalDependencies)</AdditionalDependencies>
  74. <AdditionalLibraryDirectories>$(LibGccLibs);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
  75. <AdditionalLibraryDirectories>$(SdlLibs);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
  76. <AdditionalLibraryDirectories>$(FfmpegLibs);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
  77. <AdditionalLibraryDirectories>$(AssimpLibs);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
  78. <AdditionalLibraryDirectories>$(GlLibs);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
  79. <AdditionalLibraryDirectories>$(XinputLibs);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
  80. <SubSystem Condition="'$(enable_sdl)'!='no'">Windows</SubSystem>
  81. <SubSystem Condition="'$(enable_sdl)'=='no'">Console</SubSystem>
  82. </Link>
  83. <Link Condition="'$(Platform)'=='Orbis'">
  84. <AdditionalLibraryDirectories>$(OrbisLibs);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
  85. <AdditionalDependencies>$(OrbisDeps);%(AdditionalDependencies)</AdditionalDependencies>
  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. <Link>
  96. <AdditionalDependencies>%(AdditionalDependencies)</AdditionalDependencies>
  97. <AdditionalLibraryDirectories>%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
  98. </Link>
  99. <!-- Post-build hook to run commands -->
  100. <PostBuildEvent Condition="'$(Platform)'=='Win32' Or '$(Platform)'=='x64'">
  101. <Command Condition="'$(enable_sdl)'!='no'">
  102. rem do nothing
  103. </Command>
  104. </PostBuildEvent>
  105. </ItemDefinitionGroup>
  106. </Project>