diff options
author | David Tardon <dtardon@redhat.com> | 2012-06-03 12:10:20 +0200 |
---|---|---|
committer | David Tardon <dtardon@redhat.com> | 2012-06-03 12:43:52 +0200 |
commit | 38b32390cd39c9179f1fb36f2523a2343e69646d (patch) | |
tree | 03240168ce3f551fdaaec6b8e0a25c8bdb28805c /solenv | |
parent | 98e2ca5e850f824a889e61764fbbd0824b2c5857 (diff) |
use API headers from OUTDIR
Change-Id: I77a647d7f24efa9159a85d0085e0306a8019e3da
Diffstat (limited to 'solenv')
-rw-r--r-- | solenv/gbuild/LinkTarget.mk | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/solenv/gbuild/LinkTarget.mk b/solenv/gbuild/LinkTarget.mk index 1854aa4eb506..e4185a03ed47 100644 --- a/solenv/gbuild/LinkTarget.mk +++ b/solenv/gbuild/LinkTarget.mk @@ -630,8 +630,15 @@ $$(call gb_Output_error,\ gb_LinkTarget_add_api: use gb_LinkTarget_use_api instead.) endef +define gb_LinkTarget__use_api +$(call gb_LinkTarget_get_target,$(1)) :| $(call gb_UnoApi_get_target,$(2)) +$(call gb_LinkTarget_use_package,$(1),$(2)_inc) +$(call gb_LinkTarget__add_include,$(1),$(OUTDIR)/inc/$(2)) + +endef + define gb_LinkTarget_use_api -$(foreach api,$(2),$(call gb_LinkTarget__use_internal_api_one,$(1),$(api))) +$(foreach api,$(2),$(call gb_LinkTarget__use_api,$(1),$(api))) endef |