1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2025-01-18 03:52:11 +01:00

GCS-Generate resources file

This commit is contained in:
PT_Dreamer 2012-10-06 03:02:21 +01:00
parent 4eb485bdde
commit f74b149152

View File

@ -142,6 +142,10 @@ OPFW_CONTENTS := \
opfw_resource:
@echo Generating OPFW resource file $(call toprel, $(BUILD_DIR)/ground/$@)
$(V1) mkdir -p $(BUILD_DIR)/ground/$@
$(V1) mkdir -p $(BUILD_DIR)/ground/$@/build
$(V1) echo '$(OPFW_CONTENTS)' > $(BUILD_DIR)/ground/$@/opfw_resource.qrc
$(V1) $(foreach fw_targ, $(FW_TARGETS), mkdir -p $(BUILD_DIR)/ground/$@/build/$(fw_targ);)
$(V1)$(foreach fw_targ, $(FW_TARGETS), cp $(BUILD_DIR)/$(fw_targ)/$(fw_targ).opfw $(BUILD_DIR)/ground/$@/build/$(fw_targ)/;)
$(V1) rcc -binary $(BUILD_DIR)/ground/$@/opfw_resource.qrc -o $(BUILD_DIR)/ground/$@/opfw_resource.rcc
$(V1) $(RM) -fr $(BUILD_DIR)/ground/$@/build
include $(WHEREAMI)/Makefile.$(PLATFORM)