-
-
Notifications
You must be signed in to change notification settings - Fork 115
Expand file tree
/
Copy pathDirectory.Build.props
More file actions
111 lines (95 loc) · 5.47 KB
/
Directory.Build.props
File metadata and controls
111 lines (95 loc) · 5.47 KB
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
<Project>
<PropertyGroup>
<LangVersion>14.0</LangVersion>
<ComVisible>false</ComVisible>
<CLSCompliant>false</CLSCompliant>
<ImplicitUsings>disable</ImplicitUsings>
<Title>CnCNet Client</Title>
<Company>CnCNet</Company>
<Product>CnCNet Client</Product>
<Copyright>Copyright © CnCNet, Rampastring 2011-2026</Copyright>
<Trademark>CnCNet</Trademark>
<!-- GitVersion will rewrite the informational version anyway -->
<IncludeSourceRevisionInInformationalVersion>false</IncludeSourceRevisionInInformationalVersion>
<!-- There is a race condition in GitVersion. Disable writing version info should help a bit -->
<WriteVersionInfoToBuildLog>false</WriteVersionInfoToBuildLog>
</PropertyGroup>
<PropertyGroup>
<Configurations>
UniversalGLDebug;WindowsDXDebug;WindowsGLDebug;WindowsXNADebug;
UniversalGLRelease;WindowsDXRelease;WindowsGLRelease;WindowsXNARelease
</Configurations>
</PropertyGroup>
<!-- For Internal Logic -->
<PropertyGroup>
<!-- Rendering Engine -->
<Engine Condition="$(Configuration.Contains(WindowsDX))">WindowsDX</Engine>
<Engine Condition="$(Configuration.Contains(UniversalGL))">UniversalGL</Engine>
<Engine Condition="$(Configuration.Contains(WindowsGL))">WindowsGL</Engine>
<Engine Condition="$(Configuration.Contains(WindowsXNA))">WindowsXNA</Engine>
</PropertyGroup>
<PropertyGroup Condition="'$(MSBuildProjectName)' == 'ClientGUI' Or '$(MSBuildProjectName)' == 'DXMainClient'">
<TargetFrameworks Condition="$(Engine.Contains(Windows))">net48;net8.0-windows</TargetFrameworks>
<TargetFrameworks Condition="!$(Engine.Contains(Windows))">net8.0</TargetFrameworks>
<!-- We need to define both platforms to make Visual Studio happy when targeting XNA -->
<Platforms>AnyCPU;x86</Platforms>
<!-- XNA only supports x86, but the other engines support any CPU. -->
<Platform Condition="$(Engine.Contains(XNA))">x86</Platform>
<Platform Condition="!$(Engine.Contains(XNA))">AnyCPU</Platform>
<PlatformTarget Condition="$(Engine.Contains(XNA))">x86</PlatformTarget>
<PlatformTarget Condition="!$(Engine.Contains(XNA))">AnyCPU</PlatformTarget>
<!-- WinForms Auto Configure -->
<UseWindowsForms Condition="$(Engine.Contains(Windows))">true</UseWindowsForms>
</PropertyGroup>
<PropertyGroup Condition="'$(MSBuildProjectName)' == 'TranslationNotifierGenerator'">
<TargetFrameworks>netstandard2.0</TargetFrameworks>
<Platforms>AnyCPU</Platforms>
</PropertyGroup>
<PropertyGroup Condition="'$(MSBuildProjectName)' == 'ClientCore' Or '$(MSBuildProjectName)' == 'SecondStageUpdater' Or '$(MSBuildProjectName)' == 'ClientUpdater'">
<TargetFrameworks>net8.0;net48</TargetFrameworks>
<Platforms>AnyCPU</Platforms>
</PropertyGroup>
<!-- For Constants -->
<PropertyGroup>
<!-- Is Debug -->
<DefineConstants Condition="$(Configuration.Contains(Debug))">$(DefineConstants);DEBUG</DefineConstants>
<!-- Engines -->
<DefineConstants Condition="$(Engine.Contains('DX'))">$(DefineConstants);DX</DefineConstants>
<DefineConstants Condition="$(Engine.Contains('GL'))">$(DefineConstants);GL</DefineConstants>
<DefineConstants Condition="$(Engine.Contains('XNA'))">$(DefineConstants);XNA</DefineConstants>
<DefineConstants Condition="$(Engine.Contains('Windows'))">$(DefineConstants);ISWINDOWS</DefineConstants>
<DefineConstants Condition="'$(UseWindowsForms)' == 'true'">$(DefineConstants);WINFORMS</DefineConstants>
</PropertyGroup>
<!-- Output Path Hack -->
<PropertyGroup>
<ClientConfiguration Condition="$(Configuration.Contains(Debug))">Debug</ClientConfiguration>
<ClientConfiguration Condition="$(Configuration.Contains(Release))">Release</ClientConfiguration>
<OutputPathSuffix>$(ClientConfiguration)\$(Engine)\</OutputPathSuffix>
<OutputPath Condition="'$(ClientConfiguration)' != ''">$(BaseOutputPath)bin\$(OutputPathSuffix)</OutputPath>
<IntermediateOutputPath Condition="'$(ClientConfiguration)' != ''">$(BaseIntermediateOutputPath)obj\$(OutputPathSuffix)</IntermediateOutputPath>
<ArtifactsPivots>$(OutputPathSuffix)$(TargetFramework)</ArtifactsPivots>
</PropertyGroup>
<!-- Support WindowsXNA 32bit debugging in VS -->
<PropertyGroup Condition="'$(PlatformTarget)' == 'x86' And '$(TargetFrameworkIdentifier)' != '.NETFramework'">
<RunCommand Condition="Exists('$(MSBuildProgramFiles32)\dotnet\dotnet.exe')">$(MSBuildProgramFiles32)\dotnet\dotnet.exe</RunCommand>
</PropertyGroup>
<!-- Allow a game specific build prop file to be imported, if available -->
<Import Project="$(MSBuildThisFileDirectory)Directory.props" Condition="Exists('$(MSBuildThisFileDirectory)Directory.props')" />
<ItemGroup>
<CompilerVisibleProperty Include="RootNamespace" />
</ItemGroup>
<PropertyGroup>
<XNAUIRoot>$(MSBuildThisFileDirectory)Rampastring.XNAUI</XNAUIRoot>
</PropertyGroup>
<ItemGroup Condition="('$(MSBuildProjectName)' == 'ClientGUI' Or '$(MSBuildProjectName)' == 'DXMainClient') And $(Engine.Contains(XNA))">
<Reference Include="Microsoft.Xna.Framework">
<HintPath>$(XNAUIRoot)\References\XNA\Microsoft.Xna.Framework.dll</HintPath>
</Reference>
<Reference Include="Microsoft.Xna.Framework.Game">
<HintPath>$(XNAUIRoot)\References\XNA\Microsoft.Xna.Framework.Game.dll</HintPath>
</Reference>
<Reference Include="Microsoft.Xna.Framework.Graphics">
<HintPath>$(XNAUIRoot)\References\XNA\Microsoft.Xna.Framework.Graphics.dll</HintPath>
</Reference>
</ItemGroup>
</Project>