Skip to content

Commit

Permalink
bugfix #2903 Addon data copy (#6244)
Browse files Browse the repository at this point in the history
#changelog #makefiles
  • Loading branch information
oxillo authored and arturoc committed Mar 22, 2019
1 parent b3ddff7 commit 9baea23
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 12 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@

PLATFORM/IDE SPECIFIC
-----------------

### makefiles
- makefiles: addon data not being copied(#2903).

ADDONS
------
### ofxOpenCv
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -131,9 +131,6 @@ ifndef ABIS_TO_COMPILE_RELEASE
else
@$(foreach abi,$(ABIS_TO_COMPILE_RELEASE),$(MAKE) ReleaseABI ABI=$(abi) &&) echo
endif
ifneq ($(strip $(PROJECT_ADDONS_DATA)),)
@$(MAKE) copyaddonsdata PROJECT_ADDONS_DATA=$(PROJECT_ADDONS_DATA)
endif



Expand All @@ -148,9 +145,6 @@ ifndef ABIS_TO_COMPILE_DEBUG
else
@$(foreach abi,$(ABIS_TO_COMPILE_DEBUG),$(MAKE) DebugABI ABI=$(abi) &&) echo
endif
ifneq ($(strip $(PROJECT_ADDONS_DATA)),)
@$(MAKE) copyaddonsdata PROJECT_ADDONS_DATA=$(PROJECT_ADDONS_DATA)
endif

ReleaseNoOF:
@echo Compiling $(APPNAME) for Release
Expand All @@ -159,9 +153,6 @@ ifndef ABIS_TO_COMPILE_RELEASE
else
@$(foreach abi,$(ABIS_TO_COMPILE_RELEASE),$(MAKE) ReleaseABI ABI=$(abi) &&) echo
endif
ifneq ($(strip $(PROJECT_ADDONS_DATA)),)
@$(MAKE) copyaddonsdata PROJECT_ADDONS_DATA=$(PROJECT_ADDONS_DATA)
endif

DebugNoOF:
@echo Compiling $(APPNAME) for Debug
Expand All @@ -170,15 +161,18 @@ ifndef ABIS_TO_COMPILE_DEBUG
else
@$(foreach abi,$(ABIS_TO_COMPILE_DEBUG),$(MAKE) DebugABI ABI=$(abi) &&) echo
endif
ifneq ($(strip $(PROJECT_ADDONS_DATA)),)
@$(MAKE) copyaddonsdata PROJECT_ADDONS_DATA=$(PROJECT_ADDONS_DATA)
endif

ReleaseABI: $(TARGET)
ifneq ($(strip $(PROJECT_ADDONS_DATA)),)
@$(MAKE) copyaddonsdata PROJECT_ADDONS_DATA="$(PROJECT_ADDONS_DATA)"
endif
@$(MAKE) afterplatform BIN_NAME=$(BIN_NAME) ABIS_TO_COMPILE="$(ABIS_TO_COMPILE_RELEASE)" RUN_TARGET=$(RUN_TARGET) TARGET=$(TARGET)
@$(PROJECT_AFTER)

DebugABI: $(TARGET)
ifneq ($(strip $(PROJECT_ADDONS_DATA)),)
@$(MAKE) copyaddonsdata PROJECT_ADDONS_DATA="$(PROJECT_ADDONS_DATA)"
endif
@$(MAKE) afterplatform BIN_NAME=$(BIN_NAME) ABIS_TO_COMPILE="$(ABIS_TO_COMPILE_DEBUG)" RUN_TARGET=$(RUN_TARGET) TARGET=$(TARGET)
@$(PROJECT_AFTER)

Expand Down Expand Up @@ -444,6 +438,8 @@ after: $(TARGET_NAME)
@echo

copyaddonsdata:
@echo
@echo "Copying addons data"
@mkdir -p bin/data
@cp -rf $(PROJECT_ADDONS_DATA) bin/data/

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -261,4 +261,6 @@ ifdef MAKEFILE_DEBUG
$(foreach v, $(PROJECT_ADDONS_INCLUDES_CFLAGS),$(info $(v)))
$(info ---PROJECT_ADDONS_LDFLAGS---)
$(foreach v, $(PROJECT_ADDONS_LDFLAGS),$(info $(v)))
$(info ---PROJECT_ADDONS_DATA---)
$(foreach v, $(PROJECT_ADDONS_DATA),$(info $(v)))
endif

0 comments on commit 9baea23

Please sign in to comment.