summaryrefslogtreecommitdiff
path: root/solenv
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2012-06-25 12:34:42 +0200
committerMichael Stahl <mstahl@redhat.com>2012-06-25 12:46:17 +0200
commitefb69f7c737f8f8dae876c8d6b7bf3968a40676d (patch)
tree476af657b88cb84eda4f3fad0674717c5aaaccaa /solenv
parentf0de66d9a541505e14261ffac08e021bce6b67ba (diff)
gbuild: add gb_Extension_add_executable
This is not really necessary, but consistent. Change-Id: Ic0249efac26c9977ede7ef591d517cc03542b002
Diffstat (limited to 'solenv')
-rw-r--r--solenv/gbuild/Extension.mk10
1 files changed, 10 insertions, 0 deletions
diff --git a/solenv/gbuild/Extension.mk b/solenv/gbuild/Extension.mk
index a959a8f34eed..86c1366d93a9 100644
--- a/solenv/gbuild/Extension.mk
+++ b/solenv/gbuild/Extension.mk
@@ -166,6 +166,16 @@ define gb_Extension_add_libraries
$(foreach lib,$(2),$(call gb_Extension_add_library,$(1),$(lib)))
endef
+# add an executable from the solver
+define gb_Extension_add_executable
+$(call gb_Extension_add_file,$(1),$(notdir $(call gb_Executable_get_target,$(2))),\
+ $(call gb_Executable_get_target,$(2)))
+endef
+
+define gb_Extension_add_executables
+$(foreach exe,$(2),$(call gb_Extension_add_executable,$(1),$(exe)))
+endef
+
# localize .properties file
# source file is copied to $(WORKDIR)
define gb_Extension_localize_properties