aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/csharp/Grpc.Core/NativeDeps.csproj.include
diff options
context:
space:
mode:
Diffstat (limited to 'src/csharp/Grpc.Core/NativeDeps.csproj.include')
-rwxr-xr-xsrc/csharp/Grpc.Core/NativeDeps.csproj.include27
1 files changed, 27 insertions, 0 deletions
diff --git a/src/csharp/Grpc.Core/NativeDeps.csproj.include b/src/csharp/Grpc.Core/NativeDeps.csproj.include
new file mode 100755
index 0000000000..a62c63e11d
--- /dev/null
+++ b/src/csharp/Grpc.Core/NativeDeps.csproj.include
@@ -0,0 +1,27 @@
+<!-- Ensures that native libraries are copied to the output directory for Exe targets -->
+<Project>
+
+ <PropertyGroup Condition=" '$(NativeDependenciesConfiguration)' == '' ">
+ <NativeDependenciesConfiguration Condition=" '$(Configuration)' == 'Debug' ">Debug</NativeDependenciesConfiguration>
+ <NativeDependenciesConfiguration Condition=" '$(Configuration)' == 'Release' ">Release</NativeDependenciesConfiguration>
+ </PropertyGroup>
+
+ <PropertyGroup Condition=" '$(NativeDependenciesConfigurationUnix)' == '' ">
+ <NativeDependenciesConfigurationUnix Condition=" '$(Configuration)' == 'Debug' ">dbg</NativeDependenciesConfigurationUnix>
+ <NativeDependenciesConfigurationUnix Condition=" '$(Configuration)' == 'Release' ">opt</NativeDependenciesConfigurationUnix>
+ </PropertyGroup>
+
+ <!-- Autodetect platform -->
+ <PropertyGroup Condition=" '$(OS)' != 'Unix' ">
+ <NativeDepsPlatform>Windows</NativeDepsPlatform>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(OS)' == 'Unix' And Exists('/Applications') And Exists('/Library') And Exists('/System') ">
+ <NativeDepsPlatform>Mac</NativeDepsPlatform>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(OS)' == 'Unix' And '$(NativeDepsPlatform)' == '' ">
+ <NativeDepsPlatform>Linux</NativeDepsPlatform>
+ </PropertyGroup>
+
+ <Import Project="NativeDeps.$(NativeDepsPlatform).csproj.include" />
+
+</Project>