2 # Windows-specific packaging script
5 ifndef OPENPILOT_IS_COOL
6 $(error Top level Makefile must be used to build this target
)
9 VERSION_CMD
:= $(VERSION_INFO
)
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
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
)
23 $(V1
) mkdir
-p
"$(dir $(NSIS_HEADER))"
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
)