diff options
author | AraHaan <seandhunt_7@yahoo.com> | 2022-10-25 00:35:43 -0400 |
---|---|---|
committer | Mark Adler <madler@alumni.caltech.edu> | 2023-08-19 10:57:26 -0700 |
commit | 4a47c1bf3d8c5285fa6e7da9c7626f36f2562b93 (patch) | |
tree | a8a44a803290f1c1abe619033c2283933710f4a8 | |
parent | d7de5971f45f13570b326e613c9e61406747bf69 (diff) | |
download | zlib-4a47c1bf3d8c5285fa6e7da9c7626f36f2562b93.tar.gz zlib-4a47c1bf3d8c5285fa6e7da9c7626f36f2562b93.tar.bz2 zlib-4a47c1bf3d8c5285fa6e7da9c7626f36f2562b93.zip |
Add project and solution files for building a nuget package.
-rw-r--r-- | .gitignore | 12 | ||||
-rw-r--r-- | contrib/nuget/nuget.csproj | 43 | ||||
-rw-r--r-- | contrib/nuget/nuget.sln | 22 |
3 files changed, 76 insertions, 1 deletions
@@ -16,7 +16,7 @@ | |||
16 | /example | 16 | /example |
17 | /example64 | 17 | /example64 |
18 | /examplesh | 18 | /examplesh |
19 | /libz.so* | 19 | **/libz.so* |
20 | /minigzip | 20 | /minigzip |
21 | /minigzip64 | 21 | /minigzip64 |
22 | /minigzipsh | 22 | /minigzipsh |
@@ -24,3 +24,13 @@ | |||
24 | /configure.log | 24 | /configure.log |
25 | 25 | ||
26 | .DS_Store | 26 | .DS_Store |
27 | .vs | ||
28 | *.user | ||
29 | *.nupkg | ||
30 | contrib/vstudio/vc143/x86 | ||
31 | contrib/vstudio/vc143/x64 | ||
32 | contrib/vstudio/vc143/arm | ||
33 | contrib/vstudio/vc143/arm64 | ||
34 | contrib/nuget/bin | ||
35 | contrib/nuget/obj | ||
36 | *.included | ||
diff --git a/contrib/nuget/nuget.csproj b/contrib/nuget/nuget.csproj new file mode 100644 index 0000000..393a586 --- /dev/null +++ b/contrib/nuget/nuget.csproj | |||
@@ -0,0 +1,43 @@ | |||
1 | <Project Sdk="Microsoft.Build.NoTargets/3.5.6"> | ||
2 | |||
3 | <PropertyGroup> | ||
4 | <TargetFramework>net6.0</TargetFramework> | ||
5 | <PackageId>madler.zlib.redist</PackageId> | ||
6 | <PackageId Condition="$([MSBuild]::IsOSPlatform('Windows'))">$(PackageId).win</PackageId> | ||
7 | <PackageId Condition="$([MSBuild]::IsOSPlatform('Linux'))">$(PackageId).linux</PackageId> | ||
8 | <PackageId Condition="$([MSBuild]::IsOSPlatform('OSX'))">$(PackageId).osx</PackageId> | ||
9 | <Copyright>(C) 1995-2022 Jean-loup Gailly and Mark Adler</Copyright> | ||
10 | <version>1.2.13</version> | ||
11 | <PackageDescription>NuGet Package for consuming native builds of zlib into .NET without complexity.</PackageDescription> | ||
12 | <!-- | ||
13 | Warns about not having any lib or ref assemblies (.NET Assemblies) in those directories. | ||
14 | Native only packages that is to be consumed in .NET should not require these. | ||
15 | --> | ||
16 | <NoWarn>NU5128</NoWarn> | ||
17 | <PackageOutputPath>$(MSBuildProjectDirectory)</PackageOutputPath> | ||
18 | <Authors>Jean-loup Gailly and Mark Adler</Authors> | ||
19 | </PropertyGroup> | ||
20 | |||
21 | <ItemGroup> | ||
22 | <None Include="../../LICENSE" Pack="true" PackagePath="" /> | ||
23 | <!-- Package up Windows builds. --> | ||
24 | <None Condition="$([MSBuild]::IsOSPlatform('Windows'))" Include="../vstudio/vc143/x86/ZlibDll$(Configuration)/zlibwapi.dll" Pack="true" PackagePath="runtimes/win-x86/native" /> | ||
25 | <None Condition="$([MSBuild]::IsOSPlatform('Windows'))" Include="../vstudio/vc143/x64/ZlibDll$(Configuration)/zlibwapi.dll" Pack="true" PackagePath="runtimes/win-x64/native" /> | ||
26 | <None Condition="$([MSBuild]::IsOSPlatform('Windows'))" Include="../vstudio/vc143/arm/ZlibDll$(Configuration)/zlibwapi.dll" Pack="true" PackagePath="runtimes/win-arm/native" /> | ||
27 | <None Condition="$([MSBuild]::IsOSPlatform('Windows'))" Include="../vstudio/vc143/arm64/ZlibDll$(Configuration)/zlibwapi.dll" Pack="true" PackagePath="runtimes/win-arm64/native" /> | ||
28 | <!-- Include debug symbols as well as we never know if they might actually be needed in the future. --> | ||
29 | <None Condition="$([MSBuild]::IsOSPlatform('Windows'))" Include="../vstudio/vc143/x86/ZlibDll$(Configuration)/zlibwapi.pdb" Pack="true" PackagePath="runtimes/win-x86/native" /> | ||
30 | <None Condition="$([MSBuild]::IsOSPlatform('Windows'))" Include="../vstudio/vc143/x64/ZlibDll$(Configuration)/zlibwapi.pdb" Pack="true" PackagePath="runtimes/win-x64/native" /> | ||
31 | <None Condition="$([MSBuild]::IsOSPlatform('Windows'))" Include="../vstudio/vc143/arm/ZlibDll$(Configuration)/zlibwapi.pdb" Pack="true" PackagePath="runtimes/win-arm/native" /> | ||
32 | <None Condition="$([MSBuild]::IsOSPlatform('Windows'))" Include="../vstudio/vc143/arm64/ZlibDll$(Configuration)/zlibwapi.pdb" Pack="true" PackagePath="runtimes/win-arm64/native" /> | ||
33 | <!-- Package up Linux builds. --> | ||
34 | <None Condition="$([MSBuild]::IsOSPlatform('Linux'))" Include="./linux-x86/libz.so" Pack="true" PackagePath="runtimes/linux-x86/native" /> | ||
35 | <None Condition="$([MSBuild]::IsOSPlatform('Linux'))" Include="./linux-x64/libz.so" Pack="true" PackagePath="runtimes/linux-x64/native" /> | ||
36 | <None Condition="$([MSBuild]::IsOSPlatform('Linux'))" Include="./linux-arm/libz.so" Pack="true" PackagePath="runtimes/linux-arm/native" /> | ||
37 | <None Condition="$([MSBuild]::IsOSPlatform('Linux'))" Include="./linux-arm64/libz.so" Pack="true" PackagePath="runtimes/linux-arm64/native" /> | ||
38 | <!-- Package up MacOS builds. --> | ||
39 | <None Condition="$([MSBuild]::IsOSPlatform('OSX'))" Include="./osx-x64/libz.dylib" Pack="true" PackagePath="runtimes/osx-x64/native" /> | ||
40 | <None Condition="$([MSBuild]::IsOSPlatform('OSX'))" Include="./osx-arm64/libz.dylib" Pack="true" PackagePath="runtimes/osx-arm64/native" /> | ||
41 | </ItemGroup> | ||
42 | |||
43 | </Project> | ||
diff --git a/contrib/nuget/nuget.sln b/contrib/nuget/nuget.sln new file mode 100644 index 0000000..46ee8de --- /dev/null +++ b/contrib/nuget/nuget.sln | |||
@@ -0,0 +1,22 @@ | |||
1 | | ||
2 | Microsoft Visual Studio Solution File, Format Version 12.00 | ||
3 | # Visual Studio Version 17 | ||
4 | VisualStudioVersion = 17.0.31903.59 | ||
5 | MinimumVisualStudioVersion = 10.0.40219.1 | ||
6 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "nuget", "nuget.csproj", "{B1BD3984-EF8F-4E9D-9A94-EB784E5EB1E8}" | ||
7 | EndProject | ||
8 | Global | ||
9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution | ||
10 | Debug|Any CPU = Debug|Any CPU | ||
11 | Release|Any CPU = Release|Any CPU | ||
12 | EndGlobalSection | ||
13 | GlobalSection(SolutionProperties) = preSolution | ||
14 | HideSolutionNode = FALSE | ||
15 | EndGlobalSection | ||
16 | GlobalSection(ProjectConfigurationPlatforms) = postSolution | ||
17 | {B1BD3984-EF8F-4E9D-9A94-EB784E5EB1E8}.Debug|Any CPU.ActiveCfg = Debug|Any CPU | ||
18 | {B1BD3984-EF8F-4E9D-9A94-EB784E5EB1E8}.Debug|Any CPU.Build.0 = Debug|Any CPU | ||
19 | {B1BD3984-EF8F-4E9D-9A94-EB784E5EB1E8}.Release|Any CPU.ActiveCfg = Release|Any CPU | ||
20 | {B1BD3984-EF8F-4E9D-9A94-EB784E5EB1E8}.Release|Any CPU.Build.0 = Release|Any CPU | ||
21 | EndGlobalSection | ||
22 | EndGlobal | ||