forked from Starkku/xna-cncnet-client
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathFramework.props
32 lines (27 loc) · 2.05 KB
/
Framework.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
<Project>
<PropertyGroup>
<Engines>WindowsDX;WindowsGL;UniversalGL;WindowsXNA</Engines>
<Games>Ares;TS;YR</Games>
<OutputPath>$(BaseOutputPath)bin\$(Configuration)\$(Game)\$(Engine)\</OutputPath>
<IntermediateOutputPath>$(BaseIntermediateOutputPath)obj\$(Configuration)\$(Game)\$(Engine)\</IntermediateOutputPath>
</PropertyGroup>
<PropertyGroup>
<DefineConstants Condition="'$(Configuration.Contains(Debug))'">$(DefineConstants);DEBUG</DefineConstants>
<!-- Engines -->
<DefineConstants Condition="'$(Engine)' == 'WindowsDX'">$(DefineConstants);DX;WINFORMS;ISWINDOWS</DefineConstants>
<DefineConstants Condition="'$(Engine)' == 'WindowsGL'">$(DefineConstants);GL;WINFORMS;ISWINDOWS</DefineConstants>
<DefineConstants Condition="'$(Engine)' == 'UniversalGL'">$(DefineConstants);GL</DefineConstants>
<DefineConstants Condition="'$(Engine)' == 'UniversalGL' And $([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'windows'">$(DefineConstants);ISWINDOWS</DefineConstants>
<DefineConstants Condition="'$(Engine)' == 'WindowsXNA'">$(DefineConstants);XNA;WINFORMS;ISWINDOWS</DefineConstants>
<!-- Games-->
<DefineConstants Condition="'$(Game)' == 'Ares'">$(DefineConstants);ARES</DefineConstants>
<DefineConstants Condition="'$(Game)' == 'TS'">$(DefineConstants);TS</DefineConstants>
<DefineConstants Condition="'$(Game)' == 'YR'">$(DefineConstants);YR</DefineConstants>
</PropertyGroup>
<Target Name="CheckEngineAndGame" BeforeTargets="CoreCompile">
<Error Text="Engine is not set! Please retry with /p:Engine={Engine}. Supported Engines are $(Engines)." Condition=" '$(Engine)' == '' " />
<Error Text="Engine '$(Engine)' is not supported. Supported Engines are $(Engines)." Condition=" '!$(Engines.Contains($(Engine)))' " />
<Error Text="Game is not set! Please retry with /p:Game={Game}. Supported Games are $(Games)." Condition=" '$(Game)' == '' " />
<Error Text="Game '$(Game)' is not supported. Supported Games are $(Games)." Condition=" '!$(Games.Contains($(Game)))' " />
</Target>
</Project>