summaryrefslogtreecommitdiff
path: root/solenv/gbuild/Helper.mk
diff options
context:
space:
mode:
authorDavid Tardon <dtardon@redhat.com>2012-12-30 12:20:50 +0100
committerDavid Tardon <dtardon@redhat.com>2012-12-30 17:15:48 +0100
commit0d6f8e5c048d3caef43bf26f2ae683224dec6921 (patch)
tree8df46c6ea9777a4a46518b4fab0ab57c2b33dba6 /solenv/gbuild/Helper.mk
parentecc9896c9be9669ec1ea13a99c9aa624356b07aa (diff)
allow setting runtime deps of executables in one place
Change-Id: I325287cba773df848a8797486c149502abae9c9d
Diffstat (limited to 'solenv/gbuild/Helper.mk')
-rw-r--r--solenv/gbuild/Helper.mk10
1 files changed, 9 insertions, 1 deletions
diff --git a/solenv/gbuild/Helper.mk b/solenv/gbuild/Helper.mk
index 9c6b6e91d0e1..c7ffdc6ae398 100644
--- a/solenv/gbuild/Helper.mk
+++ b/solenv/gbuild/Helper.mk
@@ -133,6 +133,14 @@ gb_Jar_KNOWN := $$(foreach group,$$(gb_Jar_VALIDGROUPS),$$(gb_Jar_$$(group)))
endef
+define gb_Helper_process_executable_registrations
+$(foreach group,$(gb_Executable_VALIDGROUPS),\
+ $(foreach executable,$(gb_Executable_$(group)),\
+ $(if $(filter-out undefined,$(origin gb_Executable__register_$(executable))),\
+ $(call gb_Executable__register_$(executable)))))
+
+endef
+
define gb_Helper_register_executables
ifeq ($$(filter $(1),$$(gb_Executable_VALIDGROUPS)),)
$$(eval $$(call gb_Output_error,$(1) is not a valid group for executables. Valid groups are: $$(gb_Executable_VALIDGROUPS)))
@@ -198,7 +206,7 @@ $(foreach def,$(1),$(if $(filter TRUE YES,$($(def))),-D$(def)))
endef
define gb_Helper_execute
-$(gb_Helper_set_ld_path) $(OUTDIR_FOR_BUILD)/bin/$(1)
+$(call gb_Executable_get_command,$(1))
endef
# gb_Helper_OUTDIRLIBDIR is set by the platform to the path the dynamic linker need to use