Skip to content

Commit

Permalink
dotnet: move some targets
Browse files Browse the repository at this point in the history
  • Loading branch information
Mizux committed Jul 13, 2018
1 parent 496be16 commit 52c126c
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions makefiles/Makefile.dotnet.mk
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,10 @@ HAS_DOTNET =
endif

# Main target
.PHONY: dotnet # Build OrTools for .NET
dotnet: ortoolslibs csharp_dotnet fsharp_dotnet

.PHONY: csharp_dotnet # Build C# OR-Tools
csharp_dotnet: $(BIN_DIR)/$(CLR_ORTOOLS_DLL_NAME)$D $(BIN_DIR)/$(CLR_PROTOBUF_DLL_NAME)$D
BUILT_LANGUAGES +=, dotnet \(netstandard2.0\)

# Assembly Info
$(GEN_DIR)/ortools/properties:
Expand All @@ -59,6 +60,9 @@ $(GEN_DIR)/ortools/properties/GitVersion$(OR_TOOLS_VERSION).txt: \
| $(GEN_DIR)/ortools/properties
@echo $(OR_TOOLS_VERSION) > $(GEN_PATH)$Sortools$Sproperties$SGitVersion$(OR_TOOLS_VERSION).txt

.PHONY: csharp_dotnet # Build C# OR-Tools
csharp_dotnet: $(BIN_DIR)/$(CLR_ORTOOLS_DLL_NAME)$D $(BIN_DIR)/$(CLR_PROTOBUF_DLL_NAME)$D

# Auto-generated code
$(BIN_DIR)/$(CLR_PROTOBUF_DLL_NAME)$D: tools/dotnet/$(CLR_PROTOBUF_DLL_NAME)$D | $(BIN_DIR)
$(COPY) tools$Sdotnet$S$(CLR_PROTOBUF_DLL_NAME)$D $(BIN_DIR)
Expand Down Expand Up @@ -250,12 +254,6 @@ $(GEN_DIR)/ortools/sat/SatParameters.pb.cs: \
$(CLR_KEYFILE): | $(BIN_DIR)
"$(DOTNET_BIN)" run --project tools$Sdotnet$SCreateSigningKey$SCreateSigningKey.csproj $S$(CLR_KEYFILE_PATH)

# Main DLL
.PHONY: dotnet # Build OrTools for .NET
dotnet: ortoolslibs csharp_dotnet fsharp_dotnet

BUILT_LANGUAGES +=, dotnet \(netstandard2.0\)

$(BIN_DIR)/$(CLR_ORTOOLS_DLL_NAME)$D: \
$(SRC_DIR)/ortools/dotnet/$(ORTOOLS_DLL_NAME)/$(ORTOOLS_DLL_NAME).csproj \
$(OR_TOOLS_LIBS) \
Expand Down

0 comments on commit 52c126c

Please sign in to comment.