Browse Source

Build: simplify native package manual NuGet packaging

spatial
Christoph Ruegg 8 years ago
parent
commit
10e907c8e7
  1. 102
      build.fsx
  2. 28
      build/MathNet.Numerics.CUDA.Win.nuspec
  3. 26
      build/MathNet.Numerics.MKL.Linux-x64.nuspec
  4. 26
      build/MathNet.Numerics.MKL.Linux-x86.nuspec
  5. 28
      build/MathNet.Numerics.MKL.Linux.nuspec
  6. 26
      build/MathNet.Numerics.MKL.Win-x64.nuspec
  7. 26
      build/MathNet.Numerics.MKL.Win-x86.nuspec
  8. 28
      build/MathNet.Numerics.MKL.Win.nuspec
  9. 34
      build/MathNet.Numerics.OpenBLAS.Win.nuspec
  10. 41
      build/build-framework.fsx

102
build.fsx

@ -90,69 +90,33 @@ let mklSolution = solution "MKL" "MathNet.Numerics.MKL.sln" [mklWinProject; mklL
let mklWinPack = let mklWinPack =
{ NuGet = mklWinNuGetPackage { NuGet = mklWinNuGetPackage
Title = "Math.NET Numerics - MKL Native Provider for Windows (x64 and x86)" NuSpecFile = "build/MathNet.Numerics.MKL.Win.nuspec"
Summary = "" Title = "Math.NET Numerics - MKL Native Provider for Windows (x64 and x86)" }
Description = "Intel MKL native libraries for Math.NET Numerics on Windows."
Tags = "math numeric statistics probability integration interpolation linear algebra matrix fft native mkl"
Authors = [ "Christoph Ruegg"; "Marcus Cuda"; "Jurgen Van Gael" ]
Dependencies = []
Files =
[ @"..\..\build\NativeProvider.targets", Some "build\MathNet.Numerics.MKL.Win.targets", None;
@"..\..\out\MKL\Windows\x64\libiomp5md.dll", Some @"build\x64", None;
@"..\..\out\MKL\Windows\x64\MathNet.Numerics.MKL.dll", Some @"build\x64", None;
@"..\..\out\MKL\Windows\x86\libiomp5md.dll", Some @"build\x86", None;
@"..\..\out\MKL\Windows\x86\MathNet.Numerics.MKL.dll", Some @"build\x86", None ] }
let mklWin32Pack = let mklWin32Pack =
{ mklWinPack with { NuGet = mklWin32NuGetPackage
NuGet = mklWin32NuGetPackage NuSpecFile = "build/MathNet.Numerics.MKL.Win-x86.nuspec"
Title = "Math.NET Numerics - MKL Native Provider for Windows (x86)" Title = "Math.NET Numerics - MKL Native Provider for Windows (x86)" }
Files =
[ @"..\..\build\NativeProvider.targets", Some "build\MathNet.Numerics.MKL.Win-x86.targets", None;
@"..\..\out\MKL\Windows\x86\libiomp5md.dll", Some @"build\x86", None;
@"..\..\out\MKL\Windows\x86\MathNet.Numerics.MKL.dll", Some @"build\x86", None ] }
let mklWin64Pack = let mklWin64Pack =
{ mklWinPack with { NuGet = mklWin64NuGetPackage
NuGet = mklWin64NuGetPackage NuSpecFile = "build/MathNet.Numerics.MKL.Win-x64.nuspec"
Title = "Math.NET Numerics - MKL Native Provider for Windows (x64)" Title = "Math.NET Numerics - MKL Native Provider for Windows (x64)" }
Files =
[ @"..\..\build\NativeProvider.targets", Some "build\MathNet.Numerics.MKL.Win-x64.targets", None;
@"..\..\out\MKL\Windows\x64\libiomp5md.dll", Some @"build\x64", None;
@"..\..\out\MKL\Windows\x64\MathNet.Numerics.MKL.dll", Some @"build\x64", None ] }
let mklLinuxPack = let mklLinuxPack =
{ NuGet = mklLinuxNuGetPackage { NuGet = mklLinuxNuGetPackage
Title = "Math.NET Numerics - MKL Native Provider for Linux (x64 and x86)" NuSpecFile = "build/MathNet.Numerics.MKL.Linux.nuspec"
Summary = "" Title = "Math.NET Numerics - MKL Native Provider for Linux (x64 and x86)" }
Description = "Intel MKL native libraries for Math.NET Numerics on Linux."
Tags = "math numeric statistics probability integration interpolation linear algebra matrix fft native mkl"
Authors = [ "Christoph Ruegg"; "Marcus Cuda"; "Jurgen Van Gael" ]
Dependencies = []
Files =
[ @"..\..\build\NativeProvider.targets", Some "build\MathNet.Numerics.MKL.Linux.targets", None;
@"..\..\out\MKL\Linux\x64\libiomp5.so", Some @"build\x64", None;
@"..\..\out\MKL\Linux\x64\MathNet.Numerics.MKL.dll", Some @"build\x64", None;
@"..\..\out\MKL\Linux\x86\libiomp5.so", Some @"build\x86", None;
@"..\..\out\MKL\Linux\x86\MathNet.Numerics.MKL.dll", Some @"build\x86", None ] }
let mklLinux32Pack = let mklLinux32Pack =
{ mklLinuxPack with { NuGet = mklLinux32NuGetPackage
NuGet = mklLinux32NuGetPackage NuSpecFile = "build/MathNet.Numerics.MKL.Linux-x86.nuspec"
Title = "Math.NET Numerics - MKL Native Provider for Linux (x86)" Title = "Math.NET Numerics - MKL Native Provider for Linux (x86)" }
Files =
[ @"..\..\build\NativeProvider.targets", Some "build\MathNet.Numerics.MKL.Linux-x86.targets", None;
@"..\..\out\MKL\Linux\x86\libiomp5.so", Some @"build\x86", None;
@"..\..\out\MKL\Linux\x86\MathNet.Numerics.MKL.dll", Some @"build\x86", None ] }
let mklLinux64Pack = let mklLinux64Pack =
{ mklLinuxPack with { NuGet = mklLinux64NuGetPackage
NuGet = mklLinux64NuGetPackage NuSpecFile = "build/MathNet.Numerics.MKL.Linux-x64.nuspec"
Title = "Math.NET Numerics - MKL Native Provider for Linux (x64)" Title = "Math.NET Numerics - MKL Native Provider for Linux (x64)" }
Files =
[ @"..\..\build\NativeProvider.targets", Some "build\MathNet.Numerics.MKL.Linux-x64.targets", None;
@"..\..\out\MKL\Linux\x64\libiomp5.so", Some @"build\x64", None;
@"..\..\out\MKL\Linux\x64\MathNet.Numerics.MKL.dll", Some @"build\x64", None ] }
// CUDA NATIVE PROVIDER PACKAGES // CUDA NATIVE PROVIDER PACKAGES
@ -165,18 +129,8 @@ let cudaSolution = solution "CUDA" "MathNet.Numerics.CUDA.sln" [cudaWinProject]
let cudaWinPack = let cudaWinPack =
{ NuGet = cudaWinNuGetPackage { NuGet = cudaWinNuGetPackage
Title = "Math.NET Numerics - CUDA Native Provider for Windows (x64)" NuSpecFile = "build/MathNet.Numerics.CUDA.Win.nuspec"
Summary = "" Title = "Math.NET Numerics - CUDA Native Provider for Windows (x64)" }
Description = "Nvidia CUDA native libraries for Math.NET Numerics."
Tags = "math numeric statistics probability integration interpolation linear algebra matrix fft native cuda gpu"
Authors = [ "Matthew A Johnson"; "Christoph Ruegg" ]
Dependencies = []
Files =
[ @"..\..\build\NativeProvider.targets", Some "build\MathNet.Numerics.CUDA.Win.targets", None;
@"..\..\out\CUDA\Windows\x64\cublas64_70.dll", Some "content", None;
@"..\..\out\CUDA\Windows\x64\cudart64_70.dll", Some "content", None;
@"..\..\out\CUDA\Windows\x64\cusolver64_70.dll", Some "content", None;
@"..\..\out\CUDA\Windows\x64\MathNet.Numerics.CUDA.dll", Some "content", None ] }
// OpenBLAS NATIVE PROVIDER PACKAGES // OpenBLAS NATIVE PROVIDER PACKAGES
@ -189,24 +143,8 @@ let openBlasSolution = solution "OpenBLAS" "MathNet.Numerics.OpenBLAS.sln" [open
let openBlasWinPack = let openBlasWinPack =
{ NuGet = openBlasWinNuGetPackage { NuGet = openBlasWinNuGetPackage
Title = "Math.NET Numerics - OpenBLAS Native Provider for Windows (x64 and x86)" NuSpecFile = "build/MathNet.Numerics.OpenBLAS.Win.nuspec"
Summary = "" Title = "Math.NET Numerics - OpenBLAS Native Provider for Windows (x64 and x86)" }
Description = "OpenBLAS native libraries for Math.NET Numerics."
Tags = "math numeric statistics probability integration interpolation linear algebra matrix fft native openblas"
Authors = [ "Kuan Bartel"; "Christoph Ruegg"; "Marcus Cuda" ]
Dependencies = []
Files =
[ @"..\..\build\NativeProvider.targets", Some "build\MathNet.Numerics.OpenBLAS.Win.targets", None;
@"..\..\out\OpenBLAS\Windows\x64\libgcc_s_seh-1.dll", Some @"build\x64", None;
@"..\..\out\OpenBLAS\Windows\x64\libgfortran-3.dll", Some @"build\x64", None;
@"..\..\out\OpenBLAS\Windows\x64\libopenblas.dll", Some @"build\x64", None;
@"..\..\out\OpenBLAS\Windows\x64\libquadmath-0.dll", Some @"build\x64", None;
@"..\..\out\OpenBLAS\Windows\x64\MathNet.Numerics.OpenBLAS.dll", Some @"build\x64", None;
@"..\..\out\OpenBLAS\Windows\x86\libgcc_s_sjlj-1.dll", Some @"build\x86", None;
@"..\..\out\OpenBLAS\Windows\x86\libgfortran-3.dll", Some @"build\x86", None;
@"..\..\out\OpenBLAS\Windows\x86\libopenblas.dll", Some @"build\x86", None;
@"..\..\out\OpenBLAS\Windows\x86\libquadmath-0.dll", Some @"build\x86", None;
@"..\..\out\OpenBLAS\Windows\x86\MathNet.Numerics.OpenBLAS.dll", Some @"build\x86", None ] }
// ALL // ALL

28
build/MathNet.Numerics.CUDA.Win.nuspec

@ -0,0 +1,28 @@
<?xml version="1.0" encoding="utf-8"?>
<package xmlns="http://schemas.microsoft.com/packaging/2011/08/nuspec.xsd">
<metadata>
<id>MathNet.Numerics.CUDA.Win</id>
<version>@build.number@</version>
<title>Math.NET Numerics - CUDA Native Provider for Windows (x64)</title>
<authors>Matthew A Johnson, Christoph Ruegg</authors>
<owners>Matthew A Johnson, Christoph Ruegg</owners>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<licenseUrl>https://numerics.mathdotnet.com/License.html</licenseUrl>
<projectUrl>https://numerics.mathdotnet.com/</projectUrl>
<iconUrl>https://www.mathdotnet.com/images/MathNet128.png</iconUrl>
<repository type="git" url="https://github.com/mathnet/mathnet-numerics" />
<description>Nvidia CUDA native libraries for Math.NET Numerics.</description>
<summary>Nvidia CUDA native libraries for Math.NET Numerics.</summary>
<releaseNotes>@releaseNotes@</releaseNotes>
<tags>math numeric statistics probability integration interpolation linear algebra matrix fft native cuda gpu</tags>
</metadata>
<files>
<file src="..\..\out\CUDA\Windows\x64\cublas64_70.dll" target="build\x64\cublas64_70.dll" />
<file src="..\..\out\CUDA\Windows\x64\cudart64_70.dll" target="build\x64\cudart64_70.dll" />
<file src="..\..\out\CUDA\Windows\x64\cusolver64_70.dll" target="build\x64\cusolver64_70.dll" />
<file src="..\..\out\CUDA\Windows\x64\MathNet.Numerics.CUDA.dll" target="build\x64\MathNet.Numerics.CUDA.dll" />
<file src="..\..\build\NativeProvider.targets" target="build\MathNet.Numerics.CUDA.Win.targets" />
<file src="license.txt" target="license.txt" />
<file src="readme.txt" target="readme.txt" />
</files>
</package>

26
build/MathNet.Numerics.MKL.Linux-x64.nuspec

@ -0,0 +1,26 @@
<?xml version="1.0" encoding="utf-8"?>
<package xmlns="http://schemas.microsoft.com/packaging/2011/08/nuspec.xsd">
<metadata>
<id>MathNet.Numerics.MKL.Linux-x64</id>
<version>@build.number@</version>
<title>Math.NET Numerics - MKL Native Provider for Linux (x64)</title>
<authors>Christoph Ruegg, Marcus Cuda, Jurgen Van Gael</authors>
<owners>Christoph Ruegg, Marcus Cuda, Jurgen Van Gael</owners>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<licenseUrl>https://numerics.mathdotnet.com/License.html</licenseUrl>
<projectUrl>https://numerics.mathdotnet.com/</projectUrl>
<iconUrl>https://www.mathdotnet.com/images/MathNet128.png</iconUrl>
<repository type="git" url="https://github.com/mathnet/mathnet-numerics" />
<description>Intel MKL native libraries for Math.NET Numerics on Linux.</description>
<summary>Intel MKL native libraries for Math.NET Numerics on Linux.</summary>
<releaseNotes>@releaseNotes@</releaseNotes>
<tags>math numeric statistics probability integration interpolation linear algebra matrix fft native mkl</tags>
</metadata>
<files>
<file src="..\..\out\MKL\Linux\x64\libiomp5.so" target="build\x64\libiomp5.so" />
<file src="..\..\out\MKL\Linux\x64\MathNet.Numerics.MKL.dll" target="build\x64\MathNet.Numerics.MKL.dll" />
<file src="..\..\build\NativeProvider.targets" target="build\MathNet.Numerics.MKL.Linux-x64.targets" />
<file src="license.txt" target="license.txt" />
<file src="readme.txt" target="readme.txt" />
</files>
</package>

26
build/MathNet.Numerics.MKL.Linux-x86.nuspec

@ -0,0 +1,26 @@
<?xml version="1.0" encoding="utf-8"?>
<package xmlns="http://schemas.microsoft.com/packaging/2011/08/nuspec.xsd">
<metadata>
<id>MathNet.Numerics.MKL.Linux-x86</id>
<version>@build.number@</version>
<title>Math.NET Numerics - MKL Native Provider for Linux (x86)</title>
<authors>Christoph Ruegg, Marcus Cuda, Jurgen Van Gael</authors>
<owners>Christoph Ruegg, Marcus Cuda, Jurgen Van Gael</owners>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<licenseUrl>https://numerics.mathdotnet.com/License.html</licenseUrl>
<projectUrl>https://numerics.mathdotnet.com/</projectUrl>
<iconUrl>https://www.mathdotnet.com/images/MathNet128.png</iconUrl>
<repository type="git" url="https://github.com/mathnet/mathnet-numerics" />
<description>Intel MKL native libraries for Math.NET Numerics on Linux.</description>
<summary>Intel MKL native libraries for Math.NET Numerics on Linux.</summary>
<releaseNotes>@releaseNotes@</releaseNotes>
<tags>math numeric statistics probability integration interpolation linear algebra matrix fft native mkl</tags>
</metadata>
<files>
<file src="..\..\out\MKL\Linux\x86\libiomp5.so" target="build\x86\libiomp5.so" />
<file src="..\..\out\MKL\Linux\x86\MathNet.Numerics.MKL.dll" target="build\x86\MathNet.Numerics.MKL.dll" />
<file src="..\..\build\NativeProvider.targets" target="build\MathNet.Numerics.MKL.Linux-x86.targets" />
<file src="license.txt" target="license.txt" />
<file src="readme.txt" target="readme.txt" />
</files>
</package>

28
build/MathNet.Numerics.MKL.Linux.nuspec

@ -0,0 +1,28 @@
<?xml version="1.0" encoding="utf-8"?>
<package xmlns="http://schemas.microsoft.com/packaging/2011/08/nuspec.xsd">
<metadata>
<id>MathNet.Numerics.MKL.Linux</id>
<version>@build.number@</version>
<title>Math.NET Numerics - MKL Native Provider for Linux (x64 and x86)</title>
<authors>Christoph Ruegg, Marcus Cuda, Jurgen Van Gael</authors>
<owners>Christoph Ruegg, Marcus Cuda, Jurgen Van Gael</owners>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<licenseUrl>https://numerics.mathdotnet.com/License.html</licenseUrl>
<projectUrl>https://numerics.mathdotnet.com/</projectUrl>
<iconUrl>https://www.mathdotnet.com/images/MathNet128.png</iconUrl>
<repository type="git" url="https://github.com/mathnet/mathnet-numerics" />
<description>Intel MKL native libraries for Math.NET Numerics on Linux.</description>
<summary>Intel MKL native libraries for Math.NET Numerics on Linux.</summary>
<releaseNotes>@releaseNotes@</releaseNotes>
<tags>math numeric statistics probability integration interpolation linear algebra matrix fft native mkl</tags>
</metadata>
<files>
<file src="..\..\out\MKL\Linux\x64\libiomp5.so" target="build\x64\libiomp5.so" />
<file src="..\..\out\MKL\Linux\x64\MathNet.Numerics.MKL.dll" target="build\x64\MathNet.Numerics.MKL.dll" />
<file src="..\..\out\MKL\Linux\x86\libiomp5.so" target="build\x86\libiomp5.so" />
<file src="..\..\out\MKL\Linux\x86\MathNet.Numerics.MKL.dll" target="build\x86\MathNet.Numerics.MKL.dll" />
<file src="..\..\build\NativeProvider.targets" target="build\MathNet.Numerics.MKL.Linux.targets" />
<file src="license.txt" target="license.txt" />
<file src="readme.txt" target="readme.txt" />
</files>
</package>

26
build/MathNet.Numerics.MKL.Win-x64.nuspec

@ -0,0 +1,26 @@
<?xml version="1.0" encoding="utf-8"?>
<package xmlns="http://schemas.microsoft.com/packaging/2011/08/nuspec.xsd">
<metadata>
<id>MathNet.Numerics.MKL.Win-x64</id>
<version>@build.number@</version>
<title>Math.NET Numerics - MKL Native Provider for Windows (x64)</title>
<authors>Christoph Ruegg, Marcus Cuda, Jurgen Van Gael</authors>
<owners>Christoph Ruegg, Marcus Cuda, Jurgen Van Gael</owners>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<licenseUrl>https://numerics.mathdotnet.com/License.html</licenseUrl>
<projectUrl>https://numerics.mathdotnet.com/</projectUrl>
<iconUrl>https://www.mathdotnet.com/images/MathNet128.png</iconUrl>
<repository type="git" url="https://github.com/mathnet/mathnet-numerics" />
<description>Intel MKL native libraries for Math.NET Numerics on Windows.</description>
<summary>Intel MKL native libraries for Math.NET Numerics on Windows.</summary>
<releaseNotes>@releaseNotes@</releaseNotes>
<tags>math numeric statistics probability integration interpolation linear algebra matrix fft native mkl</tags>
</metadata>
<files>
<file src="..\..\out\MKL\Windows\x64\libiomp5md.dll" target="build\x64\libiomp5md.dll" />
<file src="..\..\out\MKL\Windows\x64\MathNet.Numerics.MKL.dll" target="build\x64\MathNet.Numerics.MKL.dll" />
<file src="..\..\build\NativeProvider.targets" target="build\MathNet.Numerics.MKL.Win-x64.targets" />
<file src="license.txt" target="license.txt" />
<file src="readme.txt" target="readme.txt" />
</files>
</package>

26
build/MathNet.Numerics.MKL.Win-x86.nuspec

@ -0,0 +1,26 @@
<?xml version="1.0" encoding="utf-8"?>
<package xmlns="http://schemas.microsoft.com/packaging/2011/08/nuspec.xsd">
<metadata>
<id>MathNet.Numerics.MKL.Win-x86</id>
<version>@build.number@</version>
<title>Math.NET Numerics - MKL Native Provider for Windows (x86)</title>
<authors>Christoph Ruegg, Marcus Cuda, Jurgen Van Gael</authors>
<owners>Christoph Ruegg, Marcus Cuda, Jurgen Van Gael</owners>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<licenseUrl>https://numerics.mathdotnet.com/License.html</licenseUrl>
<projectUrl>https://numerics.mathdotnet.com/</projectUrl>
<iconUrl>https://www.mathdotnet.com/images/MathNet128.png</iconUrl>
<repository type="git" url="https://github.com/mathnet/mathnet-numerics" />
<description>Intel MKL native libraries for Math.NET Numerics on Windows.</description>
<summary>Intel MKL native libraries for Math.NET Numerics on Windows.</summary>
<releaseNotes>@releaseNotes@</releaseNotes>
<tags>math numeric statistics probability integration interpolation linear algebra matrix fft native mkl</tags>
</metadata>
<files>
<file src="..\..\out\MKL\Windows\x86\libiomp5md.dll" target="build\x86\libiomp5md.dll" />
<file src="..\..\out\MKL\Windows\x86\MathNet.Numerics.MKL.dll" target="build\x86\MathNet.Numerics.MKL.dll" />
<file src="..\..\build\NativeProvider.targets" target="build\MathNet.Numerics.MKL.Win-x86.targets" />
<file src="license.txt" target="license.txt" />
<file src="readme.txt" target="readme.txt" />
</files>
</package>

28
build/MathNet.Numerics.MKL.Win.nuspec

@ -0,0 +1,28 @@
<?xml version="1.0" encoding="utf-8"?>
<package xmlns="http://schemas.microsoft.com/packaging/2011/08/nuspec.xsd">
<metadata>
<id>MathNet.Numerics.MKL.Win</id>
<version>@build.number@</version>
<title>Math.NET Numerics - MKL Native Provider for Windows (x64 and x86)</title>
<authors>Christoph Ruegg, Marcus Cuda, Jurgen Van Gael</authors>
<owners>Christoph Ruegg, Marcus Cuda, Jurgen Van Gael</owners>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<licenseUrl>https://numerics.mathdotnet.com/License.html</licenseUrl>
<projectUrl>https://numerics.mathdotnet.com/</projectUrl>
<iconUrl>https://www.mathdotnet.com/images/MathNet128.png</iconUrl>
<repository type="git" url="https://github.com/mathnet/mathnet-numerics" />
<description>Intel MKL native libraries for Math.NET Numerics on Windows.</description>
<summary>Intel MKL native libraries for Math.NET Numerics on Windows.</summary>
<releaseNotes>@releaseNotes@</releaseNotes>
<tags>math numeric statistics probability integration interpolation linear algebra matrix fft native mkl</tags>
</metadata>
<files>
<file src="..\..\out\MKL\Windows\x64\libiomp5md.dll" target="build\x64\libiomp5md.dll" />
<file src="..\..\out\MKL\Windows\x64\MathNet.Numerics.MKL.dll" target="build\x64\MathNet.Numerics.MKL.dll" />
<file src="..\..\out\MKL\Windows\x86\libiomp5md.dll" target="build\x86\libiomp5md.dll" />
<file src="..\..\out\MKL\Windows\x86\MathNet.Numerics.MKL.dll" target="build\x86\MathNet.Numerics.MKL.dll" />
<file src="..\..\build\NativeProvider.targets" target="build\MathNet.Numerics.MKL.Win.targets" />
<file src="license.txt" target="license.txt" />
<file src="readme.txt" target="readme.txt" />
</files>
</package>

34
build/MathNet.Numerics.OpenBLAS.Win.nuspec

@ -0,0 +1,34 @@
<?xml version="1.0" encoding="utf-8"?>
<package xmlns="http://schemas.microsoft.com/packaging/2011/08/nuspec.xsd">
<metadata>
<id>MathNet.Numerics.OpenBLAS.Win</id>
<version>@build.number@</version>
<title>Math.NET Numerics - OpenBLAS Native Provider for Windows (x64 and x86)</title>
<authors>Kuan Bartel, Christoph Ruegg, Marcus Cuda</authors>
<owners>Kuan Bartel, Christoph Ruegg, Marcus Cuda</owners>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<licenseUrl>https://numerics.mathdotnet.com/License.html</licenseUrl>
<projectUrl>https://numerics.mathdotnet.com/</projectUrl>
<iconUrl>https://www.mathdotnet.com/images/MathNet128.png</iconUrl>
<repository type="git" url="https://github.com/mathnet/mathnet-numerics" />
<description>OpenBLAS native libraries for Math.NET Numerics.</description>
<summary>OpenBLAS native libraries for Math.NET Numerics.</summary>
<releaseNotes>@releaseNotes@</releaseNotes>
<tags>math numeric statistics probability integration interpolation linear algebra matrix fft native openblas</tags>
</metadata>
<files>
<file src="..\..\out\OpenBLAS\Windows\x64\libgcc_s_seh-1.dll" target="build\x64\libgcc_s_seh-1.dll" />
<file src="..\..\out\OpenBLAS\Windows\x64\libgfortran-3.dll" target="build\x64\libgfortran-3.dll" />
<file src="..\..\out\OpenBLAS\Windows\x64\libopenblas.dll" target="build\x64\libopenblas.dll" />
<file src="..\..\out\OpenBLAS\Windows\x64\libquadmath-0.dll" target="build\x64\libquadmath-0.dll" />
<file src="..\..\out\OpenBLAS\Windows\x64\MathNet.Numerics.OpenBLAS.dll" target="build\x64\MathNet.Numerics.OpenBLAS.dll" />
<file src="..\..\out\OpenBLAS\Windows\x86\libgcc_s_sjlj-1.dll" target="build\x86\libgcc_s_sjlj-1.dll" />
<file src="..\..\out\OpenBLAS\Windows\x86\libgfortran-3.dll" target="build\x86\libgfortran-3.dll" />
<file src="..\..\out\OpenBLAS\Windows\x86\libopenblas.dll" target="build\x86\libopenblas.dll" />
<file src="..\..\out\OpenBLAS\Windows\x86\libquadmath-0.dll" target="build\x86\libquadmath-0.dll" />
<file src="..\..\out\OpenBLAS\Windows\x86\MathNet.Numerics.OpenBLAS.dll" target="build\x86\MathNet.Numerics.OpenBLAS.dll" />
<file src="..\..\build\NativeProvider.targets" target="build\MathNet.Numerics.OpenBLAS.Win.targets" />
<file src="license.txt" target="license.txt" />
<file src="readme.txt" target="readme.txt" />
</files>
</package>

41
build/build-framework.fsx

@ -149,13 +149,8 @@ type Solution =
type NuGetSpecification = type NuGetSpecification =
{ NuGet: NuGetPackage { NuGet: NuGetPackage
Title: string NuSpecFile: string
Summary: string Title: string }
Description: string
Tags: string
Authors: string list
Dependencies: NugetFrameworkDependencies list
Files: (string * string option * string option) list }
let release title releaseNotesFile : Release = let release title releaseNotesFile : Release =
@ -242,23 +237,6 @@ let traceHeader (releases:Release list) =
trace "" trace ""
// --------------------------------------------------------------------------------------
// TARGET FRAMEWORKS
// --------------------------------------------------------------------------------------
let libnet35 = "lib/net35"
let libnet40 = "lib/net40"
let libnet45 = "lib/net45"
let netstandard13 = "lib/netstandard1.3"
let netstandard16 = "lib/netstandard1.6"
let netstandard20 = "lib/netstandard2.0"
let libpcl7 = "lib/portable-net45+netcore45+MonoAndroid1+MonoTouch1"
let libpcl47 = "lib/portable-net45+sl5+netcore45+MonoAndroid1+MonoTouch1"
let libpcl78 = "lib/portable-net45+netcore45+wp8+MonoAndroid1+MonoTouch1"
let libpcl259 = "lib/portable-net45+netcore45+wpa81+wp8+MonoAndroid1+MonoTouch1"
let libpcl328 = "lib/portable-net4+sl5+netcore45+wpa81+wp8+MonoAndroid1+MonoTouch1"
// -------------------------------------------------------------------------------------- // --------------------------------------------------------------------------------------
// PREPARE // PREPARE
// -------------------------------------------------------------------------------------- // --------------------------------------------------------------------------------------
@ -301,6 +279,7 @@ let patchVersionInProjectFile (project:Project) =
| NativeVisualStudio _ -> () | NativeVisualStudio _ -> ()
| NativeBashScript _ -> () | NativeBashScript _ -> ()
// -------------------------------------------------------------------------------------- // --------------------------------------------------------------------------------------
// BUILD // BUILD
// -------------------------------------------------------------------------------------- // --------------------------------------------------------------------------------------
@ -436,21 +415,12 @@ let zip (package:ZipPackage) zipDir filesDir filesFilter =
// NUGET // NUGET
let updateNuspec (nuget:NuGetPackage) (pack:NuGetSpecification) outPath symbols updateFiles spec = let updateNuspec (nuget:NuGetPackage) outPath spec =
{ spec with ToolPath = "packages/build/NuGet.CommandLine/tools/NuGet.exe" { spec with ToolPath = "packages/build/NuGet.CommandLine/tools/NuGet.exe"
OutputPath = outPath OutputPath = outPath
WorkingDir = "obj/NuGet" WorkingDir = "obj/NuGet"
Version = nuget.Release.PackageVersion Version = nuget.Release.PackageVersion
ReleaseNotes = nuget.Release.ReleaseNotes ReleaseNotes = nuget.Release.ReleaseNotes
Project = nuget.Id
Title = pack.Title
Summary = pack.Summary
Description = pack.Description
Tags = pack.Tags
Authors = pack.Authors
DependenciesByFramework = pack.Dependencies
SymbolPackage = symbols
Files = updateFiles pack.Files
Publish = false } Publish = false }
let nugetPackManually (solution:Solution) (packages:NuGetSpecification list) = let nugetPackManually (solution:Solution) (packages:NuGetSpecification list) =
@ -458,8 +428,7 @@ let nugetPackManually (solution:Solution) (packages:NuGetSpecification list) =
for pack in packages do for pack in packages do
provideLicense "obj/NuGet" provideLicense "obj/NuGet"
provideReadme (sprintf "%s v%s" pack.Title pack.NuGet.Release.PackageVersion) pack.NuGet.Release "obj/NuGet" provideReadme (sprintf "%s v%s" pack.Title pack.NuGet.Release.PackageVersion) pack.NuGet.Release "obj/NuGet"
let withLicenseReadme f = [ "license.txt", None, None; "readme.txt", None, None; ] @ f NuGet (updateNuspec pack.NuGet solution.OutputNuGetDir) pack.NuSpecFile
NuGet (updateNuspec pack.NuGet pack solution.OutputNuGetDir NugetSymbolPackage.None withLicenseReadme) "build/MathNet.Numerics.Extension.nuspec"
CleanDir "obj/NuGet" CleanDir "obj/NuGet"
DeleteDir "obj/NuGet" DeleteDir "obj/NuGet"

Loading…
Cancel
Save