1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2024-11-29 07:24:13 +01:00

GCS-Added fw bundle resource to the uploader plugin

This commit is contained in:
PT_Dreamer 2012-10-06 19:46:33 +01:00
parent ce338fdf4f
commit 4e4ed172c1
2 changed files with 7 additions and 6 deletions

View File

@ -45,3 +45,6 @@ FORMS += \
RESOURCES += \
uploader.qrc
exists( ../../../../build/ground/opfw_resource/opfw_resource.qrc ) {
\ ../../../../build/ground/opfw_resource/opfw_resource.qrc
}

View File

@ -141,11 +141,9 @@ OPFW_CONTENTS := \
.PHONY: opfw_resource
opfw_resource:
@echo Generating OPFW resource file $(call toprel, $(BUILD_DIR)/ground/$@)
$(V1) mkdir -p $(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
$(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)/;)
include $(WHEREAMI)/Makefile.$(PLATFORM)