mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2024-12-01 09:24:10 +01:00
GCS-Added fw bundle resource to the uploader plugin
This commit is contained in:
parent
ce338fdf4f
commit
4e4ed172c1
@ -45,3 +45,6 @@ FORMS += \
|
|||||||
|
|
||||||
RESOURCES += \
|
RESOURCES += \
|
||||||
uploader.qrc
|
uploader.qrc
|
||||||
|
exists( ../../../../build/ground/opfw_resource/opfw_resource.qrc ) {
|
||||||
|
\ ../../../../build/ground/opfw_resource/opfw_resource.qrc
|
||||||
|
}
|
||||||
|
@ -141,11 +141,9 @@ OPFW_CONTENTS := \
|
|||||||
.PHONY: opfw_resource
|
.PHONY: opfw_resource
|
||||||
opfw_resource:
|
opfw_resource:
|
||||||
@echo Generating OPFW resource file $(call toprel, $(BUILD_DIR)/ground/$@)
|
@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) mkdir -p $(BUILD_DIR)/ground/$@/build
|
||||||
$(V1) echo '$(OPFW_CONTENTS)' > $(BUILD_DIR)/ground/$@/opfw_resource.qrc
|
$(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), 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)$(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)
|
include $(WHEREAMI)/Makefile.$(PLATFORM)
|
||||||
|
Loading…
Reference in New Issue
Block a user