Jan Tattermusch | 7727c76 | 2017-03-31 18:44:27 +0200 | [diff] [blame] | 1 | <!-- Ensures that native libraries are copied to the output directory for Exe targets --> |
| 2 | <Project> |
Jan Tattermusch | afab541 | 2016-01-12 17:57:25 -0800 | [diff] [blame] | 3 | |
| 4 | <PropertyGroup Condition=" '$(NativeDependenciesConfiguration)' == '' "> |
| 5 | <NativeDependenciesConfiguration Condition=" '$(Configuration)' == 'Debug' ">Debug</NativeDependenciesConfiguration> |
| 6 | <NativeDependenciesConfiguration Condition=" '$(Configuration)' == 'Release' ">Release</NativeDependenciesConfiguration> |
Jan Tattermusch | afab541 | 2016-01-12 17:57:25 -0800 | [diff] [blame] | 7 | </PropertyGroup> |
| 8 | |
| 9 | <PropertyGroup Condition=" '$(NativeDependenciesConfigurationUnix)' == '' "> |
| 10 | <NativeDependenciesConfigurationUnix Condition=" '$(Configuration)' == 'Debug' ">dbg</NativeDependenciesConfigurationUnix> |
| 11 | <NativeDependenciesConfigurationUnix Condition=" '$(Configuration)' == 'Release' ">opt</NativeDependenciesConfigurationUnix> |
Jan Tattermusch | afab541 | 2016-01-12 17:57:25 -0800 | [diff] [blame] | 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 | |
Jan Tattermusch | 7727c76 | 2017-03-31 18:44:27 +0200 | [diff] [blame] | 25 | <Import Project="NativeDeps.$(NativeDepsPlatform).csproj.include" /> |
| 26 | |
| 27 | </Project> |