|
1 | 1 | <?xml version="1.0" encoding="utf-8"?> |
2 | | -<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003" |
3 | | - ToolsVersion="15.0"> |
4 | | - <PropertyGroup> |
5 | | - <LIBDATADOG-PLATFORM Condition="'$(Platform)'=='x64'">x64</LIBDATADOG-PLATFORM> |
6 | | - <LIBDATADOG-PLATFORM Condition="'$(Platform)'=='Win32' OR '$(Platform)'=='x86'">x86</LIBDATADOG-PLATFORM> |
| 2 | +<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="15.0"> |
| 3 | + |
| 4 | + <PropertyGroup Condition="($(RuntimeIdentifier) == '' and $([MSBuild]::IsOSPlatform('Linux'))) or $(RuntimeIdentifier.StartsWith('linux'))"> |
| 5 | + <LibdatadogPlatform>linux</LibdatadogPlatform> |
| 6 | + <LibdatadogLibraryType>so</LibdatadogLibraryType> |
| 7 | + </PropertyGroup> |
| 8 | + |
| 9 | + <PropertyGroup Condition="($(RuntimeIdentifier) == '' and $([MSBuild]::IsOSPlatform('Windows'))) or $(RuntimeIdentifier.StartsWith('win'))"> |
| 10 | + <LibdatadogPlatform>win</LibdatadogPlatform> |
| 11 | + <LibdatadogLibraryType>dll</LibdatadogLibraryType> |
| 12 | + </PropertyGroup> |
| 13 | + |
| 14 | + <PropertyGroup Condition="($(RuntimeIdentifier) == '' and $([MSBuild]::IsOSPlatform('OSX'))) or $(RuntimeIdentifier.StartsWith('osx'))"> |
| 15 | + <LibdatadogPlatform>osx</LibdatadogPlatform> |
| 16 | + <LibdatadogLibraryType>dylib</LibdatadogLibraryType> |
| 17 | + </PropertyGroup> |
| 18 | + |
| 19 | + <PropertyGroup Condition="($(RuntimeIdentifier) == '' and $([System.Runtime.InteropServices.RuntimeInformation]::OSArchitecture) == 'x64') or $(RuntimeIdentifier.EndsWith('x64'))"> |
| 20 | + <LibdatadogArchitecture>x64</LibdatadogArchitecture> |
| 21 | + </PropertyGroup> |
| 22 | + |
| 23 | + <PropertyGroup Condition="($(RuntimeIdentifier) == '' and $([System.Runtime.InteropServices.RuntimeInformation]::OSArchitecture) == 'Arm64') or $(RuntimeIdentifier.EndsWith('arm64'))"> |
| 24 | + <LibdatadogArchitecture>arm64</LibdatadogArchitecture> |
| 25 | + </PropertyGroup> |
| 26 | + |
| 27 | + <PropertyGroup Condition="($(RuntimeIdentifier) == '' and $([System.Runtime.InteropServices.RuntimeInformation]::OSArchitecture) == 'Arm') or $(RuntimeIdentifier.EndsWith('arm'))"> |
| 28 | + <LibdatadogArchitecture>arm</LibdatadogArchitecture> |
| 29 | + </PropertyGroup> |
| 30 | + |
| 31 | + <PropertyGroup Condition="($(RuntimeIdentifier) == '' and $([System.Runtime.InteropServices.RuntimeInformation]::OSArchitecture) == 'x86') or $(RuntimeIdentifier.EndsWith('x86'))"> |
| 32 | + <LibdatadogArchitecture>x86</LibdatadogArchitecture> |
7 | 33 | </PropertyGroup> |
| 34 | + |
8 | 35 | <ItemGroup> |
9 | | - <LibdatadogLibs Include="$(MSBuildThisFileDirectory)..\..\build\native\lib\$(LIBDATADOG-PLATFORM)\$(Configuration)\*.lib" /> |
| 36 | + <LibdatadogDynamic Include="$(MSBuildThisFileDirectory)\runtimes\$(LibdatadogPlatform)-$(LibdatadogArchitecture)\native\$(Configuration)\*.$(LibdatadogLibraryType)" /> |
10 | 37 | </ItemGroup> |
| 38 | + |
11 | 39 | <PropertyGroup> |
12 | 40 | <!-- Expland the items to a property --> |
13 | | - <LibdatadogLibraries>@(LibdatadogLibs)</LibdatadogLibraries> |
| 41 | + <LibdatadogLibraries>@(LibdatadogDynamic)</LibdatadogLibraries> |
14 | 42 | <LibdatadogDependencies>PowrProf.lib;NtDll.lib;UserEnv.lib;Bcrypt.lib;crypt32.lib;wsock32.lib;ws2_32.lib;shlwapi.lib;Secur32.lib;Ncrypt.lib</LibdatadogDependencies> |
15 | 43 | </PropertyGroup> |
16 | 44 | <ItemDefinitionGroup> |
17 | 45 | <ClCompile> |
18 | | - <AdditionalIncludeDirectories>$(MSBuildThisFileDirectory)..\..\include\native;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> |
| 46 | + <AdditionalIncludeDirectories>$(MSBuildThisFileDirectory)\include\native;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> |
19 | 47 | </ClCompile> |
20 | 48 | <Link> |
21 | 49 | <AdditionalDependencies>$(LibdatadogLibraries);$(LibdatadogDependencies);%(AdditionalDependencies)</AdditionalDependencies> |
|
0 commit comments