aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorRechi <Rechi@users.noreply.github.com>2018-10-13 09:00:00 +0200
committerRechi <Rechi@users.noreply.github.com>2018-10-13 09:00:00 +0200
commitf48df3ada5adbcf69903901ec106dbbfc7b88a7c (patch)
tree09147ac224f8887e44d6225391107a3d05581975 /tools
parenta40b754f006e37d98886328626e1ea4ab1e03450 (diff)
depends] binary-addons: add ADDONS_DEFINITION_DIR & EXTRA_CMAKE_ARGS support
Diffstat (limited to 'tools')
-rw-r--r--tools/depends/xbmc-addons.include12
1 files changed, 10 insertions, 2 deletions
diff --git a/tools/depends/xbmc-addons.include b/tools/depends/xbmc-addons.include
index 8818808766..871d540efa 100644
--- a/tools/depends/xbmc-addons.include
+++ b/tools/depends/xbmc-addons.include
@@ -37,7 +37,15 @@ ifneq ($(TARBALLS_LOCATION),)
endif
ifneq ($(ADDON_SRC_PREFIX),)
- SRC_OVERRIDE = -DADDON_SRC_PREFIX=$(ADDON_SRC_PREFIX)
+ CMAKE_EXTRA += -DADDON_SRC_PREFIX=$(ADDON_SRC_PREFIX)
+endif
+
+ifneq ($(ADDONS_DEFINITION_DIR),)
+ CMAKE_EXTRA += -DADDONS_DEFINITION_DIR=$(ADDONS_DEFINITION_DIR)
+endif
+
+ifneq ($(EXTRA_CMAKE_ARGS),)
+ CMAKE_EXTRA += $(EXTRA_CMAKE_ARGS)
endif
ifeq ($(PACKAGE),1)
@@ -67,7 +75,7 @@ ifeq ($(CROSS_COMPILING),yes)
endif
cd $(PLATFORM); \
$(CMAKE) -DCMAKE_INSTALL_PREFIX=$(INSTALL_PREFIX) $(CMAKE_EXTRA) \
- $(TOOLCHAIN) $(SRC_OVERRIDE) \
+ $(TOOLCHAIN) \
-DADDONS_TO_BUILD="$(ADDONS)" $(ADDON_PROJECT_DIR) -DBUILD_DIR=$(BUILDDIR)/$(PLATFORM)/build ;\
for addon in $$($(MAKE) supported_addons | awk '/^ALL_ADDONS_BUILDING: .*$$/ { first = $$1; $$1 = ""; print $$0 }'); do \
$(MAKE) $(MAKE_PACKAGE)$$addon && echo $$addon >> $(ADDON_PROJECT_DIR)/.success || echo $$addon >> $(ADDON_PROJECT_DIR)/.failure ;\