Merged in filnet/librepilot/misc_fixes (pull request #484)
[librepilot.git] / package / Darwin.mk
blob38284ed76fe8568f79afd234f52d6542a712a7fe
2 # MacOSX-specific packaging script
5 ifndef TOP_LEVEL_MAKEFILE
6 $(error Top level Makefile must be used to build this target)
7 endif
9 .PHONY: package
10 package: gcs uavobjects_matlab | $(PACKAGE_DIR)
11 ifneq ($(GCS_BUILD_CONF),release)
12 # We can only package release builds
13 $(error Packaging is currently supported for release builds only)
14 endif
15 ( \
16 ROOT_DIR="$(ROOT_DIR)" \
17 BUILD_DIR="$(BUILD_DIR)" \
18 GCS_BIG_NAME="$(GCS_BIG_NAME)" \
19 GCS_SMALL_NAME="$(GCS_SMALL_NAME)" \
20 WIKI_URL_ROOT="${WIKI_URL_ROOT}" \
21 PACKAGE_LBL="$(PACKAGE_LBL)" \
22 PACKAGE_DIR="$(PACKAGE_DIR)" \
23 PACKAGE_NAME="$(PACKAGE_NAME)" \
24 PACKAGE_SEP="$(PACKAGE_SEP)" \
25 QT_DIR="$(QT_SDK_PREFIX)/lib" \
26 "$(ROOT_DIR)/package/osx/package" \