2016-07-01 11:24:17 +02:00
|
|
|
|
2016-09-16 13:37:11 +02:00
|
|
|
archive: $(INSTALL_DIR)$(ARCHIVE_EXT)
|
|
|
|
|
|
2018-06-05 14:31:19 +02:00
|
|
|
$(INSTALL_DIR)$(ARCHIVE_EXT): $(LIB_DIR)$S$(LIB_PREFIX)ortools.$L create_dirs cc_archive dotnet_archive java_archive $(PATCHELF)
|
2018-02-22 16:27:48 +01:00
|
|
|
ifeq ($(SYSTEM),win)
|
2016-07-18 15:25:55 -07:00
|
|
|
cd temp && ..$Stools$Szip.exe -r ..$S$(INSTALL_DIR).zip $(INSTALL_DIR)
|
2016-07-03 15:24:34 +02:00
|
|
|
else
|
2016-07-22 15:56:22 -07:00
|
|
|
ifeq ($(PLATFORM),LINUX)
|
|
|
|
|
tools/fix_libraries_on_linux.sh
|
2016-09-13 16:33:08 +02:00
|
|
|
else
|
|
|
|
|
$(COPY) tools/install_libortools_mac.sh temp/$(INSTALL_DIR)
|
|
|
|
|
chmod 775 temp/$(INSTALL_DIR)/install_libortools_mac.sh
|
|
|
|
|
cd temp/$(INSTALL_DIR) && ./install_libortools_mac.sh && rm install_libortools_mac.sh
|
2016-07-22 15:56:22 -07:00
|
|
|
endif
|
2016-07-18 15:25:55 -07:00
|
|
|
cd temp && tar -c -v -z --no-same-owner -f ..$S$(INSTALL_DIR).tar.gz $(INSTALL_DIR)
|
2016-07-01 11:24:17 +02:00
|
|
|
endif
|
2016-07-01 15:29:57 +00:00
|
|
|
-$(DELREC) temp
|
2016-07-01 11:24:17 +02:00
|
|
|
|
|
|
|
|
create_dirs:
|
|
|
|
|
-$(DELREC) temp
|
|
|
|
|
$(MKDIR) temp
|
2017-05-11 15:01:35 +02:00
|
|
|
$(MKDIR) temp$S$(INSTALL_DIR)
|
|
|
|
|
$(MKDIR) temp$S$(INSTALL_DIR)$Slib
|
|
|
|
|
$(MKDIR) temp$S$(INSTALL_DIR)$Sobjs
|
|
|
|
|
$(MKDIR) temp$S$(INSTALL_DIR)$Sbin
|
|
|
|
|
$(MKDIR) temp$S$(INSTALL_DIR)$Sinclude
|
|
|
|
|
$(MKDIR) temp$S$(INSTALL_DIR)$Sinclude$Sortools
|
|
|
|
|
$(MKDIR) temp$S$(INSTALL_DIR)$Sinclude$Sortools$Salgorithms
|
|
|
|
|
$(MKDIR) temp$S$(INSTALL_DIR)$Sinclude$Sortools$Sbase
|
|
|
|
|
$(MKDIR) temp$S$(INSTALL_DIR)$Sinclude$Sortools$Sconstraint_solver
|
2017-11-24 10:45:36 +01:00
|
|
|
$(MKDIR) temp$S$(INSTALL_DIR)$Sinclude$Sortools$Sdata
|
2017-05-11 15:01:35 +02:00
|
|
|
$(MKDIR) temp$S$(INSTALL_DIR)$Sinclude$Sortools$Sgflags
|
2017-05-23 18:28:20 +02:00
|
|
|
$(MKDIR) temp$S$(INSTALL_DIR)$Sinclude$Sortools$Sglog
|
2017-05-11 15:01:35 +02:00
|
|
|
$(MKDIR) temp$S$(INSTALL_DIR)$Sinclude$Sortools$Sbop
|
|
|
|
|
$(MKDIR) temp$S$(INSTALL_DIR)$Sinclude$Sortools$Sglop
|
|
|
|
|
$(MKDIR) temp$S$(INSTALL_DIR)$Sinclude$Sortools$Sgoogle
|
|
|
|
|
$(MKDIR) temp$S$(INSTALL_DIR)$Sinclude$Sortools$Sgraph
|
|
|
|
|
$(MKDIR) temp$S$(INSTALL_DIR)$Sinclude$Sortools$Slinear_solver
|
2017-06-30 12:08:02 +02:00
|
|
|
$(MKDIR) temp$S$(INSTALL_DIR)$Sinclude$Sortools$Slp_data
|
2017-08-02 14:17:58 -07:00
|
|
|
$(MKDIR) temp$S$(INSTALL_DIR)$Sinclude$Sortools$Sport
|
2017-05-11 15:01:35 +02:00
|
|
|
$(MKDIR) temp$S$(INSTALL_DIR)$Sinclude$Sortools$Ssat
|
|
|
|
|
$(MKDIR) temp$S$(INSTALL_DIR)$Sinclude$Sortools$Sutil
|
|
|
|
|
$(MKDIR) temp$S$(INSTALL_DIR)$Sexamples
|
|
|
|
|
$(MKDIR) temp$S$(INSTALL_DIR)$Sexamples$Scpp
|
|
|
|
|
$(MKDIR) temp$S$(INSTALL_DIR)$Sexamples$Scsharp
|
|
|
|
|
$(MKDIR) temp$S$(INSTALL_DIR)$Sexamples$Scsharp$Ssolution
|
|
|
|
|
$(MKDIR) temp$S$(INSTALL_DIR)$Sexamples$Scsharp$Ssolution$SProperties
|
|
|
|
|
$(MKDIR) temp$S$(INSTALL_DIR)$Sexamples$Scom
|
|
|
|
|
$(MKDIR) temp$S$(INSTALL_DIR)$Sexamples$Scom$Sgoogle
|
|
|
|
|
$(MKDIR) temp$S$(INSTALL_DIR)$Sexamples$Scom$Sgoogle$Sortools
|
|
|
|
|
$(MKDIR) temp$S$(INSTALL_DIR)$Sexamples$Scom$Sgoogle$Sortools$Ssamples
|
2017-09-11 15:45:25 +02:00
|
|
|
$(MKDIR) temp$S$(INSTALL_DIR)$Sexamples$Sfsharp
|
2017-10-02 15:44:38 +02:00
|
|
|
$(MKDIR) temp$S$(INSTALL_DIR)$Sexamples$Sfsharp$Slib
|
2018-02-08 01:23:13 -08:00
|
|
|
$(MKDIR) temp$S$(INSTALL_DIR)$Sexamples$Snetstandard
|
2016-07-01 15:29:57 +00:00
|
|
|
#credits
|
2016-07-01 11:24:17 +02:00
|
|
|
$(COPY) LICENSE-2.0.txt temp$S$(INSTALL_DIR)
|
|
|
|
|
$(COPY) tools$SREADME.cc.java.csharp temp$S$(INSTALL_DIR)$SREADME
|
|
|
|
|
$(COPY) tools$SMakefile.cc temp$S$(INSTALL_DIR)$SMakefile
|
|
|
|
|
|
2018-06-05 14:31:19 +02:00
|
|
|
create_data_dirs:
|
|
|
|
|
-$(DELREC) temp_data
|
|
|
|
|
$(MKDIR) temp_data
|
|
|
|
|
$(MKDIR) temp_data$S$(INSTALL_DIR)
|
|
|
|
|
$(MKDIR) temp_data$S$(INSTALL_DIR)$Sexamples
|
|
|
|
|
$(MKDIR) temp_data$S$(INSTALL_DIR)$Sexamples$Sdata
|
|
|
|
|
$(MKDIR) temp_data$S$(INSTALL_DIR)$Sexamples$Sdata$Set_jobshop
|
|
|
|
|
$(MKDIR) temp_data$S$(INSTALL_DIR)$Sexamples$Sdata$Sflexible_jobshop
|
|
|
|
|
$(MKDIR) temp_data$S$(INSTALL_DIR)$Sexamples$Sdata$Sjobshop
|
|
|
|
|
$(MKDIR) temp_data$S$(INSTALL_DIR)$Sexamples$Sdata$Smultidim_knapsack
|
|
|
|
|
$(MKDIR) temp_data$S$(INSTALL_DIR)$Sexamples$Sdata$Scvrptw
|
|
|
|
|
$(MKDIR) temp_data$S$(INSTALL_DIR)$Sexamples$Sdata$Spdptw
|
|
|
|
|
$(MKDIR) temp_data$S$(INSTALL_DIR)$Sexamples$Sdata$Sfill_a_pix
|
|
|
|
|
$(MKDIR) temp_data$S$(INSTALL_DIR)$Sexamples$Sdata$Sminesweeper
|
|
|
|
|
$(MKDIR) temp_data$S$(INSTALL_DIR)$Sexamples$Sdata$Srogo
|
|
|
|
|
$(MKDIR) temp_data$S$(INSTALL_DIR)$Sexamples$Sdata$Ssurvo_puzzle
|
|
|
|
|
$(MKDIR) temp_data$S$(INSTALL_DIR)$Sexamples$Sdata$Squasigroup_completion
|
|
|
|
|
$(MKDIR) temp_data$S$(INSTALL_DIR)$Sexamples$Sdata$Sdiscrete_tomography
|
|
|
|
|
$(COPY) LICENSE-2.0.txt temp_data$S$(INSTALL_DIR)
|
|
|
|
|
|
|
|
|
|
data_archive: $(INSTALL_DIR)_data$(ARCHIVE_EXT)
|
|
|
|
|
|
|
|
|
|
$(INSTALL_DIR)_data$(ARCHIVE_EXT): create_data_dirs
|
2018-02-22 16:27:48 +01:00
|
|
|
ifeq ($(SYSTEM),win)
|
2018-06-05 14:31:19 +02:00
|
|
|
tools$Star.exe -c -v --exclude *svn* --exclude *roadef* --exclude *vector_packing* --exclude *nsplib* examples\\data | tools$Star.exe xvm -C temp_data\\$(INSTALL_DIR)
|
|
|
|
|
cd temp_data && ..$Stools$Szip.exe -r ..$S$(INSTALL_DIR)_data.zip $(INSTALL_DIR)
|
2017-12-20 10:46:48 +01:00
|
|
|
else
|
2018-06-05 14:31:19 +02:00
|
|
|
tar -c -v --exclude *svn* --exclude *roadef* --exclude *vector_packing* --exclude *nsplib* examples/data | tar xvm -C temp_data/$(INSTALL_DIR)
|
|
|
|
|
cd temp_data && tar -c -v -z --no-same-owner -f ..$S$(INSTALL_DIR)_data.tar.gz $(INSTALL_DIR)
|
2017-12-20 10:46:48 +01:00
|
|
|
endif
|
2018-06-05 14:31:19 +02:00
|
|
|
-$(DELREC) temp_data
|
2016-07-01 11:24:17 +02:00
|
|
|
|
2017-12-20 10:46:48 +01:00
|
|
|
cc_archive: cc
|
2018-05-16 13:28:12 +02:00
|
|
|
$(COPY) $(LIB_DIR)$S$(LIB_PREFIX)cvrptw_lib.$L temp$S$(INSTALL_DIR)$Slib
|
|
|
|
|
$(COPY) $(LIB_DIR)$S$(LIB_PREFIX)dimacs.$L temp$S$(INSTALL_DIR)$Slib
|
|
|
|
|
$(COPY) $(LIB_DIR)$S$(LIB_PREFIX)ortools.$L temp$S$(INSTALL_DIR)$Slib
|
|
|
|
|
$(COPY) $(LIB_DIR)$S$(LIB_PREFIX)fap.$L temp$S$(INSTALL_DIR)$Slib
|
2016-07-01 11:24:17 +02:00
|
|
|
$(COPY) examples$Scpp$S*.cc temp$S$(INSTALL_DIR)$Sexamples$Scpp
|
|
|
|
|
$(COPY) examples$Scpp$S*.h temp$S$(INSTALL_DIR)$Sexamples$Scpp
|
2017-05-11 15:01:35 +02:00
|
|
|
$(COPY) ortools$Salgorithms$S*.h temp$S$(INSTALL_DIR)$Sinclude$Sortools$Salgorithms
|
|
|
|
|
$(COPY) ortools$Sbase$S*.h temp$S$(INSTALL_DIR)$Sinclude$Sortools$Sbase
|
|
|
|
|
$(COPY) ortools$Sconstraint_solver$S*.h temp$S$(INSTALL_DIR)$Sinclude$Sortools$Sconstraint_solver
|
|
|
|
|
$(COPY) ortools$Sgen$Sortools$Sconstraint_solver$S*.pb.h temp$S$(INSTALL_DIR)$Sinclude$Sortools$Sconstraint_solver
|
2017-11-24 10:45:36 +01:00
|
|
|
$(COPY) ortools$Sdata$S*.h temp$S$(INSTALL_DIR)$Sinclude$Sortools$Sdata
|
|
|
|
|
$(COPY) ortools$Sgen$Sortools$Sdata$S*.pb.h temp$S$(INSTALL_DIR)$Sinclude$Sortools$Sdata
|
2017-05-11 15:01:35 +02:00
|
|
|
$(COPY) ortools$Sbop$S*.h temp$S$(INSTALL_DIR)$Sinclude$Sortools$Sbop
|
|
|
|
|
$(COPY) ortools$Sgen$Sortools$Sbop$S*.pb.h temp$S$(INSTALL_DIR)$Sinclude$Sortools$Sbop
|
|
|
|
|
$(COPY) ortools$Sglop$S*.h temp$S$(INSTALL_DIR)$Sinclude$Sortools$Sglop
|
|
|
|
|
$(COPY) ortools$Sgen$Sortools$Sglop$S*.pb.h temp$S$(INSTALL_DIR)$Sinclude$Sortools$Sglop
|
|
|
|
|
$(COPY) ortools$Sgraph$S*.h temp$S$(INSTALL_DIR)$Sinclude$Sortools$Sgraph
|
|
|
|
|
$(COPY) ortools$Sgen$Sortools$Sgraph$S*.h temp$S$(INSTALL_DIR)$Sinclude$Sortools$Sgraph
|
|
|
|
|
$(COPY) ortools$Slinear_solver$S*.h temp$S$(INSTALL_DIR)$Sinclude$Sortools$Slinear_solver
|
2017-06-30 12:08:02 +02:00
|
|
|
$(COPY) ortools$Slp_data$S*.h temp$S$(INSTALL_DIR)$Sinclude$Sortools$Slp_data
|
2017-05-11 15:01:35 +02:00
|
|
|
$(COPY) ortools$Sgen$Sortools$Slinear_solver$S*.pb.h temp$S$(INSTALL_DIR)$Sinclude$Sortools$Slinear_solver
|
2017-08-02 14:17:58 -07:00
|
|
|
$(COPY) ortools$Sport$S*.h temp$S$(INSTALL_DIR)$Sinclude$Sortools$Sport
|
2017-05-11 15:01:35 +02:00
|
|
|
$(COPY) ortools$Ssat$S*.h temp$S$(INSTALL_DIR)$Sinclude$Sortools$Ssat
|
|
|
|
|
$(COPY) ortools$Sgen$Sortools$Ssat$S*.pb.h temp$S$(INSTALL_DIR)$Sinclude$Sortools$Ssat
|
|
|
|
|
$(COPY) ortools$Sutil$S*.h temp$S$(INSTALL_DIR)$Sinclude$Sortools$Sutil
|
2018-06-04 17:22:28 +02:00
|
|
|
$(COPY) ortools$Sgen$Sortools$Sutil$S*.pb.h temp$S$(INSTALL_DIR)$Sinclude$Sortools$Sutil
|
2018-02-22 16:27:48 +01:00
|
|
|
ifeq ($(SYSTEM),win)
|
2017-10-31 09:58:07 +01:00
|
|
|
$(COPY) tools$Smake.exe temp$S$(INSTALL_DIR)
|
2016-07-01 11:24:17 +02:00
|
|
|
cd temp$S$(INSTALL_DIR)$Sinclude && ..$S..$S..$Stools$Star.exe -C ..$S..$S..$Sdependencies$Sinstall$Sinclude -c -v gflags | ..$S..$S..$Stools$Star.exe xvm
|
2017-05-23 18:28:20 +02:00
|
|
|
cd temp$S$(INSTALL_DIR)$Sinclude && ..$S..$S..$Stools$Star.exe -C ..$S..$S..$Sdependencies$Sinstall$Sinclude -c -v glog | ..$S..$S..$Stools$Star.exe xvm
|
2016-07-01 11:24:17 +02:00
|
|
|
cd temp$S$(INSTALL_DIR)$Sinclude && ..$S..$S..$Stools$Star.exe -C ..$S..$S..$Sdependencies$Sinstall$Sinclude -c -v google | ..$S..$S..$Stools$Star.exe xvm
|
|
|
|
|
else
|
|
|
|
|
cd temp$S$(INSTALL_DIR)$Sinclude && tar -C ..$S..$S..$Sdependencies$Sinstall$Sinclude -c -v gflags | tar xvm
|
2017-05-23 18:28:20 +02:00
|
|
|
cd temp$S$(INSTALL_DIR)$Sinclude && tar -C ..$S..$S..$Sdependencies$Sinstall$Sinclude -c -v glog | tar xvm
|
2016-07-01 11:24:17 +02:00
|
|
|
cd temp$S$(INSTALL_DIR)$Sinclude && tar -C ..$S..$S..$Sdependencies$Sinstall$Sinclude -c -v google | tar xvm
|
|
|
|
|
endif
|
|
|
|
|
|
2016-11-02 19:12:40 +01:00
|
|
|
dotnet_archive: csharp
|
2016-09-29 18:50:59 +02:00
|
|
|
$(COPY) bin$SGoogle.Protobuf.dll temp$S$(INSTALL_DIR)$Sbin
|
2017-04-21 16:41:23 +02:00
|
|
|
$(COPY) bin$S$(CLR_ORTOOLS_DLL_NAME).dll temp$S$(INSTALL_DIR)$Sbin
|
2016-07-01 11:24:17 +02:00
|
|
|
$(COPY) examples$Scsharp$S*.cs temp$S$(INSTALL_DIR)$Sexamples$Scsharp
|
2017-10-02 15:44:38 +02:00
|
|
|
$(COPY) examples$Sfsharp$S*fsx temp$S$(INSTALL_DIR)$Sexamples$Sfsharp
|
|
|
|
|
$(COPY) examples$Sfsharp$SREADME.md temp$S$(INSTALL_DIR)$Sexamples$Sfsharp
|
2016-07-01 11:24:17 +02:00
|
|
|
$(COPY) examples$Scsharp$Ssolution$SProperties$S*.cs temp$S$(INSTALL_DIR)$Sexamples$Scsharp$Ssolution$SProperties
|
2018-02-21 17:26:04 +01:00
|
|
|
-$(COPY) examples$Sfsharp$Slib$S* temp$S$(INSTALL_DIR)$Sexamples$Sfsharp$Slib
|
2018-02-22 16:27:48 +01:00
|
|
|
ifeq ($(SYSTEM),win)
|
2016-12-12 14:36:04 +00:00
|
|
|
$(COPY) examples$Scsharp$SCsharp_examples.sln temp$S$(INSTALL_DIR)$Sexamples$Scsharp
|
2016-07-01 11:24:17 +02:00
|
|
|
$(COPY) examples$Scsharp$Ssolution$S*.csproj temp$S$(INSTALL_DIR)$Sexamples$Scsharp$Ssolution
|
2016-12-12 14:03:13 +01:00
|
|
|
$(COPY) examples$Scsharp$Ssolution$Sapp.config temp$S$(INSTALL_DIR)$Sexamples$Scsharp$Ssolution
|
2016-07-01 11:24:17 +02:00
|
|
|
else
|
2017-04-21 16:41:23 +02:00
|
|
|
$(COPY) lib$Slib$(CLR_ORTOOLS_DLL_NAME).so temp$S$(INSTALL_DIR)$Sbin
|
2016-07-01 11:24:17 +02:00
|
|
|
endif
|
|
|
|
|
|
2018-02-08 01:23:13 -08:00
|
|
|
netstandard_archive: NET_STANDARD_EXAMPLES = $(wildcard examples/csharp/*.cs)
|
|
|
|
|
netstandard_archive: netstandard_example_archive
|
|
|
|
|
$(COPY) bin$S$(NETSTANDARD_ORTOOLS_DLL_NAME).dll temp$S$(INSTALL_DIR)$Sbin$S
|
2018-07-04 12:17:29 +02:00
|
|
|
$(COPY) bin$S$(NETSTANDARD_ORTOOLS_IMPORT_DLL_NAME).$(SWIG_DOTNET_LIB_SUFFIX) temp$S$(INSTALL_DIR)$Sbin$S
|
2018-02-08 01:23:13 -08:00
|
|
|
$(COPY) bin$S$(NETSTANDARD_ORTOOLS_DLL_NAME).$(OR_TOOLS_VERSION).nupkg temp$S$(INSTALL_DIR)$Sbin$S
|
|
|
|
|
$(COPY) tools$SREADME.netstandard temp$S$(INSTALL_DIR)$Sexamples$Snetstandard
|
|
|
|
|
|
2018-02-22 16:27:48 +01:00
|
|
|
netstandard_example_archive:
|
2018-02-08 01:23:13 -08:00
|
|
|
$(foreach file, $(NET_STANDARD_EXAMPLES), $(call netstandard_example_archive_copy,$(file))) :
|
|
|
|
|
|
2018-02-22 16:27:48 +01:00
|
|
|
define netstandard_example_archive_copy
|
2018-02-08 01:23:13 -08:00
|
|
|
$(MKDIR_P) temp$S$(INSTALL_DIR)$Sexamples$Snetstandard$S$(basename $(notdir $(1))) &&\
|
|
|
|
|
$(COPY) tools$Snetstandard$Snuget.config temp$S$(INSTALL_DIR)$Sexamples$Snetstandard$S$(basename $(notdir $(1))) &&\
|
|
|
|
|
$(COPY) tools$Snetstandard$Sexample.csproj temp$S$(INSTALL_DIR)$Sexamples$Snetstandard$S$(basename $(notdir $(1))) &&\
|
|
|
|
|
$(COPY) examples$Scsharp$S$(notdir $(1)) temp$S$(INSTALL_DIR)$Sexamples$Snetstandard$S$(basename $(notdir $(1)))$S &&
|
|
|
|
|
endef
|
|
|
|
|
|
2016-11-02 19:12:40 +01:00
|
|
|
java_archive: java
|
2016-07-01 11:24:17 +02:00
|
|
|
$(COPY) lib$S*.jar temp$S$(INSTALL_DIR)$Slib
|
|
|
|
|
$(COPY) lib$S$(LIB_PREFIX)jni*.$(JNI_LIB_EXT) temp$S$(INSTALL_DIR)$Slib
|
|
|
|
|
$(COPY) examples$Scom$Sgoogle$Sortools$Ssamples$S*.java temp$S$(INSTALL_DIR)$Sexamples$Scom$Sgoogle$Sortools$Ssamples
|
2016-07-03 15:24:34 +02:00
|
|
|
|
2017-01-25 20:29:08 +00:00
|
|
|
TEMP_FZ_DIR = temp_fz
|
2016-11-04 10:43:50 +00:00
|
|
|
fz_archive: cc fz
|
2017-01-25 20:29:08 +00:00
|
|
|
-$(DELREC) $(TEMP_FZ_DIR)
|
|
|
|
|
mkdir $(TEMP_FZ_DIR)
|
|
|
|
|
mkdir $(TEMP_FZ_DIR)$S$(FZ_INSTALL_DIR)
|
|
|
|
|
mkdir $(TEMP_FZ_DIR)$S$(FZ_INSTALL_DIR)$Sbin
|
|
|
|
|
mkdir $(TEMP_FZ_DIR)$S$(FZ_INSTALL_DIR)$Slib
|
|
|
|
|
mkdir $(TEMP_FZ_DIR)$S$(FZ_INSTALL_DIR)$Sshare
|
|
|
|
|
mkdir $(TEMP_FZ_DIR)$S$(FZ_INSTALL_DIR)$Sshare$Sminizinc_cp
|
|
|
|
|
mkdir $(TEMP_FZ_DIR)$S$(FZ_INSTALL_DIR)$Sshare$Sminizinc_sat
|
|
|
|
|
mkdir $(TEMP_FZ_DIR)$S$(FZ_INSTALL_DIR)$Sexamples
|
|
|
|
|
$(COPY) LICENSE-2.0.txt $(TEMP_FZ_DIR)$S$(FZ_INSTALL_DIR)
|
|
|
|
|
$(COPY) bin$Sfz$E $(TEMP_FZ_DIR)$S$(FZ_INSTALL_DIR)$Sbin$Sfzn-or-tools$E
|
2018-05-16 13:28:12 +02:00
|
|
|
$(COPY) $(LIB_DIR)$S$(LIB_PREFIX)ortools.$L $(TEMP_FZ_DIR)$S$(FZ_INSTALL_DIR)$Slib
|
|
|
|
|
$(COPY) $(LIB_DIR)$S$(LIB_PREFIX)fz.$L $(TEMP_FZ_DIR)$S$(FZ_INSTALL_DIR)$Slib
|
2017-05-11 15:01:35 +02:00
|
|
|
$(COPY) ortools$Sflatzinc$Smznlib_cp$S* $(TEMP_FZ_DIR)$S$(FZ_INSTALL_DIR)$Sshare$Sminizinc_cp
|
|
|
|
|
$(COPY) ortools$Sflatzinc$Smznlib_sat$S* $(TEMP_FZ_DIR)$S$(FZ_INSTALL_DIR)$Sshare$Sminizinc_sat
|
2017-01-25 20:29:08 +00:00
|
|
|
$(COPY) examples$Sflatzinc$S* $(TEMP_FZ_DIR)$S$(FZ_INSTALL_DIR)$Sexamples
|
2018-02-22 16:27:48 +01:00
|
|
|
ifeq ($(SYSTEM),win)
|
2017-01-25 20:29:08 +00:00
|
|
|
cd $(TEMP_FZ_DIR) && ..$Stools$Szip.exe -r ..$S$(FZ_INSTALL_DIR).zip $(FZ_INSTALL_DIR)
|
2016-11-04 10:43:50 +00:00
|
|
|
else
|
2016-08-19 15:23:27 +02:00
|
|
|
ifeq ($(PLATFORM),LINUX)
|
2017-01-25 20:29:08 +00:00
|
|
|
$(DEP_BIN_DIR)$Spatchelf --set-rpath '$$ORIGIN/../lib' $(TEMP_FZ_DIR)$S$(FZ_INSTALL_DIR)$Sbin$Sfzn-or-tools
|
2016-08-19 15:23:27 +02:00
|
|
|
endif
|
2016-08-19 14:24:11 +02:00
|
|
|
ifeq ($(PLATFORM),MACOSX)
|
2017-01-25 20:29:08 +00:00
|
|
|
$(COPY) tools$Sfix_fz_libraries_on_mac.sh $(TEMP_FZ_DIR)$S$(FZ_INSTALL_DIR)
|
|
|
|
|
chmod u+x $(TEMP_FZ_DIR)/$(FZ_INSTALL_DIR)$Sfix_fz_libraries_on_mac.sh
|
|
|
|
|
cd $(TEMP_FZ_DIR)$S$(FZ_INSTALL_DIR) && .$Sfix_fz_libraries_on_mac.sh
|
|
|
|
|
$(RM) $(TEMP_FZ_DIR)$S$(FZ_INSTALL_DIR)$Sfix_fz_libraries_on_mac.sh
|
2016-08-19 14:24:11 +02:00
|
|
|
endif
|
2017-01-25 20:29:08 +00:00
|
|
|
cd $(TEMP_FZ_DIR) && tar cvzf ..$S$(FZ_INSTALL_DIR).tar.gz $(FZ_INSTALL_DIR)
|
2016-07-01 11:24:17 +02:00
|
|
|
endif
|
2017-01-25 20:29:08 +00:00
|
|
|
-$(DELREC) $(TEMP_FZ_DIR)
|
2016-07-22 17:43:37 +02:00
|
|
|
|
|
|
|
|
|
2016-07-25 18:37:18 +02:00
|
|
|
test_archive: $(INSTALL_DIR)$(ARCHIVE_EXT)
|
2016-07-22 17:43:37 +02:00
|
|
|
-$(DELREC) temp
|
|
|
|
|
$(MKDIR) temp
|
2016-07-25 17:47:20 +02:00
|
|
|
#this is to make sure the archive tests don't use the root libraries
|
|
|
|
|
$(RENAME) lib lib2
|
2018-02-22 16:27:48 +01:00
|
|
|
ifeq ($(SYSTEM),win)
|
2016-07-22 20:43:23 +02:00
|
|
|
tools$Sunzip.exe $(INSTALL_DIR).zip -d temp
|
2016-07-22 17:43:37 +02:00
|
|
|
else
|
|
|
|
|
tar -x -v -f $(INSTALL_DIR).tar.gz -C temp
|
|
|
|
|
endif
|
2016-09-16 13:37:11 +02:00
|
|
|
cd temp$S$(INSTALL_DIR) && $(MAKE) test && cd ../.. && $(RENAME) lib2 lib && echo "archive test succeeded" || ( cd ../.. && $(RENAME) lib2 lib && echo "archive test failed" && exit 1)
|
2016-08-19 14:24:11 +02:00
|
|
|
|
2018-06-28 11:36:21 +02:00
|
|
|
TEMP_FZ_TEST_DIR = temp_fz_test
|
2016-08-19 14:24:11 +02:00
|
|
|
test_fz_archive: $(FZ_INSTALL_DIR)$(ARCHIVE_EXT)
|
2017-01-25 20:29:08 +00:00
|
|
|
-$(DELREC) $(TEMP_FZ_TEST_DIR)
|
|
|
|
|
$(MKDIR) $(TEMP_FZ_TEST_DIR)
|
2016-08-19 14:24:11 +02:00
|
|
|
#this is to make sure the archive tests don't use the root libraries
|
|
|
|
|
$(RENAME) lib lib2
|
2018-02-22 16:27:48 +01:00
|
|
|
ifeq ($(SYSTEM),win)
|
2017-01-25 20:29:08 +00:00
|
|
|
tools$Sunzip.exe $(FZ_INSTALL_DIR).zip -d $(TEMP_FZ_TEST_DIR)
|
2016-08-19 14:24:11 +02:00
|
|
|
else
|
2017-01-25 20:29:08 +00:00
|
|
|
tar -x -v -f $(FZ_INSTALL_DIR).tar.gz -C $(TEMP_FZ_TEST_DIR)
|
2016-08-19 14:24:11 +02:00
|
|
|
endif
|
2017-01-25 20:29:08 +00:00
|
|
|
cd $(TEMP_FZ_TEST_DIR)$S$(FZ_INSTALL_DIR) && .$Sbin$S$(FZ_EXE) examples$Scircuit_test.fzn && cd ../.. && $(RENAME) lib2 lib && echo "fz archive test succeeded" || ( cd ../.. && $(RENAME) lib2 lib && echo "fz archive test failed" && exit 1)
|
2016-09-16 13:37:11 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
ifeq "$(PYTHON3)" "true"
|
|
|
|
|
build_release: clean python test_python
|
|
|
|
|
pre_release: pypi_archive
|
2016-09-20 15:54:58 +02:00
|
|
|
release: pypi_upload
|
2016-09-16 13:37:11 +02:00
|
|
|
else #platform check
|
|
|
|
|
|
2018-02-22 16:27:48 +01:00
|
|
|
ifeq ($(SYSTEM),win)
|
2016-09-16 13:37:11 +02:00
|
|
|
|
|
|
|
|
ifeq "$(VISUAL_STUDIO_YEAR)" "2013"
|
|
|
|
|
build_release: clean all test
|
|
|
|
|
pre_release: archive test_archive
|
|
|
|
|
release:
|
2016-09-16 14:37:25 +00:00
|
|
|
else
|
|
|
|
|
ifeq "$(VISUAL_STUDIO_YEAR)" "2015"
|
2016-09-16 13:37:11 +02:00
|
|
|
build_release: clean all test fz
|
2018-02-21 17:27:58 +01:00
|
|
|
pre_release: archive test_archive fz_archive test_fz_archive python_examples_archive pypi_archive nuget_archive
|
2016-09-16 14:56:21 +02:00
|
|
|
release: pypi_upload nuget_upload
|
2016-09-16 14:37:25 +00:00
|
|
|
endif #ifeq "$(VISUAL_STUDIO_YEAR)" "2015"
|
2016-09-16 13:37:11 +02:00
|
|
|
|
|
|
|
|
endif # ifeq"$(VISUAL_STUDIO_YEAR)" "2013"
|
2016-09-16 14:37:25 +00:00
|
|
|
|
2016-09-16 13:37:11 +02:00
|
|
|
else # unix
|
|
|
|
|
|
|
|
|
|
ifeq "$(PLATFORM)" "LINUX"
|
|
|
|
|
ifeq "$(DISTRIBUTION_NUMBER)" "14.04"
|
|
|
|
|
build_release: clean all test fz
|
|
|
|
|
pre_release: archive test_archive fz_archive test_fz_archive python_examples_archive pypi_archive
|
|
|
|
|
release: pypi_upload
|
2017-04-21 16:41:23 +02:00
|
|
|
else
|
2016-11-04 03:52:04 -07:00
|
|
|
ifeq "$(DISTRIBUTION_NUMBER)" "16.04"
|
2016-09-20 15:54:58 +02:00
|
|
|
build_release: clean all test fz
|
|
|
|
|
pre_release: archive test_archive fz_archive test_fz_archive
|
2016-09-16 13:37:11 +02:00
|
|
|
release:
|
2016-09-16 14:37:25 +00:00
|
|
|
endif # ifeq "$(DISTRIBUTION_NUMBER)" "16.04"
|
|
|
|
|
endif # ifeq "$(DISTRIBUTION_NUMBER)" "14.04"
|
|
|
|
|
endif # ifeq "$(PLATFORM)" "LINUX"
|
2016-09-16 13:37:11 +02:00
|
|
|
|
|
|
|
|
ifeq "$(PLATFORM)" "MACOSX"
|
|
|
|
|
build_release: clean all test fz
|
|
|
|
|
pre_release: archive test_archive fz_archive test_fz_archive pypi_archive
|
|
|
|
|
release: pypi_upload
|
|
|
|
|
endif #ifeq "$(PLATFORM)" "MACOSX"
|
|
|
|
|
|
2018-02-22 16:27:48 +01:00
|
|
|
endif #ifeq ($(SYSTEM),win)
|
2017-04-21 16:41:23 +02:00
|
|
|
endif #ifeq "$(PYTHON3)" "true"
|