blob: a62c63e11d09d2548ce2441cf6a46486f6d8f6c7 [file] [log] [blame]
Jan Tattermusch7727c762017-03-31 18:44:27 +02001<!-- Ensures that native libraries are copied to the output directory for Exe targets -->
2<Project>
Jan Tattermuschafab5412016-01-12 17:57:25 -08003
4 <PropertyGroup Condition=" '$(NativeDependenciesConfiguration)' == '' ">
5 <NativeDependenciesConfiguration Condition=" '$(Configuration)' == 'Debug' ">Debug</NativeDependenciesConfiguration>
6 <NativeDependenciesConfiguration Condition=" '$(Configuration)' == 'Release' ">Release</NativeDependenciesConfiguration>
Jan Tattermuschafab5412016-01-12 17:57:25 -08007 </PropertyGroup>
8
9 <PropertyGroup Condition=" '$(NativeDependenciesConfigurationUnix)' == '' ">
10 <NativeDependenciesConfigurationUnix Condition=" '$(Configuration)' == 'Debug' ">dbg</NativeDependenciesConfigurationUnix>
11 <NativeDependenciesConfigurationUnix Condition=" '$(Configuration)' == 'Release' ">opt</NativeDependenciesConfigurationUnix>
Jan Tattermuschafab5412016-01-12 17:57:25 -080012 </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
Jan Tattermusch7727c762017-03-31 18:44:27 +020025 <Import Project="NativeDeps.$(NativeDepsPlatform).csproj.include" />
26
27</Project>