-
Notifications
You must be signed in to change notification settings - Fork 1
/
Directory.Build.props
43 lines (32 loc) · 2.13 KB
/
Directory.Build.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
33
34
35
36
37
38
39
40
41
42
43
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<SlnDir>$(MSBuildThisFileDirectory)</SlnDir>
<SlnDir Condition="!HasTrailingSlash('$(SlnDir)')">$(SlnDir)\</SlnDir>
<CsDir>$(SolutionDir)SockLynxCSharp\</CsDir>
<SdkDir>$(MSBuildExtensionsPath)</SdkDir>
<SdkDir Condition="!HasTrailingSlash('$(SdkDir)')">$(SdkDir)\</SdkDir>
</PropertyGroup>
<PropertyGroup>
<OSPlatformWindows Condition="'$([System.Runtime.InteropServices.RuntimeInformation]::IsOSPlatform($([System.Runtime.InteropServices.OSPlatform]::Windows)))' == 'true'">true</OSPlatformWindows>
<OSPlatformLinux Condition="'$([System.Runtime.InteropServices.RuntimeInformation]::IsOSPlatform($([System.Runtime.InteropServices.OSPlatform]::Linux)))' == 'true'">true</OSPlatformLinux>
<OSPlatformOSX Condition="'$([System.Runtime.InteropServices.RuntimeInformation]::IsOSPlatform($([System.Runtime.InteropServices.OSPlatform]::OSX)))' == 'true'">true</OSPlatformOSX>
</PropertyGroup>
<PropertyGroup Condition="'$(OSPlatformWindows)' == 'true'">
<DefineConstants>$(DefineConstants);SL_PLATFORM_WINDOWS;SL_SOCK_API_WINSOCK</DefineConstants>
</PropertyGroup>
<PropertyGroup Condition="'$(OSPlatformLinux)' == 'true'">
<DefineConstants>$(DefineConstants);SL_PLATFORM_LINUX;SL_SOCK_API_POSIX</DefineConstants>
</PropertyGroup>
<PropertyGroup Condition="'$(OSPlatformOSX)' == 'true'">
<DefineConstants>$(DefineConstants);SL_PLATFORM_OSX;SL_SOCK_API_POSIX</DefineConstants>
</PropertyGroup>
<PropertyGroup>
<PluginDir>$(SlnDir)UnityProject\Assets\SockLynx\Plugins\</PluginDir>
<PluginArchDir>x86_64\</PluginArchDir>
<PluginBaseName>socklynxDSO</PluginBaseName>
<PluginPrefix Condition="'$(OSPlatformLinux)' == 'true'">lib</PluginPrefix>
<PluginExt Condition="'$(PluginExt)' == ''">dll</PluginExt>
<PluginExt Condition="'$(OSPlatformLinux)' == 'true'">so</PluginExt>
<PluginExt Condition="'$(OSPlatformOSX)' == 'true'">dylib</PluginExt>
</PropertyGroup>
</Project>