mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2024-11-29 07:24:13 +01:00
c14cacb043
and associated pro file. Change-Id: Icc200217f2db27635c7aa2e5b182f9b273925647
37 lines
1.1 KiB
Makefile
37 lines
1.1 KiB
Makefile
#
|
|
# Windows-specific packaging script
|
|
#
|
|
|
|
ifndef TOP_LEVEL_MAKEFILE
|
|
$(error Top level Makefile must be used to build this target)
|
|
endif
|
|
|
|
VERSION_CMD := $(VERSION_INFO)
|
|
|
|
NSIS_OPTS := /V3
|
|
NSIS_WINX86 := $(ROOT_DIR)/package/winx86
|
|
NSIS_SCRIPT := $(NSIS_WINX86)/openpilotgcs.nsi
|
|
NSIS_TEMPLATE := $(NSIS_WINX86)/openpilotgcs.tpl
|
|
NSIS_HEADER := $(OPGCSSYNTHDIR)/openpilotgcs.nsh
|
|
|
|
.PHONY: package
|
|
package: gcs uavobjects_matlab | $(PACKAGE_DIR)
|
|
ifneq ($(GCS_BUILD_CONF),release)
|
|
# We can only package release builds
|
|
$(error Packaging is currently supported for release builds only)
|
|
endif
|
|
$(V1) mkdir -p "$(dir $(NSIS_HEADER))"
|
|
$(VERSION_CMD) \
|
|
--template='$(NSIS_TEMPLATE)' \
|
|
--outfile='$(NSIS_HEADER)' \
|
|
ORG_BIG_NAME='$(ORG_BIG_NAME)' \
|
|
GCS_BIG_NAME='$(GCS_BIG_NAME)' \
|
|
GCS_SMALL_NAME='$(GCS_SMALL_NAME)' \
|
|
PACKAGE_LBL='$(PACKAGE_LBL)' \
|
|
PACKAGE_NAME='$(PACKAGE_NAME)' \
|
|
PACKAGE_SEP='$(PACKAGE_SEP)'
|
|
$(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"
|
|
$(NSIS) $(NSIS_OPTS) $(NSIS_SCRIPT)
|