diff options
author | David Tardon <dtardon@redhat.com> | 2012-12-31 12:22:04 +0100 |
---|---|---|
committer | David Tardon <dtardon@redhat.com> | 2012-12-31 12:26:31 +0100 |
commit | ee18b30b0391a443a51d7b97060f118478c202af (patch) | |
tree | 921bb9985ae89646b4b38f5920c33439feab5911 /solenv/gbuild/Executable.mk | |
parent | 877113907606df20d465eee9b698c86d2299de18 (diff) |
move gb_Executable_get_command back into Executable.mk
Change-Id: Ia556cbfda5c5c3d9e1b2b7b1f488b079ce420367
Diffstat (limited to 'solenv/gbuild/Executable.mk')
-rw-r--r-- | solenv/gbuild/Executable.mk | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/solenv/gbuild/Executable.mk b/solenv/gbuild/Executable.mk index 403497e8ab5e..b0dc59d16cac 100644 --- a/solenv/gbuild/Executable.mk +++ b/solenv/gbuild/Executable.mk @@ -169,4 +169,34 @@ $(call gb_Executable_get_runtime_target,$(1)) : $(2) endef +# Get dependencies needed for running the executable +# +# This is not strictly necessary, but it makes the use more similar to +# ExternalExecutable. +# +# gb_Executable_get_runtime_dependencies executable +ifeq ($(CROSS_COMPILING),YES) +define gb_Executable_get_runtime_dependencies +endef +else +define gb_Executable_get_runtime_dependencies +$(call gb_Executable_get_runtime_target,$(1)) +endef +endif + +define gb_Executable__get_command +$(if $(filter NONE,$(gb_Executable_VALIDGROUPS)),,$(call gb_Output_error,executable group NONE does not exist!)) +$(if $(filter $(1),$(gb_Executable_NONE)),,$(gb_Helper_set_ld_path)) \ +$(call gb_Executable_get_target_for_build,$(1)) +endef + +# Get complete command-line for running the executable +# +# This includes setting library path, if necessary. +# +# gb_Executable_get_command executable +define gb_Executable_get_command +$(strip $(call gb_Executable__get_command,$(1))) +endef + # vim: set noet sw=4: |