-
Notifications
You must be signed in to change notification settings - Fork 1
/
Directory.Build.props
52 lines (52 loc) · 3.69 KB
/
Directory.Build.props
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
<Project ToolsVersion="15.0">
<!-- Works when building on windows using cmake-generated VS solution -->
<Import Project="$(SolutionDir)/CMake.props" Condition=" '$(SolutionDir)' != '' And Exists('$(SolutionDir)/CMake.props')" />
<!-- When separate .csproj projects are built by make/ninja -->
<Import Project="$(CMAKE_BINARY_DIR)/CMake.props" Condition=" '$(CMakePropsIncluded)' == '' And '$(CMAKE_BINARY_DIR)' != '' And Exists('$(CMAKE_BINARY_DIR)/CMake.props') " />
<!-- Azure pipelines for some reason have SolutionDir undefined however -->
<Import Project="$(MSBuildStartupDirectory)/CMake.props" Condition=" '$(CMakePropsIncluded)' == '' And '$(SolutionDir)' == '' And Exists('$(MSBuildStartupDirectory)/CMake.props') " />
<PropertyGroup>
<LangVersion>7.2</LangVersion>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<EnableDefaultCompileItems>false</EnableDefaultCompileItems>
<EnableUnmanagedDebugging>true</EnableUnmanagedDebugging>
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
<Configurations>Debug;Release;RelWithDebInfo;MinSizeRel</Configurations>
<HasDebugInfo Condition=" '$(Configuration)' == 'Debug' Or '$(Configuration)' == 'RelWithDebInfo'">true</HasDebugInfo>
<BaseOutputPath>bin/</BaseOutputPath>
<PlatformTarget Condition=" '$(PlatformTarget)' == '' ">x64</PlatformTarget>
<PlatformTarget Condition=" '$(Platform)' == 'x64' ">x64</PlatformTarget>
<PlatformTarget Condition=" '$(Platform)' == 'Win32' Or '$(Platform)' == 'x86' ">x86</PlatformTarget>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
</PropertyGroup>
<PropertyGroup Condition="'$(TargetFramework)' == ''">
<TargetFramework Condition=" '$(URHO3D_NETFX)' == '' ">net471</TargetFramework>
<TargetFramework Condition=" '$(URHO3D_NETFX)' != '' ">$(URHO3D_NETFX)</TargetFramework>
<RuntimeIdentifiers Condition=" '$(OS)' == 'Unix' ">linux-$(PlatformTarget)</RuntimeIdentifiers>
<RuntimeIdentifiers Condition=" '$(OS)' == 'Windows_NT' ">win7-$(PlatformTarget)</RuntimeIdentifiers>
<RuntimeIdentifiers Condition=" '$(OS)' == 'OSX' ">osx.10.10-$(PlatformTarget)</RuntimeIdentifiers>
</PropertyGroup>
<PropertyGroup Condition=" '$(CMAKE_BINARY_DIR)' == '' ">
<CMAKE_BINARY_DIR Condition=" '$(OS)' == 'Windows_NT' ">$(SolutionDir)</CMAKE_BINARY_DIR> <!-- Solution is in cmake binary dir -->
<CMAKE_BINARY_DIR Condition=" '$(OS)' != 'Windows_NT' ">$(SolutionDir)cmake-build/</CMAKE_BINARY_DIR> <!-- Solution is in engine source dir -->
</PropertyGroup>
<PropertyGroup Condition=" '$(CMAKE_RUNTIME_OUTPUT_DIRECTORY)' == '' ">
<CMAKE_RUNTIME_OUTPUT_DIRECTORY>$(CMAKE_BINARY_DIR)$(BaseOutputPath)</CMAKE_RUNTIME_OUTPUT_DIRECTORY> <!-- CMAKE_BINARY_DIR/bin -->
</PropertyGroup>
<PropertyGroup Condition=" '$(RBFX_BINARY_DIR)' == '' ">
<RBFX_BINARY_DIR>$(CMAKE_BINARY_DIR)</RBFX_BINARY_DIR> <!-- Could be CMAKE_BINARY_DIR/dep/rbfx for example -->
</PropertyGroup>
<PropertyGroup Condition=" '$(OS)' == 'Windows_NT' Or '$(CMAKE_GENERATOR)' == 'Xcode' ">
<BaseOutputPath>$(BaseOutputPath)$(Configuration)/</BaseOutputPath>
</PropertyGroup>
<PropertyGroup>
<BaseIntermediateOutputPath>$(CMAKE_BINARY_DIR)obj/$(MSBuildProjectName)/</BaseIntermediateOutputPath>
<BaseOutputPath>$(CMAKE_BINARY_DIR)$(BaseOutputPath)</BaseOutputPath>
<OutDir>$(BaseOutputPath)</OutDir>
<OutputPath>$(BaseOutputPath)</OutputPath>
</PropertyGroup>
<PropertyGroup>
<SignAssembly>true</SignAssembly>
<AssemblyOriginatorKeyFile>$(CMAKE_BINARY_DIR)/CSharp.snk</AssemblyOriginatorKeyFile>
</PropertyGroup>
</Project>