Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.
 
 
 
 
 
 

164 rader
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. <!--
  4. - lolengine.props
  5. -
  6. - This file should be referenced by any project that uses Lol Engine
  7. -->
  8. <PropertyGroup>
  9. <LolEngineDir>$(MsBuildThisFileDirectory)</LolEngineDir>
  10. <_LolEnginePropsIncluded>true</_LolEnginePropsIncluded>
  11. </PropertyGroup>
  12. <!--
  13. - Build configuration
  14. -->
  15. <!-- Import defaults settings from Visual Studio -->
  16. <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
  17. <Import Project="$(LolEngineDir)build/msbuild/config.props" />
  18. <!-- NDA platforms -->
  19. <Import Project="$(LolEngineDir)lol-switch/msbuild/config.props"
  20. Condition="exists('$(LolEngineDir)lol-switch/msbuild/config.props')" />
  21. <Import Project="$(LolEngineDir)lol-playstation/msbuild/config.props"
  22. Condition="exists('$(LolEngineDir)lol-playstation/msbuild/config.props')" />
  23. <!-- Override settings with the user’s build.config file -->
  24. <Import Condition="exists('$(LolEngineDir)build.config')"
  25. Project="$(LolEngineDir)build.config" />
  26. <Import Condition="exists('$(SolutionDir)build.config') and '$(SolutionDir)'!='$(LolEngineDir)'"
  27. Project="$(SolutionDir)build.config" />
  28. <!-- Final settings from Visual Studio -->
  29. <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
  30. <!--
  31. - Build variables
  32. -->
  33. <ImportGroup Label="PropertySheets">
  34. <Import Project="$(UserRootDir)Microsoft.Cpp.$(Platform).user.props"
  35. Condition="exists('$(UserRootDir)Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
  36. <!-- NDA platforms -->
  37. <Import Project="$(LolEngineDir)lol-switch/msbuild/vars.props"
  38. Condition="exists('$(LolEngineDir)lol-switch/msbuild/vars.props')" />
  39. <Import Project="$(LolEngineDir)lol-playstation/msbuild/vars.props"
  40. Condition="exists('$(LolEngineDir)lol-playstation/msbuild/vars.props')" />
  41. <Import Project="$(LolEngineDir)build/msbuild/kinc.vars.props"
  42. Condition="'$(enable_kinc)'!='no'" />
  43. <Import Project="$(LolEngineDir)build/msbuild/vars.props" />
  44. <Import Project="$(LolEngineDir)build/msbuild/embed.props" />
  45. </ImportGroup>
  46. <PropertyGroup Label="UserMacros" />
  47. <!--
  48. - Build rules
  49. -->
  50. <!-- NDA platforms -->
  51. <Import Condition="Exists('$(LolEngineDir)lol-switch/msbuild/rules.props')"
  52. Project="$(LolEngineDir)lol-switch/msbuild/rules.props" />
  53. <Import Condition="Exists('$(LolEngineDir)lol-playstation/msbuild/rules.props')"
  54. Project="$(LolEngineDir)lol-playstation/msbuild/rules.props" />
  55. <Import Project="$(LolEngineDir)build/msbuild/rules.props" />
  56. <ItemDefinitionGroup />
  57. <!--
  58. - Lol Engine dependency
  59. -->
  60. <ItemGroup>
  61. <ProjectReference Include="$(LolEngineDir)src/lolengine.vcxproj" Condition="'$(ConfigurationType)'!='StaticLibrary'">
  62. <Project>{9e62f2fe-3408-4eae-8238-fd84238ceeda}</Project>
  63. </ProjectReference>
  64. </ItemGroup>
  65. <Target Name="KincCompile" AfterTargets="BuildGenerateSources" Condition="'$(ConfigurationType)'!='StaticLibrary'">
  66. <ItemGroup Condition="'$(enable_kinc)'!='no'">
  67. <KincDirs Include="Sources/kinc" />
  68. <KincDirs Condition="'$(Platform)'=='x64' or '$(Platform)'=='Win32'"
  69. Include="Backends/Audio2/WASAPI/Sources/kinc/backend;
  70. Backends/Graphics4/Direct3D11/Sources/kinc/backend;
  71. Backends/Graphics5/G5onG4/Sources/kinc/backend;
  72. Backends/System/Microsoft/Sources/kinc/backend;
  73. Backends/System/Windows/Sources/kinc/backend;
  74. Backends/System/Windows/Libraries/DirectShow/BaseClasses" />
  75. <KincDirs Condition="'$(Platform)'=='NX64'"
  76. Include="Backends/Graphics4/G4onG5/Sources/kinc/backend;
  77. ../Backends/Switch/Sources/kinc/backend" />
  78. <KincDirs Condition="'$(Platform)'=='ORBIS'"
  79. Include="Backends/Graphics4/G4onG5/Sources/kinc/backend;
  80. ../Backends/PlayStation4/Sources/kinc/backend;
  81. ../Backends/PlayStation4/Sources/tlsf" />
  82. <KincDirs Condition="'$(Platform)'=='Prospero'"
  83. Include="Backends/Graphics4/G4onG5/Sources/kinc/backend;
  84. ../Backends/PlayStation5/Sources/kinc/backend;
  85. ../Backends/PlayStation5/Sources/tlsf" />
  86. <ClCompile Include="$(KINC_SDK_PATH)/%(KincDirs.Identity)/**/*.c" />
  87. <ClCompile Include="$(KINC_SDK_PATH)/%(KincDirs.Identity)/**/*.cpp" />
  88. <GLSLShader Include="$(KINC_SDK_PATH)/GLSLShaders/**/*.glsl" />
  89. </ItemGroup>
  90. </Target>
  91. <!--
  92. - Sanity checks
  93. -->
  94. <Target Name="Build">
  95. <Error Text="This project includes $(MsBuildThisFileName).props but not $(MsBuildThisFileName).targets" />
  96. </Target>
  97. <PropertyGroup>
  98. <!-- Ensure our sanity checks are executed first, before anything else that was inserted. -->
  99. <PrepareForBuildDependsOn>LolEngineSanityChecks;$(PrepareForBuildDependsOn)</PrepareForBuildDependsOn>
  100. </PropertyGroup>
  101. <Target Name="LolEngineSanityChecks">
  102. <Error Condition="!exists('$(LolEngineDir)')"
  103. Text="Lol Engine directory '$(LolEngineDir)' was not found" />
  104. <Error Condition="'$(KINC_SDK_PATH)'==''"
  105. Text="KINC_SDK_PATH is not set" />
  106. <Error Condition="!exists('$(KINC_SDK_PATH)/make')"
  107. Text="KINC_SDK_PATH is set, but '$(KINC_SDK_PATH)/make' was not found" />
  108. <Error Condition="('$(Platform)'=='NX64' or '$(Platform)'=='NX32') and !exists('$(LolEngineDir)lol-switch')"
  109. Text="platform '$(Platform)' selected, but '$(LolEngineDir)lol-switch' was not found" />
  110. <Error Condition="('$(Platform)'=='NX64' or '$(Platform)'=='NX32') and !exists('$(LolEngineDir)lol-switch/msbuild/config.props')"
  111. Text="platform '$(Platform)' selected, but '$(LolEngineDir)lol-switch/msbuild/config.props' was not found" />
  112. <Error Condition="('$(Platform)'=='ORBIS' or '$(Platform)'=='Prospero') and !exists('$(LolEngineDir)lol-playstation')"
  113. Text="platform '$(Platform)' selected, but '$(LolEngineDir)lol-playstation' was not found" />
  114. <Error Condition="('$(Platform)'=='ORBIS' or '$(Platform)'=='Prospero') and !exists('$(LolEngineDir)lol-playstation/msbuild/config.props')"
  115. Text="platform '$(Platform)' selected, but '$(LolEngineDir)lol-playstation/msbuild/config.props' was not found" />
  116. <Error Condition="('$(Platform)'=='Gaming.Xbox.XboxOne.x64' or '$(Platform)'=='Gaming.Xbox.Scarlett.x64') and !exists('$(LolEngineDir)lol-xbox')"
  117. Text="platform '$(Platform)' selected, but '$(LolEngineDir)lol-xbox' was not found" />
  118. <Error Condition="('$(Platform)'=='Gaming.Xbox.XboxOne.x64' or '$(Platform)'=='Gaming.Xbox.Scarlett.x64') and !exists('$(LolEngineDir)lol-xbox/msbuild/config.props')"
  119. Text="platform '$(Platform)' selected, but '$(LolEngineDir)lol-xbox/msbuild/config.props' was not found" />
  120. </Target>
  121. </Project>