Uncrustify
[librepilot.git] / package / Windows.mk
blob76227d15bd77c02a0c19fa7e59fcadd03cde1679
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:
19 $(V1) mkdir -p "$(dir $(NSIS_HEADER))"
20 $(VERSION_CMD) \
21 --template='$(NSIS_TEMPLATE)' \
22 --outfile='$(NSIS_HEADER)' \
23 PACKAGE_LBL='$(PACKAGE_LBL)' \
24 PACKAGE_NAME='$(PACKAGE_NAME)' \
25 PACKAGE_SEP='$(PACKAGE_SEP)'
26 $(V1) echo "Building Windows installer, please wait..."
27 $(V1) echo "If you have a script error in line 1 - use Unicode NSIS 2.46+"
28 $(V1) echo " http://www.scratchpaper.com"
29 $(NSIS) $(NSIS_OPTS) $(NSIS_SCRIPT)