-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add csproj to build static nuget package
- Loading branch information
Showing
4 changed files
with
80 additions
and
14 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
<PropertyGroup> | ||
<TargetFramework>net7.0</TargetFramework> | ||
<id>libdatadog</id> | ||
<Company>Datadog</Company> | ||
<Authors>Datadog</Authors> | ||
<Title>Datadog libdatadog</Title> | ||
<Version>$(LibdatadogVersion)</Version> | ||
<PackageReadmeFile>README.md</PackageReadmeFile> | ||
<PackageLicenseFile>LICENSE</PackageLicenseFile> | ||
<IncludeBuildOutput>false</IncludeBuildOutput> | ||
<SuppressDependenciesWhenPacking>true</SuppressDependenciesWhenPacking> | ||
<PackageRequireLicenseAcceptance>false</PackageRequireLicenseAcceptance> | ||
<PackageProjectUrl>https://github.com/DataDog/libdatadog</PackageProjectUrl> | ||
<Description>libdatadog provides a static library containing common code used in the | ||
implementation of Datadog's libraries, including Datadog Continuous Profilers</Description> | ||
<PackageReleaseNotes>Release of libdatadog</PackageReleaseNotes> | ||
<Copyright>Copyright 2022 Datadog, Inc.</Copyright> | ||
<PackageTags>Datadog;native;</PackageTags> | ||
<RepositoryType>git</RepositoryType> | ||
|
||
<!-- NuGet packages --> | ||
<IsPackable>true</IsPackable> | ||
</PropertyGroup> | ||
<ItemGroup> | ||
<None Include="..\README.md" Pack="true" PackagePath="\" /> | ||
<None Include="..\LICENSE" Pack="true" PackagePath="\" /> | ||
<None Include="libdatadog-static.props" Pack="true" PackagePath="build\native\libdatadog-static.props" /> | ||
|
||
<None Include="$(LibDatadogBinariesOutputDir)\common.h" Pack="true" | ||
PackagePath="include\native\datadog\common.h" /> | ||
<None Include="$(LibDatadogBinariesOutputDir)\profiling.h" Pack="true" | ||
PackagePath="include\native\datadog\profiling.h" /> | ||
<None Include="$(LibDatadogBinariesOutputDir)\telemetry.h" Pack="true" | ||
PackagePath="include\native\datadog\telemetry.h" /> | ||
<None Include="$(LibDatadogBinariesOutputDir)\crashtracker.h" Pack="true" | ||
PackagePath="include\native\datadog\crashtracker.h" /> | ||
<None Include="$(LibDatadogBinariesOutputDir)\data-pipeline.h" Pack="true" | ||
PackagePath="include\native\datadog\data-pipeline.h" /> | ||
|
||
<None Include="$(LibDatadogBinariesOutputDir)\x86_64-pc-windows-msvc\debug\datadog_profiling_ffi.lib" | ||
Pack="true" PackagePath="build\native\lib\x64\debug\static\datadog_profiling_ffi.lib" /> | ||
|
||
<None Include="$(LibDatadogBinariesOutputDir)\x86_64-pc-windows-msvc\release\datadog_profiling_ffi.lib" | ||
Pack="true" PackagePath="build\native\lib\x64\release\static\datadog_profiling_ffi.lib" /> | ||
|
||
<None Include="$(LibDatadogBinariesOutputDir)\i686-pc-windows-msvc\debug\datadog_profiling_ffi.lib" | ||
Pack="true" PackagePath="build\native\lib\x86\debug\static\datadog_profiling_ffi.lib" /> | ||
|
||
<None Include="$(LibDatadogBinariesOutputDir)\i686-pc-windows-msvc\release\datadog_profiling_ffi.lib" | ||
Pack="true" PackagePath="build\native\lib\x86\release\static\datadog_profiling_ffi.lib" /> | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003" | ||
ToolsVersion="15.0"> | ||
<PropertyGroup> | ||
<LIBDATADOG-PLATFORM Condition="'$(Platform)'=='x64'">x64</LIBDATADOG-PLATFORM> | ||
<LIBDATADOG-PLATFORM Condition="'$(Platform)'=='Win32' OR '$(Platform)'=='x86'">x86</LIBDATADOG-PLATFORM> | ||
</PropertyGroup> | ||
<ItemGroup> | ||
<LibDatadogStaticLibs Include="$(MSBuildThisFileDirectory)..\..\build\native\lib\$(LIBDATADOG-PLATFORM)\$(Configuration)\*.lib" /> | ||
</ItemGroup> | ||
<PropertyGroup> | ||
<!-- Expland the items to a property --> | ||
<LibDatadogStaticLibraries>@(LibDatadogStaticLibs)</LibDatadogStaticLibraries> | ||
<LibDatadogDependencies>PowrProf.lib;NtDll.lib;UserEnv.lib;Bcrypt.lib;crypt32.lib;wsock32.lib;ws2_32.lib;shlwapi.lib;Secur32.lib;Ncrypt.lib</LibDatadogDependencies> | ||
</PropertyGroup> | ||
<ItemDefinitionGroup> | ||
<ClCompile> | ||
<AdditionalIncludeDirectories>$(MSBuildThisFileDirectory)..\..\include\native;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> | ||
</ClCompile> | ||
<Link> | ||
<AdditionalDependencies>$(LibDatadogStaticLibraries);$(LibDatadogDependencies);%(AdditionalDependencies)</AdditionalDependencies> | ||
</Link> | ||
</ItemDefinitionGroup> | ||
</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
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