Repository navigation
Expand file tree
/
Copy pathDirectory.Build.props
More file actions
83 lines (67 loc) · 4.04 KB
/
Copy pathDirectory.Build.props
File metadata and controls
83 lines (67 loc) · 4.04 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
<Project>
<PropertyGroup>
<IsDependency Condition="$(MSBuildProjectDirectory.StartsWith('$(MSBuildThisFileDirectory)Dependencies'))">true</IsDependency>
<IsAnalyzer Condition="$(MSBuildProjectName.StartsWith('Source.CodeAnalysis'))">true</IsAnalyzer>
</PropertyGroup>
<PropertyGroup Condition="'$(IsDependency)' != 'true' And '$(IsAnalyzer)' != 'true'">
<TargetFramework>net11.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>
<PropertyGroup Condition="'$(IsDependency)' != 'true'">
<Configurations>Debug;Release;Debug (Dedicated);Release (Dedicated)</Configurations>
</PropertyGroup>
<PropertyGroup>
<Configuration Condition="'$(Configuration)' == ''">Debug</Configuration>
</PropertyGroup>
<PropertyGroup>
<DefineConstants>$(DefineConstants);HL2_DLL</DefineConstants>
<DefineConstants>$(DefineConstants);HL2_EPISODIC</DefineConstants>
<DefineConstants>$(DefineConstants);HL2MP</DefineConstants>
<DefineConstants>$(DefineConstants);GMOD_DLL</DefineConstants>
<DefineConstants>$(DefineConstants);HL1_DLL</DefineConstants>
<!-- You can define whichever game dll constants you want here. For now, we only support Garry's Mod compatibility. Anything with Garry's Mod-specific
functionality/properties/constants/etc should try to use this define (but it was introduced after a lot of progress was made, so there are still some
areas in the codebase that don't use it yet. Some references for the various constants I could find: -->
<!--<DefineConstants>$(DefineConstants);PORTAL</DefineConstants>-->
<!--<DefineConstants>$(DefineConstants);CSTRIKE_DLL</DefineConstants>-->
<!--<DefineConstants>$(DefineConstants);CSTRIKE15</DefineConstants>-->
<!--<DefineConstants>$(DefineConstants);TF_CLIENT_DLL</DefineConstants>-->
<!-- Something that would be fun one day would be to have Portal compatibility too, if possible... -->
</PropertyGroup>
<PropertyGroup>
<IsWindows Condition="'$([System.Runtime.InteropServices.RuntimeInformation]::IsOSPlatform($([System.Runtime.InteropServices.OSPlatform]::Windows)))' == 'true'">true</IsWindows>
<IsOSX Condition="'$([System.Runtime.InteropServices.RuntimeInformation]::IsOSPlatform($([System.Runtime.InteropServices.OSPlatform]::OSX)))' == 'true'">true</IsOSX>
<IsLinux Condition="'$([System.Runtime.InteropServices.RuntimeInformation]::IsOSPlatform($([System.Runtime.InteropServices.OSPlatform]::Linux)))' == 'true'">true</IsLinux>
</PropertyGroup>
<PropertyGroup Condition="'$(IsWindows)'=='true'">
<DefineConstants>$(DefineConstants);WIN32</DefineConstants>
</PropertyGroup>
<PropertyGroup Condition="'$(IsOSX)'=='true'">
<DefineConstants>$(DefineConstants);OSX</DefineConstants>
</PropertyGroup>
<PropertyGroup Condition="'$(IsLinux)'=='true'">
<DefineConstants>$(DefineConstants);LINUX</DefineConstants>
</PropertyGroup>
<PropertyGroup Condition="'$(IsOSX)'=='true' Or '$(IsLinux)'=='true'">
<DefineConstants>$(DefineConstants);POSIX</DefineConstants>
</PropertyGroup>
<PropertyGroup Condition="$(Configuration.Contains('(Dedicated)'))">
<DefineConstants>$(DefineConstants);SWDS;DEDICATED</DefineConstants>
</PropertyGroup>
<PropertyGroup>
<HostArchitecture>$([System.Runtime.InteropServices.RuntimeInformation]::OSArchitecture)</HostArchitecture>
<Platforms Condition="'$(HostArchitecture)' == 'Arm64'">x64;arm64</Platforms>
<Platforms Condition="'$(HostArchitecture)' != 'Arm64'">x64</Platforms>
<PlatformTarget Condition="'$(PlatformTarget)' == '' And '$(HostArchitecture)' == 'Arm64'">arm64</PlatformTarget>
<PlatformTarget Condition="'$(PlatformTarget)' == ''">x64</PlatformTarget>
</PropertyGroup>
<PropertyGroup Condition="'$(IsAnalyzer)' == 'true'">
<PlatformTarget>AnyCPU</PlatformTarget>
<NoWarn>$(NoWarn);RS2008</NoWarn>
</PropertyGroup>
<PropertyGroup Condition="!$(MSBuildProjectName.StartsWith('Source.CodeAnalysis'))">
<OutputPath>$(MSBuildThisFileDirectory)Build\$(Configuration)\</OutputPath>
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
</PropertyGroup>
</Project>