|
- <?xml version="1.0" encoding="utf-8"?>
- <Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
-
- <!--
- - lolengine.props
- -
- - This file should be referenced by any project that uses Lol Engine
- -->
-
- <PropertyGroup>
- <LolEngineDir>$(MsBuildThisFileDirectory)</LolEngineDir>
- <_LolEnginePropsIncluded>true</_LolEnginePropsIncluded>
- </PropertyGroup>
-
- <!--
- - Build configuration
- -->
-
- <!-- Import defaults settings from Visual Studio -->
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
-
- <Import Project="$(LolEngineDir)build/msbuild/config.props" />
-
- <!-- NDA platforms -->
- <Import Project="$(LolEngineDir)lol-switch/msbuild/config.props"
- Condition="exists('$(LolEngineDir)lol-switch/msbuild/config.props')" />
- <Import Project="$(LolEngineDir)lol-playstation/msbuild/config.props"
- Condition="exists('$(LolEngineDir)lol-playstation/msbuild/config.props')" />
-
- <!-- Override settings with the user’s build.config file -->
- <Import Condition="exists('$(LolEngineDir)build.config')"
- Project="$(LolEngineDir)build.config" />
- <Import Condition="exists('$(SolutionDir)build.config') and '$(SolutionDir)'!='$(LolEngineDir)'"
- Project="$(SolutionDir)build.config" />
-
- <!-- Final settings from Visual Studio -->
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
-
- <!--
- - Build variables
- -->
-
- <ImportGroup Label="PropertySheets">
-
- <Import Project="$(UserRootDir)Microsoft.Cpp.$(Platform).user.props"
- Condition="exists('$(UserRootDir)Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
-
- <!-- NDA platforms -->
- <Import Project="$(LolEngineDir)lol-switch/msbuild/vars.props"
- Condition="exists('$(LolEngineDir)lol-switch/msbuild/vars.props')" />
- <Import Project="$(LolEngineDir)lol-playstation/msbuild/vars.props"
- Condition="exists('$(LolEngineDir)lol-playstation/msbuild/vars.props')" />
-
- <Import Project="$(LolEngineDir)build/msbuild/kinc.vars.props"
- Condition="'$(enable_kinc)'!='no'" />
-
- <Import Project="$(LolEngineDir)build/msbuild/vars.props" />
- <Import Project="$(LolEngineDir)build/msbuild/embed.props" />
- </ImportGroup>
-
- <PropertyGroup Label="UserMacros" />
-
- <!--
- - Build rules
- -->
-
- <!-- NDA platforms -->
- <Import Condition="Exists('$(LolEngineDir)lol-switch/msbuild/rules.props')"
- Project="$(LolEngineDir)lol-switch/msbuild/rules.props" />
- <Import Condition="Exists('$(LolEngineDir)lol-playstation/msbuild/rules.props')"
- Project="$(LolEngineDir)lol-playstation/msbuild/rules.props" />
-
- <Import Project="$(LolEngineDir)build/msbuild/rules.props" />
-
- <ItemDefinitionGroup />
-
- <!--
- - Lol Engine dependency
- -->
-
- <ItemGroup>
- <ProjectReference Include="$(LolEngineDir)src/lolengine.vcxproj" Condition="'$(ConfigurationType)'!='StaticLibrary'">
- <Project>{9e62f2fe-3408-4eae-8238-fd84238ceeda}</Project>
- </ProjectReference>
- </ItemGroup>
-
- <Target Name="KincCompile" AfterTargets="BuildGenerateSources" Condition="'$(ConfigurationType)'!='StaticLibrary'">
- <ItemGroup Condition="'$(enable_kinc)'!='no'">
- <KincDirs Include="Sources/kinc" />
-
- <KincDirs Condition="'$(Platform)'=='x64' or '$(Platform)'=='Win32'"
- Include="Backends/Audio2/WASAPI/Sources/kinc/backend;
- Backends/Graphics4/Direct3D11/Sources/kinc/backend;
- Backends/Graphics5/G5onG4/Sources/kinc/backend;
- Backends/System/Microsoft/Sources/kinc/backend;
- Backends/System/Windows/Sources/kinc/backend;
- Backends/System/Windows/Libraries/DirectShow/BaseClasses" />
-
- <KincDirs Condition="'$(Platform)'=='NX64'"
- Include="Backends/Graphics4/G4onG5/Sources/kinc/backend;
- ../Backends/Switch/Sources/kinc/backend" />
-
- <KincDirs Condition="'$(Platform)'=='ORBIS'"
- Include="Backends/Graphics4/G4onG5/Sources/kinc/backend;
- ../Backends/PlayStation4/Sources/kinc/backend;
- ../Backends/PlayStation4/Sources/tlsf" />
-
- <KincDirs Condition="'$(Platform)'=='Prospero'"
- Include="Backends/Graphics4/G4onG5/Sources/kinc/backend;
- ../Backends/PlayStation5/Sources/kinc/backend;
- ../Backends/PlayStation5/Sources/tlsf" />
-
- <ClCompile Include="$(KINC_SDK_PATH)/%(KincDirs.Identity)/**/*.c" />
- <ClCompile Include="$(KINC_SDK_PATH)/%(KincDirs.Identity)/**/*.cpp" />
- <GLSLShader Include="$(KINC_SDK_PATH)/GLSLShaders/**/*.glsl" />
- </ItemGroup>
- </Target>
-
- <!--
- - Sanity checks
- -->
-
- <Target Name="Build">
- <Error Text="This project includes $(MsBuildThisFileName).props but not $(MsBuildThisFileName).targets" />
- </Target>
-
- <PropertyGroup>
- <!-- Ensure our sanity checks are executed first, before anything else that was inserted. -->
- <PrepareForBuildDependsOn>LolEngineSanityChecks;$(PrepareForBuildDependsOn)</PrepareForBuildDependsOn>
- </PropertyGroup>
-
- <Target Name="LolEngineSanityChecks">
-
- <Error Condition="!exists('$(LolEngineDir)')"
- Text="Lol Engine directory '$(LolEngineDir)' was not found" />
-
- <Error Condition="'$(KINC_SDK_PATH)'==''"
- Text="KINC_SDK_PATH is not set" />
-
- <Error Condition="!exists('$(KINC_SDK_PATH)/make')"
- Text="KINC_SDK_PATH is set, but '$(KINC_SDK_PATH)/make' was not found" />
-
- <Error Condition="('$(Platform)'=='NX64' or '$(Platform)'=='NX32') and !exists('$(LolEngineDir)lol-switch')"
- Text="platform '$(Platform)' selected, but '$(LolEngineDir)lol-switch' was not found" />
-
- <Error Condition="('$(Platform)'=='NX64' or '$(Platform)'=='NX32') and !exists('$(LolEngineDir)lol-switch/msbuild/config.props')"
- Text="platform '$(Platform)' selected, but '$(LolEngineDir)lol-switch/msbuild/config.props' was not found" />
-
- <Error Condition="('$(Platform)'=='ORBIS' or '$(Platform)'=='Prospero') and !exists('$(LolEngineDir)lol-playstation')"
- Text="platform '$(Platform)' selected, but '$(LolEngineDir)lol-playstation' was not found" />
-
- <Error Condition="('$(Platform)'=='ORBIS' or '$(Platform)'=='Prospero') and !exists('$(LolEngineDir)lol-playstation/msbuild/config.props')"
- Text="platform '$(Platform)' selected, but '$(LolEngineDir)lol-playstation/msbuild/config.props' was not found" />
-
- <Error Condition="('$(Platform)'=='Gaming.Xbox.XboxOne.x64' or '$(Platform)'=='Gaming.Xbox.Scarlett.x64') and !exists('$(LolEngineDir)lol-xbox')"
- Text="platform '$(Platform)' selected, but '$(LolEngineDir)lol-xbox' was not found" />
-
- <Error Condition="('$(Platform)'=='Gaming.Xbox.XboxOne.x64' or '$(Platform)'=='Gaming.Xbox.Scarlett.x64') and !exists('$(LolEngineDir)lol-xbox/msbuild/config.props')"
- Text="platform '$(Platform)' selected, but '$(LolEngineDir)lol-xbox/msbuild/config.props' was not found" />
-
- </Target>
-
- </Project>
|