|
- <?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>
- </PropertyGroup>
-
- <!--
- - Build configuration
- -->
-
- <!-- Settings that can be defined by the user in a 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" />
-
- <!-- 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')" />
-
- <Import Project="$(LolEngineDir)build/msbuild/config.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" />
- </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 />
-
- <!--
- - Target definitions
- -->
-
- <Import Project="$(VCTargetsPath)Microsoft.Cpp.targets" />
-
- <ImportGroup Label="ExtensionTargets">
- <Import Condition="'$(enable_kinc)'!='no'"
- Project="$(LolEngineDir)build/msbuild/kinc.targets" />
- </ImportGroup>
-
- <!--
- - 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'">
- <ClCompile Include="$(KINC_SDK_PATH)/Sources/kinc/**/*.cpp" />
- <ClCompile Include="$(KINC_SDK_PATH)/Backends/Audio2/WASAPI/Sources/kinc/backend/**/*.cpp;
- $(KINC_SDK_PATH)/Backends/Graphics4/Direct3D11/Sources/kinc/backend/**/*.cpp;
- $(KINC_SDK_PATH)/Backends/Graphics5/G5onG4/Sources/kinc/backend/**/*.cpp;
- $(KINC_SDK_PATH)/Backends/System/Microsoft/Sources/kinc/backend/**/*.cpp;
- $(KINC_SDK_PATH)/Backends/System/Windows/Sources/kinc/backend/**/*.cpp;
- $(KINC_SDK_PATH)/Backends/System/Windows/Libraries/DirectShow/BaseClasses/**/*.cpp"
- Condition="'$(Platform)'=='x64'" />
- <ClCompile Include="$(KINC_SDK_PATH)/Backends/Graphics4/G4onG5/Sources/kinc/backend/**/*.cpp;
- $(KINC_SDK_PATH)/../Backends/Switch/Sources/kinc/backend/**/*.cpp"
- Condition="'$(Platform)'=='NX64'" />
- <ClCompile Include="$(KINC_SDK_PATH)/Backends/Graphics4/G4onG5/Sources/kinc/backend/**/*.cpp;
- $(KINC_SDK_PATH)/../Backends/PlayStation5/Sources/kinc/backend/**/*.cpp;
- $(KINC_SDK_PATH)/../Backends/PlayStation5/Sources/tlsf/**/*.cpp"
- Condition="'$(Platform)'=='Prospero'" />
-
- <!-- The C files are first added to a temporary list so that we can modify AdditionalOptions
- - when compiling them. This is because of an annoying NDK limitation. -->
- <KincCFiles Include="$(KINC_SDK_PATH)/Sources/kinc/**/*.c" />
- <KincCFiles Include="$(KINC_SDK_PATH)/Backends/Audio2/WASAPI/Sources/kinc/backend/**/*.c;
- $(KINC_SDK_PATH)/Backends/Graphics4/Direct3D11/Sources/kinc/backend/**/*.c;
- $(KINC_SDK_PATH)/Backends/Graphics5/G5onG4/Sources/kinc/backend/**/*.c;
- $(KINC_SDK_PATH)/Backends/System/Microsoft/Sources/kinc/backend/**/*.c;
- $(KINC_SDK_PATH)/Backends/System/Windows/Sources/kinc/backend/**/*.c;
- $(KINC_SDK_PATH)/Backends/System/Windows/Libraries/DirectShow/BaseClasses/**/*.c"
- Condition="'$(Platform)'=='x64'" />
- <KincCFiles Include="$(KINC_SDK_PATH)/Backends/Graphics4/G4onG5/Sources/kinc/backend/**/*.c;
- $(KINC_SDK_PATH)/../Backends/Switch/Sources/kinc/backend/**/*.c"
- Condition="'$(Platform)'=='NX64'" />
- <KincCFiles Include="$(KINC_SDK_PATH)/Backends/Graphics4/G4onG5/Sources/kinc/backend/**/*.c;
- $(KINC_SDK_PATH)/../Backends/PlayStation4/Sources/kinc/backend/**/*.c;
- $(KINC_SDK_PATH)/../Backends/PlayStation4/Sources/tlsf/**/*.c"
- Condition="'$(Platform)'=='ORBIS'" />
- <KincCFiles Include="$(KINC_SDK_PATH)/Backends/Graphics4/G4onG5/Sources/kinc/backend/**/*.c;
- $(KINC_SDK_PATH)/../Backends/PlayStation5/Sources/kinc/backend/**/*.c;
- $(KINC_SDK_PATH)/../Backends/PlayStation5/Sources/tlsf/**/*.c"
- Condition="'$(Platform)'=='Prospero'" />
- <ClCompile Include="@(KincCFiles)">
- <AdditionalOptions>%(ClCompile.AdditionalOptions) %(ClCompile.AdditionalOptionsForC)</AdditionalOptions>
- </ClCompile>
-
- <GLSLShader Include="$(KINC_SDK_PATH)/GLSLShaders/**/*.glsl" />
- </ItemGroup>
- </Target>
-
- <!--
- - Sanity checks
- -->
-
- <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" />
-
- </Target>
-
- </Project>
|