diff options
author | David Tardon <dtardon@redhat.com> | 2012-04-30 17:08:45 +0200 |
---|---|---|
committer | David Tardon <dtardon@redhat.com> | 2012-05-29 07:34:04 +0200 |
commit | 218072e2307c99435a1530bc42a665e46a687347 (patch) | |
tree | b5633d7713ea112f2df58dc93b21f5a3a3f24f8a /solenv | |
parent | f8a75853aacb57d2a10d58a47e8a7dc79bf98353 (diff) |
add gb_WinResTarget_use_custom_headers
Change-Id: Ifce1f75f8de0cd35dd744dfd39af7aefef512ecc
Diffstat (limited to 'solenv')
-rw-r--r-- | solenv/gbuild/WinResTarget.mk | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/solenv/gbuild/WinResTarget.mk b/solenv/gbuild/WinResTarget.mk index 1adff41db44e..c8d53932507c 100644 --- a/solenv/gbuild/WinResTarget.mk +++ b/solenv/gbuild/WinResTarget.mk @@ -54,6 +54,15 @@ endif endef +define gb_WinResTarget__add_include +$(call gb_WinResTarget_get_target,$(1)) : INCLUDE += -I$(2) + +ifeq ($(gb_FULLDEPS),$(true)) +$(call gb_WinResTarget_get_dep_target,$(1)) : INCLUDE += -I$(2) +endif + +endef + define gb_WinResTarget_set_include $(call gb_WinResTarget_get_target,$(1)) : INCLUDE := $(2) @@ -88,4 +97,15 @@ $(foreach dep,$(2),$(call gb_WinResTarget_add_dependency,$(1),$(dep))) endef +define gb_WinResTarget__use_custom_headers +$(call gb_WinResTarget_get_target,$(1)) : $(call gb_CustomTarget_get_target,$(2)) +$(call gb_WinResTarget__add_include,$(1),$(call gb_CustomTarget_get_workdir,$(2))) + +endef + +define gb_WinResTarget_use_custom_headers +$(foreach customtarget,$(2),$(call gb_WinResTarget__use_custom_headers,$(1),$(customtarget))) + +endef + # vim: set noet sw=4 ts=4: |