2011-05-13 16:40:28 +02:00
|
|
|
#
|
2013-03-21 22:11:30 +01:00
|
|
|
# Windows-specific packaging script
|
2011-05-13 16:40:28 +02:00
|
|
|
#
|
|
|
|
|
2015-07-13 17:12:10 +02:00
|
|
|
ifndef TOP_LEVEL_MAKEFILE
|
2013-03-21 22:11:30 +01:00
|
|
|
$(error Top level Makefile must be used to build this target)
|
|
|
|
endif
|
|
|
|
|
2015-11-25 11:30:52 +01:00
|
|
|
NSIS_OPTS := -V3
|
2013-05-01 21:44:11 +02:00
|
|
|
NSIS_WINX86 := $(ROOT_DIR)/package/winx86
|
2015-08-04 10:02:05 +02:00
|
|
|
NSIS_SCRIPT := $(NSIS_WINX86)/gcs.nsi
|
2011-05-19 00:05:12 +02:00
|
|
|
|
2013-03-21 22:11:30 +01:00
|
|
|
.PHONY: package
|
2015-08-02 20:20:02 +02:00
|
|
|
package: gcs uavobjects_matlab | $(PACKAGE_DIR)
|
2015-03-17 09:15:44 +01:00
|
|
|
ifneq ($(GCS_BUILD_CONF),release)
|
|
|
|
# We can only package release builds
|
|
|
|
$(error Packaging is currently supported for release builds only)
|
|
|
|
endif
|
2011-05-28 02:14:51 +02:00
|
|
|
$(V1) echo "Building Windows installer, please wait..."
|
|
|
|
$(V1) echo "If you have a script error in line 1 - use Unicode NSIS 2.46+"
|
|
|
|
$(V1) echo " http://www.scratchpaper.com"
|
2015-08-22 22:04:48 +02:00
|
|
|
$(NSIS) $(NSIS_OPTS) \
|
|
|
|
-DORG_BIG_NAME='$(ORG_BIG_NAME)' \
|
|
|
|
-DGCS_BIG_NAME='$(GCS_BIG_NAME)' \
|
|
|
|
-DGCS_SMALL_NAME='$(GCS_SMALL_NAME)' \
|
|
|
|
-DPACKAGE_LBL='$(PACKAGE_LBL)' \
|
|
|
|
-DVERSION_FOUR_NUM='$(shell $(VERSION_INFO) --format=\$${VERSION_FOUR_NUM})' \
|
|
|
|
-DOUT_FILE='$(call system_path,$(PACKAGE_EXE))' \
|
|
|
|
-DPROJECT_ROOT='$(call system_path,$(ROOT_DIR))' \
|
|
|
|
-DGCS_BUILD_TREE='$(call system_path,$(GCS_DIR))' \
|
|
|
|
-DUAVO_SYNTH_TREE='$(call system_path,$(UAVOBJ_OUT_DIR))' \
|
|
|
|
$(NSIS_SCRIPT)
|