diff options
author | David Tardon <dtardon@redhat.com> | 2012-12-30 18:13:09 +0100 |
---|---|---|
committer | David Tardon <dtardon@redhat.com> | 2012-12-30 18:22:25 +0100 |
commit | e4cb67b4dabe40fdf8ce703d6739db7863c52fb4 (patch) | |
tree | c1f9d027c4540bf5c6dbfa5803c9fc4d8c15c781 /solenv/gbuild | |
parent | dd4173e9bd4877721b2225975f9d01b1c88c1a9b (diff) |
these functions must be defined early
... because their result is assigned to variables in various gbuild
classes.
Change-Id: I07c0fc54e10ddd76a6246ac4e9ed56541c9c1257
Diffstat (limited to 'solenv/gbuild')
-rw-r--r-- | solenv/gbuild/Executable.mk | 25 | ||||
-rw-r--r-- | solenv/gbuild/TargetLocations.mk | 25 |
2 files changed, 25 insertions, 25 deletions
diff --git a/solenv/gbuild/Executable.mk b/solenv/gbuild/Executable.mk index 4683d0ec4163..403497e8ab5e 100644 --- a/solenv/gbuild/Executable.mk +++ b/solenv/gbuild/Executable.mk @@ -169,29 +169,4 @@ $(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 -define gb_Executable_get_runtime_dependencies -$(call gb_Executable_get_runtime_target,$(1)) -endef - -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: diff --git a/solenv/gbuild/TargetLocations.mk b/solenv/gbuild/TargetLocations.mk index b201fbbb4359..539c0aa42575 100644 --- a/solenv/gbuild/TargetLocations.mk +++ b/solenv/gbuild/TargetLocations.mk @@ -343,6 +343,31 @@ define gb_StaticLibrary_get_filename $(patsubst $(1):%,%,$(filter $(1):%,$(gb_StaticLibrary_FILENAMES))) 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 +define gb_Executable_get_runtime_dependencies +$(call gb_Executable_get_runtime_target,$(1)) +endef + +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 + gb_Executable_get_linktargetname = Executable/$(1)$(gb_Executable_EXT) gb_Library_get_linktargetname = Library/$(call gb_Library_get_filename,$(1)) gb_StaticLibrary_get_linktargetname = StaticLibrary/$(call gb_StaticLibrary_get_filename,$(1)) |