25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

100 lines
4.4 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. </PropertyGroup>
  11. <!--
  12. -
  13. -->
  14. <Import Project="$(LolEngineDir)build\msbuild\lol.config.props" />
  15. <ImportGroup Label="PropertySheets">
  16. <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props"
  17. Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
  18. <Import Project="$(LolEngineDir)build\msbuild\lol.vars.props" />
  19. </ImportGroup>
  20. <PropertyGroup Label="UserMacros" />
  21. <Import Project="$(LolEngineDir)build\msbuild\lol.rules.props" />
  22. <ItemDefinitionGroup />
  23. <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
  24. <ImportGroup Label="ExtensionTargets">
  25. <Import Condition="'$(enable_kinc)'!='no'"
  26. Project="$(LolEngineDir)build\msbuild\kinc.targets" />
  27. </ImportGroup>
  28. <ItemGroup>
  29. <ProjectReference Include="$(LolEngineDir)src/lolengine.vcxproj" Condition="'$(ProjectName)'!='lolengine'">
  30. <Project>{9e62f2fe-3408-4eae-8238-fd84238ceeda}</Project>
  31. </ProjectReference>
  32. </ItemGroup>
  33. <ItemGroup Condition="'$(enable_kinc)'!='no'">
  34. <ClCompile Include="$(KINC_SDK_PATH)/Sources/kinc/**/*.cpp" />
  35. <ClCompile Include="$(KINC_SDK_PATH)/Sources/kinc/**/*.c" />
  36. <GLSLShader Include="$(KINC_SDK_PATH)/GLSLShaders/**/*.glsl" />
  37. </ItemGroup>
  38. <ItemGroup Condition="'$(enable_kinc)'!='no' And '$(Platform)'=='x64'">
  39. <ClCompile Include="$(KINC_SDK_PATH)/Backends/Audio2/WASAPI/Sources/kinc/backend/**/*.cpp" />
  40. <ClCompile Include="$(KINC_SDK_PATH)/Backends/Audio2/WASAPI/Sources/kinc/backend/**/*.c" />
  41. <ClCompile Include="$(KINC_SDK_PATH)/Backends/Graphics4/Direct3D11/Sources/kinc/backend/**/*.cpp" />
  42. <ClCompile Include="$(KINC_SDK_PATH)/Backends/Graphics4/Direct3D11/Sources/kinc/backend/**/*.c" />
  43. <ClCompile Include="$(KINC_SDK_PATH)/Backends/Graphics5/G5onG4/Sources/kinc/backend/**/*.cpp" />
  44. <ClCompile Include="$(KINC_SDK_PATH)/Backends/Graphics5/G5onG4/Sources/kinc/backend/**/*.c" />
  45. <ClCompile Include="$(KINC_SDK_PATH)/Backends/System/Microsoft/Sources/kinc/backend/**/*.cpp" />
  46. <ClCompile Include="$(KINC_SDK_PATH)/Backends/System/Microsoft/Sources/kinc/backend/**/*.c" />
  47. <ClCompile Include="$(KINC_SDK_PATH)/Backends/System/Windows/Sources/kinc/backend/**/*.cpp" />
  48. <ClCompile Include="$(KINC_SDK_PATH)/Backends/System/Windows/Sources/kinc/backend/**/*.c" />
  49. <ClCompile Include="$(KINC_SDK_PATH)/Backends/System/Windows/Libraries/DirectShow/BaseClasses/**/*.cpp" />
  50. <ClCompile Include="$(KINC_SDK_PATH)/Backends/System/Windows/Libraries/DirectShow/BaseClasses/**/*.c" />
  51. </ItemGroup>
  52. <ItemGroup Condition="'$(enable_kinc)'!='no' And '$(Platform)'=='NX64'">
  53. <ClCompile Include="$(KINC_SDK_PATH)/Backends/Graphics4/G4onG5/Sources/kinc/backend/**/*.cpp" />
  54. <ClCompile Include="$(KINC_SDK_PATH)/Backends/Graphics4/G4onG5/Sources/kinc/backend/**/*.c" />
  55. <ClCompile Include="$(KINC_SDK_PATH)/../Backends/Switch/Sources/kinc/backend/**/*.cpp" />
  56. <ClCompile Include="$(KINC_SDK_PATH)/../Backends/Switch/Sources/kinc/backend/**/*.c" />
  57. </ItemGroup>
  58. <!--
  59. - Sanity checks
  60. -->
  61. <PropertyGroup>
  62. <!-- Ensure our sanity checks are executed first, before anything else that was inserted. -->
  63. <PrepareForBuildDependsOn>LolEngineSanityChecks;$(PrepareForBuildDependsOn)</PrepareForBuildDependsOn>
  64. </PropertyGroup>
  65. <Target Name="LolEngineSanityChecks">
  66. <Error Condition="!Exists('$(LolEngineDir)')"
  67. Text="Lol Engine directory '$(LolEngineDir)' was not found" />
  68. <Error Condition="'$(KINC_SDK_PATH)'==''"
  69. Text="KINC_SDK_PATH is not set" />
  70. <Error Condition="!Exists('$(KINC_SDK_PATH)/make')"
  71. Text="KINC_SDK_PATH is set, but '$(KINC_SDK_PATH)/make' was not found" />
  72. <Error Condition="('$(Platform)'=='NX64' Or '$(Platform)'=='NX32') And !Exists('$(LolEngineDir)lol-switch')"
  73. Text="platform '$(Platform)' selected, but '$(LolEngineDir)lol-switch' was not found" />
  74. <Error Condition="('$(Platform)'=='ORBIS' Or '$(Platform)'=='Prospero') And !Exists('$(LolEngineDir)lol-playstation')"
  75. Text="platform '$(Platform)' selected, but '$(LolEngineDir)lol-playstation' was not found" />
  76. </Target>
  77. </Project>