2 # Windows-specific packaging script
5 ifndef TOP_LEVEL_MAKEFILE
6 $(error Top level Makefile must be used to build this target
)
9 PACKAGE_EXE
:= $(BUILD_DIR
)/$(PACKAGE_FULL_NAME
)_
$(ARCH
).exe
12 NSIS_WINX86
:= $(ROOT_DIR
)/package
/winx86
13 NSIS_SCRIPT
:= $(NSIS_WINX86
)/gcs.nsi
20 package
: $(PACKAGE_EXE
)
22 $(PACKAGE_EXE
): $(NSIS_SCRIPT
) gcs uavobjects_matlab |
$(PACKAGE_DIR
)
23 ifneq ($(GCS_BUILD_CONF
),release
)
24 # We can only package release builds
25 $(error Packaging is currently supported for release builds only
)
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
) \
31 -DORG_BIG_NAME
='$(ORG_BIG_NAME)' \
32 -DGCS_BIG_NAME
='$(GCS_BIG_NAME)' \
33 -DGCS_SMALL_NAME
='$(GCS_SMALL_NAME)' \
34 -DPACKAGE_LBL
='$(PACKAGE_LBL)' \
35 -DVERSION_FOUR_NUM
='$(shell $(VERSION_INFO) --format=\$${VERSION_FOUR_NUM})' \
36 -DOUT_FILE
='$(call system_path,$(PACKAGE_EXE))' \
37 -DPROJECT_ROOT
='$(call system_path,$(ROOT_DIR))' \
38 -DGCS_BUILD_TREE
='$(call system_path,$(GCS_DIR))' \
39 -DUAVO_SYNTH_TREE
='$(call system_path,$(UAVOBJ_OUT_DIR))' \