• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<!-- Ensures that native libraries are copied to the output directory for Exe targets -->
2<Project>
3
4  <PropertyGroup Condition=" '$(NativeDependenciesConfiguration)' == '' ">
5    <NativeDependenciesConfiguration Condition=" '$(Configuration)' == 'Debug' ">Debug</NativeDependenciesConfiguration>
6    <NativeDependenciesConfiguration Condition=" '$(Configuration)' == 'Release' ">Release</NativeDependenciesConfiguration>
7  </PropertyGroup>
8
9  <PropertyGroup Condition=" '$(NativeDependenciesConfigurationUnix)' == '' ">
10    <NativeDependenciesConfigurationUnix Condition=" '$(Configuration)' == 'Debug' ">dbg</NativeDependenciesConfigurationUnix>
11    <NativeDependenciesConfigurationUnix Condition=" '$(Configuration)' == 'Release' ">opt</NativeDependenciesConfigurationUnix>
12  </PropertyGroup>
13
14  <!-- Autodetect platform -->
15  <PropertyGroup Condition=" '$(OS)' != 'Unix' ">
16    <NativeDepsPlatform>Windows</NativeDepsPlatform>
17  </PropertyGroup>
18  <PropertyGroup Condition=" '$(OS)' == 'Unix' And Exists('/Applications') And Exists('/Library') And Exists('/System') ">
19    <NativeDepsPlatform>Mac</NativeDepsPlatform>
20  </PropertyGroup>
21  <PropertyGroup Condition=" '$(OS)' == 'Unix' And '$(NativeDepsPlatform)' == '' ">
22    <NativeDepsPlatform>Linux</NativeDepsPlatform>
23  </PropertyGroup>
24
25  <Import Project="NativeDeps.$(NativeDepsPlatform).csproj.include" />
26
27</Project>
28