added nuget files

This commit is contained in:
Chuck Walbourn 2020-02-15 00:08:39 -08:00
parent 50559b3819
commit 53200f0d15
6 changed files with 91 additions and 0 deletions

1
.gitignore vendored
View File

@ -16,6 +16,7 @@
*.lastbuildstate
*.ilk
*.VC.db
*.nupkg
.vs
Bin
/ipch

BIN
.nuget/icon.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.4 KiB

View File

@ -0,0 +1,9 @@
<?xml version="1.0" encoding="utf-8" ?>
<SignConfigXML>
<job dest="__OUTPATHROOT__" certSubject="NuGet" jobname="NugetSigningTest">
<file src="__INPATHROOT__\uvatlas_desktop_2017*.nupkg" signType="CP-401405" dest="__OUTPATHROOT__\uvatlas_desktop_2017*.nupkg" />
</job>
<job certSubject="CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US" dest="__OUTPATHROOT__" jobname="ISS EngFun" approvers="">
<file src="__INPATHROOT__\uvatlastool.exe" signType="135020002" dest="__OUTPATHROOT__\uvatlastool.exe" />
</job>
</SignConfigXML>

View File

@ -0,0 +1,45 @@
<?xml version="1.0" encoding="utf-8"?>
<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
<metadata minClientVersion="2.8.6">
<id>uvatlas_desktop_2017</id>
<version>0.0.0-SpecifyVersionOnCommandline</version>
<title>UVAtlas Library (VS 2017/2019 Win32)</title>
<authors>Microsoft</authors>
<owners>microsoft,directxtk</owners>
<summary>UVAtlas Isochart library</summary>
<description>This version is for Windows desktop applications using Visual Studio 2017 or Visual Studio 2019.
UVAtlas, a shared source library for creating and packing an isochart texture atlas.</description>
<releaseNotes>Matches the February 14, 2020 release on GitHub.</releaseNotes>
<projectUrl>http://go.microsoft.com/fwlink/?LinkID=512686</projectUrl>
<icon>images\icon.jpg</icon>
<license type="expression">MIT</license>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<copyright>© Microsoft Corporation. All rights reserved.</copyright>
<tags>DirectX UVAtlas native nativepackage</tags>
</metadata>
<files>
<file target="docs" src="Readme.*" />
<file target="include" src="UVAtlas\inc\UVAtlas.h" />
<file target="native\lib\Win32\Debug" src="UVAtlas\Bin\Desktop_2017_Win10\Win32\Debug\*.lib" />
<file target="native\lib\Win32\Debug" src="UVAtlas\Bin\Desktop_2017_Win10\Win32\Debug\*.pdb" />
<file target="native\lib\Win32\Release" src="UVAtlas\Bin\Desktop_2017_Win10\Win32\Release\*.lib" />
<file target="native\lib\Win32\Release" src="UVAtlas\Bin\Desktop_2017_Win10\Win32\Release\*.pdb" />
<file target="native\lib\x64\Debug" src="UVAtlas\Bin\Desktop_2017_Win10\x64\Debug\*.lib" />
<file target="native\lib\x64\Debug" src="UVAtlas\Bin\Desktop_2017_Win10\x64\Debug\*.pdb" />
<file target="native\lib\x64\Release" src="UVAtlas\Bin\Desktop_2017_Win10\x64\Release\*.lib" />
<file target="native\lib\x64\Release" src="UVAtlas\Bin\Desktop_2017_Win10\x64\Release\*.pdb" />
<file src=".nuget/uvatlas_desktop_2017.targets" target="build\native" />
<file src=".nuget/icon.jpg" target="images\" />
</files>
</package>

View File

@ -0,0 +1,29 @@
<?xml version="1.0" encoding="utf-8"?>
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup Label="Debug" Condition="'$(Configuration.ToLower())' == 'debug'">
<NuGetConfiguration>Debug</NuGetConfiguration>
</PropertyGroup>
<PropertyGroup Label="Non_Debug" Condition="'$(Configuration.ToLower())' != 'debug'">
<NuGetConfiguration>Release</NuGetConfiguration>
</PropertyGroup>
<PropertyGroup>
<uvatlas-LibPath>$(MSBuildThisFileDirectory)..\..\native\lib\$(Platform)\$(NuGetConfiguration)</uvatlas-LibPath>
</PropertyGroup>
<ItemDefinitionGroup>
<Link>
<AdditionalLibraryDirectories>$(uvatlas-LibPath);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
<AdditionalDependencies>UVAtlas.lib;%(AdditionalDependencies)</AdditionalDependencies>
</Link>
</ItemDefinitionGroup>
<ItemDefinitionGroup>
<ClCompile>
<PreprocessorDefinitions>HAS_UVATLAS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<AdditionalIncludeDirectories>$(MSBuildThisFileDirectory)..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
</ClCompile>
</ItemDefinitionGroup>
</Project>

7
.nuget/versioninfo.ps1 Normal file
View File

@ -0,0 +1,7 @@
param(
[string]$version
)
$file = 'UVAtlasTool\uvatlas.rc'
$versionComma = $version.Replace(".", ",")
(Get-Content $file).replace('1,0,0,0', $versionComma).replace('1.0.0.0', $version) | Set-Content $file
(Get-Content $file)