2011-05-13 16:40:28 +02:00
|
|
|
#
|
|
|
|
# Windows-specific packaging
|
|
|
|
#
|
|
|
|
|
2011-05-19 00:05:12 +02:00
|
|
|
NSIS_CMD := makensis.exe
|
|
|
|
NSIS_OPTS := /V3
|
2011-05-28 02:14:51 +02:00
|
|
|
NSIS_DIR := $(ROOT_DIR)/package/winx86
|
2011-05-19 00:05:12 +02:00
|
|
|
NSIS_SCRIPT := $(NSIS_DIR)/openpilotgcs.nsi
|
|
|
|
NSIS_TEMPLATE := $(NSIS_DIR)/openpilotgcs.tpl
|
2011-05-19 12:08:54 +02:00
|
|
|
NSIS_HEADER := $(BUILD_DIR)/ground/openpilotgcs/openpilotgcs.nsh
|
2011-05-19 00:05:12 +02:00
|
|
|
|
2011-05-28 02:14:51 +02:00
|
|
|
win_package: gcs package_flight
|
|
|
|
$(V1) mkdir -p "$(dir $(NSIS_HEADER))"
|
2012-12-11 02:07:51 +01:00
|
|
|
$(VERSION_CMD) \
|
|
|
|
--template="$(NSIS_TEMPLATE)" \
|
|
|
|
--outfile="$(NSIS_HEADER)" \
|
|
|
|
PACKAGE_LBL="$(PACKAGE_LBL)" \
|
|
|
|
PACKAGE_NAME="$(PACKAGE_NAME)" \
|
|
|
|
PACKAGE_SEP="$(PACKAGE_SEP)"
|
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"
|
2011-05-19 00:05:12 +02:00
|
|
|
$(NSIS_CMD) $(NSIS_OPTS) $(NSIS_SCRIPT)
|
|
|
|
|
2011-05-18 21:22:40 +02:00
|
|
|
gcs: uavobjects
|
2011-05-13 16:40:28 +02:00
|
|
|
$(V1) $(MAKE) -C $(ROOT_DIR) GCS_BUILD_CONF=release $@
|
|
|
|
|
2011-05-28 02:14:51 +02:00
|
|
|
ground_package: | win_package
|
2011-05-13 16:40:28 +02:00
|
|
|
|
2011-05-28 02:14:51 +02:00
|
|
|
.PHONY: gcs ground_package win_package
|