uncrustification!
[librepilot.git] / package / Windows.mk
blobea474d5c55c6454cc5d3243ebf5b18c8795ceed2
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)
10 FW_DIR := $(PACKAGE_DIR)/firmware
12 NSIS_OPTS := /V3
13 NSIS_WINX86 := $(ROOT_DIR)/package/winx86
14 NSIS_SCRIPT := $(NSIS_WINX86)/openpilotgcs.nsi
15 NSIS_TEMPLATE := $(NSIS_WINX86)/openpilotgcs.tpl
16 NSIS_HEADER := $(OPGCSSYNTHDIR)/openpilotgcs.nsh
18 .PHONY: package
19 package:
20 $(V1) mkdir -p "$(dir $(NSIS_HEADER))"
21 $(VERSION_CMD) \
22 --template='$(NSIS_TEMPLATE)' \
23 --outfile='$(NSIS_HEADER)' \
24 PACKAGE_LBL='$(PACKAGE_LBL)' \
25 PACKAGE_NAME='$(PACKAGE_NAME)' \
26 PACKAGE_SEP='$(PACKAGE_SEP)'
27 $(V1) echo "Building Windows installer, please wait..."
28 $(V1) echo "If you have a script error in line 1 - use Unicode NSIS 2.46+"
29 $(V1) echo " http://www.scratchpaper.com"
30 $(NSIS) $(NSIS_OPTS) $(NSIS_SCRIPT)