Add nuget package holding all libraries for development
This commit is contained in:
committed by
Corentin Le Molgat
parent
b7a458f321
commit
a8ee3cbbee
@@ -20,7 +20,7 @@ ORTOOLS_NUSPEC_FILE=$(ORTOOLS_DLL_NAME).nuspec
|
||||
|
||||
CLR_PROTOBUF_DLL_NAME?=Google.Protobuf
|
||||
CLR_ORTOOLS_DLL_NAME?=Google.$(ORTOOLS_DLL_NAME)
|
||||
BASE_CLR_ORTOOLS_DLL_NAME:= $(CLR_ORTOOLS_DLL_NAME)
|
||||
BASE_CLR_ORTOOLS_DLL_NAME:=$(CLR_ORTOOLS_DLL_NAME)
|
||||
CLR_ORTOOLS_IMPORT_DLL_NAME:=$(CLR_ORTOOLS_DLL_NAME)
|
||||
|
||||
# Check for required build tools
|
||||
@@ -213,9 +213,21 @@ dotnet: \
|
||||
csharp_dotnet \
|
||||
fsharp_dotnet
|
||||
|
||||
|
||||
ifeq ($(SYSTEM),win)
|
||||
NUGET_COMPILER ?= nuget.exe
|
||||
NUGET_EXECUTABLE := $(shell $(WHICH) $(NUGET_COMPILER) 2>nul)
|
||||
else #UNIX
|
||||
NUGET_COMPILER ?= nuget
|
||||
NUGET_EXECUTABLE := $(shell which $(NUGET_COMPILER))
|
||||
endif
|
||||
NUGET_SRC = https://www.nuget.org/api/v2/package
|
||||
|
||||
.PHONY: pkg_dotnet # Build Nuget Package
|
||||
pkg_dotnet:
|
||||
$(warning Not Implemented)
|
||||
$(SED) -i -e "s/MMMM/$(CLR_ORTOOLS_DLL_NAME)/" ortools$Sdotnet$S$(ORTOOLS_NUSPEC_FILE)
|
||||
$(SED) -i -e "s/VVVV/$(OR_TOOLS_VERSION)/" ortools$Sdotnet$S$(ORTOOLS_NUSPEC_FILE)
|
||||
$(NUGET_EXECUTABLE) pack ortools$Sdotnet$S$(ORTOOLS_NUSPEC_FILE)
|
||||
|
||||
.PHONY: pkg_dotnet-upload # Upload Nuget Package
|
||||
pkg_dotnet-upload: nuget_archive
|
||||
@@ -231,6 +243,7 @@ else
|
||||
endif
|
||||
@echo DOTNET_EXECUTABLE = "$(DOTNET_EXECUTABLE)"
|
||||
@echo MONO_EXECUTABLE = "$(MONO_EXECUTABLE)"
|
||||
@echo NUGET_EXECUTABLE = "$(NUGET_EXECUTABLE)"
|
||||
ifeq ($(SYSTEM),win)
|
||||
@echo off & echo(
|
||||
else
|
||||
|
||||
@@ -1,22 +1,20 @@
|
||||
<?xml version="1.0"?>
|
||||
<package >
|
||||
<metadata>
|
||||
<id>NNNN</id>
|
||||
<version>VVVV</version>
|
||||
<authors>Google</authors>
|
||||
<licenseUrl>https://github.com/google/or-tools/blob/master/LICENSE-2.0.txt</licenseUrl>
|
||||
<projectUrl>https://developers.google.com/optimization</projectUrl>
|
||||
<description>.NET Assembly for the Operations Research Tools project</description>
|
||||
<copyright>Copyright 2018 Google, Inc</copyright>
|
||||
<tags>Operations Research Math Linear Constraint Programming C# .NET SWIG C++</tags>
|
||||
<dependencies>
|
||||
<dependency id="MMMM" version="PROTOBUF_TAG" />
|
||||
</dependencies>
|
||||
</metadata>
|
||||
<files>
|
||||
<file src="bin\NNNN.dll" target="lib\net40"/>
|
||||
<file src="examples\**\*.*" target="examples"/>
|
||||
<file src="examples\data\**\*.*" target="data"/>
|
||||
<file src="LICENSE-2.0.txt"/>
|
||||
</files>
|
||||
</package>
|
||||
<metadata>
|
||||
<id>MMMM</id>
|
||||
<version>VVVV</version>
|
||||
<authors>Google Inc.</authors>
|
||||
<licenseUrl>https://github.com/google/or-tools/blob/master/LICENSE-2.0.txt</licenseUrl>
|
||||
<projectUrl>https://developers.google.com/optimization</projectUrl>
|
||||
<description>.NET wrapper for the Operations Research Tools project</description>
|
||||
<copyright>Copyright 2018 Google, Inc</copyright>
|
||||
<tags>Operations Research Math Linear Constraint Programming C# F# .NETStandard</tags>
|
||||
</metadata>
|
||||
<files>
|
||||
<file src="../../lib/*.*" target="lib/netstandard2.0"/>
|
||||
<file src="../../bin/Google.Protobuf.dll" target="lib/netstandard2.0"/>
|
||||
<file src="OrTools/bin/Release/netstandard2.0/*.*" target="lib/netstandard2.0"/>
|
||||
<file src="OrTools.FSharp/bin/Release/netstandard2.0/Google.OrTools.FSharp.*" target="lib/netstandard2.0"/>
|
||||
<file src="../../LICENSE-2.0.txt"/>
|
||||
</files>
|
||||
</package>
|
||||
Reference in New Issue
Block a user