-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathProjectBuildProperties.targets
48 lines (46 loc) · 2.48 KB
/
ProjectBuildProperties.targets
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
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<!-- Base Project Configuration -->
<PropertyGroup>
<Platforms>x64</Platforms>
<PlatformTarget>x64</PlatformTarget>
<BaseOutputPath>$(SolutionDir)bin</BaseOutputPath>
<Configurations>Debug;Release;Debug-Linux;Debug-Profiler;Release-Profiler;Debug-Android;Debug-Android-Profiler</Configurations>
<DefineConstants>$(DefineConstants);RENGINE_IMGUI;RENGINE_SPRITEBATCH;RENGINE_RENDERGRAPH;RENGINE_VALIDATIONS</DefineConstants>
</PropertyGroup>
<!-- Helper Variables -->
<PropertyGroup>
<IsWindows Condition="'$(Configuration)'=='Debug' or '$(Configuration)'=='Release' or '$(Configuration)'=='Debug-Profiler'">1</IsWindows>
<IsLinux Condition="$(Configuration.Contains('Linux'))">1</IsLinux>
<IsMacOS Condition="$(Configuration.Contains('MacOS'))">1</IsMacOS>
<IsAndroid Condition="$(Configuration.Contains('Android'))">1</IsAndroid>
<IsDesktop Condition="'$(IsAndroid)'!='1'">1</IsDesktop>
<IsProfilerEnabled Condition="$(Configuration.Contains('Profiler'))">1</IsProfilerEnabled>
<IsDebug Condition="$(Configuration.StartsWith('Debug'))">1</IsDebug>
<IsRelease Condition="$(Configuration.StartsWith('Release'))">1</IsRelease>
</PropertyGroup>
<!-- Project Define Constants -->
<PropertyGroup Condition="'$(IsDebug)'=='1'">
<DefineConstants>$(DefineConstants);DEBUG</DefineConstants>
</PropertyGroup>
<PropertyGroup Condition="'$(IsRelease)'=='1'">
<DefineConstants>$(DefineConstants);RELEASE</DefineConstants>
</PropertyGroup>
<PropertyGroup Condition="'$(IsWindows)'=='1'">
<DefineConstants>$(DefineConstants);WINDOWS</DefineConstants>
</PropertyGroup>
<PropertyGroup Condition="'$(IsLinux)'=='1'">
<DefineConstants>$(DefineConstants);LINUX</DefineConstants>
</PropertyGroup>
<PropertyGroup Condition="'$(IsMacOS)'=='1'">
<DefineConstants>$(DefineConstants);MACOS</DefineConstants>
</PropertyGroup>
<PropertyGroup Condition="'$(IsAndroid)'=='1'">
<DefineConstants>$(DefineConstants);ANDROID</DefineConstants>
</PropertyGroup>
<PropertyGroup Condition="'$(IsDesktop)'=='1'">
<DefineConstants>$(DefineConstants);DESKTOP</DefineConstants>
</PropertyGroup>
<PropertyGroup Condition="'$(IsProfilerEnabled)'=='1'">
<DefineConstants>$(DefineConstants);PROFILER</DefineConstants>
</PropertyGroup>
</Project>