OP-1900 have path_progress updated correctly for leg_remaining and error_below end...
[librepilot.git] / package / Windows.mk
blob5ded917b6f7023c62e26f72cf72fde7b2eee397e
2 # Windows-specific packaging script
5 ifndef OPENPILOT_IS_COOL
6 $(error Top level Makefile must be used to build this target)
7 endif
9 VERSION_CMD := $(VERSION_INFO)
11 NSIS_OPTS := /V3
12 NSIS_WINX86 := $(ROOT_DIR)/package/winx86
13 NSIS_SCRIPT := $(NSIS_WINX86)/openpilotgcs.nsi
14 NSIS_TEMPLATE := $(NSIS_WINX86)/openpilotgcs.tpl
15 NSIS_HEADER := $(OPGCSSYNTHDIR)/openpilotgcs.nsh
17 .PHONY: package
18 package: openpilotgcs uavobjects_matlab | $(PACKAGE_DIR)
19 ifneq ($(GCS_BUILD_CONF),release)
20 # We can only package release builds
21 $(error Packaging is currently supported for release builds only)
22 endif
23 $(V1) mkdir -p "$(dir $(NSIS_HEADER))"
24 $(VERSION_CMD) \
25 --template='$(NSIS_TEMPLATE)' \
26 --outfile='$(NSIS_HEADER)' \
27 PACKAGE_LBL='$(PACKAGE_LBL)' \
28 PACKAGE_NAME='$(PACKAGE_NAME)' \
29 PACKAGE_SEP='$(PACKAGE_SEP)'
30 $(V1) echo "Building Windows installer, please wait..."
31 $(V1) echo "If you have a script error in line 1 - use Unicode NSIS 2.46+"
32 $(V1) echo " http://www.scratchpaper.com"
33 $(NSIS) $(NSIS_OPTS) $(NSIS_SCRIPT)