Kaydet (Commit) 3c68b623 authored tarafından David Tardon's avatar David Tardon

add gb_ExternalProject_use_package(s)

There needs to be a way to depend on the output of other external
packages.

Change-Id: Ic0f200b6d6b6c0968a28434ba96f1a2f1efa527e
üst 232969d1
...@@ -109,4 +109,23 @@ $(call gb_ExternalProject_get_preparation_target,$(1)) : $(call gb_ExternalProje ...@@ -109,4 +109,23 @@ $(call gb_ExternalProject_get_preparation_target,$(1)) : $(call gb_ExternalProje
endef endef
# Make an external project depend on a package
#
# This is most useful for depending on output files created by another
# ExternalProject.
#
# gb_ExternalProject_use_package external package
define gb_ExternalProject_use_package
$(call gb_ExternalProject_get_preparation_target,$(1)) : $(call gb_Package_get_target,$(2))
endef
# Make an external project depend on several packages at once
#
# gb_ExternalProject_use_packages external package(s)
define gb_ExternalProject_use_packages
$(foreach package,$(2),$(call gb_ExternalProject_use_package,$(1),$(package)))
endef
# vim: set noet sw=4 ts=4: # vim: set noet sw=4 ts=4:
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment