-
Notifications
You must be signed in to change notification settings - Fork 145
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
79 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 0 additions & 10 deletions
10
build/nupkg_local/libdatadog/sources/build/libdatadog.props
This file was deleted.
Oops, something went wrong.
60 changes: 60 additions & 0 deletions
60
build/nupkg_local/libdatadog/sources/build/libdatadog.targets
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||
<!-- Computes .NET version --> | ||
|
||
<PropertyGroup> | ||
<IsLegacyNetVersion>FALSE</IsLegacyNetVersion> | ||
</PropertyGroup> | ||
|
||
<PropertyGroup> | ||
<NetVersion>$(TargetFrameworkVersion.Replace("v", "").Replace(".", "").Substring(0,2))</NetVersion> | ||
</PropertyGroup> | ||
|
||
<!-- IS LEGACY .NET FRAMEWORK v2.x--> | ||
|
||
<PropertyGroup Condition=" ('$(NetVersion)' == '20')"> | ||
<IsLegacyNetVersion>TRUE</IsLegacyNetVersion> | ||
</PropertyGroup> | ||
|
||
<!-- IS LEGACY .NET FRAMEWORK v3.x--> | ||
|
||
<PropertyGroup Condition=" ('$(NetVersion)' == '30')"> | ||
<IsLegacyNetVersion>TRUE</IsLegacyNetVersion> | ||
</PropertyGroup> | ||
|
||
<PropertyGroup Condition=" ('$(NetVersion)' == '35')"> | ||
<IsLegacyNetVersion>TRUE</IsLegacyNetVersion> | ||
</PropertyGroup> | ||
|
||
<!-- IS LEGACY .NET FRAMEWORK v4.x--> | ||
|
||
<PropertyGroup Condition=" ('$(NetVersion)' >= '40') AND ('$(NetVersion)' < '50') "> | ||
<IsLegacyNetVersion>TRUE</IsLegacyNetVersion> | ||
</PropertyGroup> | ||
|
||
<!-- FOR LEGACY .NET FRAMEWORK - Copy native libraries directly to output folders --> | ||
|
||
<PropertyGroup Condition="('$(Platform)'=='x64') AND ('$(IsLegacyNetVersion)'=='TRUE')"> | ||
<DDPlatform>x64</DDPlatform> | ||
</PropertyGroup> | ||
<PropertyGroup Condition="(('$(Platform)'=='x86') Or ('$(Platform)'=='AnyCPU')) AND ('$(IsLegacyNetVersion)'=='TRUE')"> | ||
<DDPlatform>x86</DDPlatform> | ||
</PropertyGroup> | ||
|
||
<ItemGroup Condition ="('$(IsLegacyNetVersion)'=='TRUE')"> | ||
<None Include="$(MSBuildThisFileDirectory)..\runtimes\win-$(DDPlatform)\native\datadog_profiling_ffi.dll"> | ||
<Link>datadog_profiling_ffi.dll</Link> | ||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> | ||
</None> | ||
</ItemGroup> | ||
|
||
<!-- FOR .NET Core and .NET5+, just simply copy runtimes to output folders --> | ||
|
||
<ItemGroup Condition ="('$(IsLegacyNetVersion)'=='FALSE')"> | ||
<NativeLibs Include="$(MSBuildThisFileDirectory)..\..\runtimes\**" /> | ||
<None Include="@(NativeLibs)"> | ||
<Link>runtimes\%(RecursiveDir)%(FileName)%(Extension)</Link> | ||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> | ||
</None> | ||
</ItemGroup> | ||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.