-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathDirectory.Build.props
More file actions
38 lines (31 loc) · 2.11 KB
/
Directory.Build.props
File metadata and controls
38 lines (31 loc) · 2.11 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
<Project>
<PropertyGroup>
<DefineConstants>$(DefineConstants);HL2_DLL</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);HL2_EPISODIC</DefineConstants>-->
<!--<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>
</Project>