diff options
author | David Tardon <dtardon@redhat.com> | 2012-04-30 14:53:11 +0200 |
---|---|---|
committer | David Tardon <dtardon@redhat.com> | 2012-05-29 07:33:59 +0200 |
commit | 7d6eb69950df97a12fc723bada1eb7c1839740ca (patch) | |
tree | 2a0c5971a0df8722aeeb14473fabb18f6bdf4992 /solenv/gbuild/WinResTarget.mk | |
parent | set all kde4 libs in configure (diff) | |
download | core-7d6eb69950df97a12fc723bada1eb7c1839740ca.tar.gz core-7d6eb69950df97a12fc723bada1eb7c1839740ca.zip |
rename functions for consistency with the rest of gbuild
Change-Id: I572a8a6dc9da4f63b7c937748b3013bab60bb6bb
Diffstat (limited to 'solenv/gbuild/WinResTarget.mk')
-rw-r--r-- | solenv/gbuild/WinResTarget.mk | 25 |
1 files changed, 19 insertions, 6 deletions
diff --git a/solenv/gbuild/WinResTarget.mk b/solenv/gbuild/WinResTarget.mk index b3c5b68126bc..97050236a8ea 100644 --- a/solenv/gbuild/WinResTarget.mk +++ b/solenv/gbuild/WinResTarget.mk @@ -43,8 +43,12 @@ $(call gb_WinResTarget_get_clean_target,%) : rm -f $(call gb_WinResTarget_get_target,$*)) define gb_WinResTarget_set_defs -$(call gb_WinResTarget_get_target,$(1)) : DEFS := $(2) -$(call gb_WinResTarget_get_dep_target,$(1)) : DEFS := $(2) +$$(call gb_Output_error,gb_WinResTarget_set_defs: use gb_WinResTarget_add_defs instead.) +endef + +define gb_WinResTarget_add_defs +$(call gb_WinResTarget_get_target,$(1)) : DEFS += $(2) +$(call gb_WinResTarget_get_dep_target,$(1)) : DEFS += $(2) endef @@ -54,14 +58,23 @@ $(call gb_WinResTarget_get_target,$(1)) : INCLUDE := $(2) endef define gb_WinResTarget_add_file -$(call gb_WinResTarget_get_clean_target,$(1)) : RCFILE=$(SRCDIR)/$(strip $(2)).rc -$(call gb_WinResTarget_get_target,$(1)) : RCFILE=$(SRCDIR)/$(strip $(2)).rc -$(call gb_WinResTarget_get_target,$(1)) : $(SRCDIR)/$(strip $(2)).rc +$$(call gb_Output_error,gb_WinResTarget_add_file: use gb_WinResTarget_set_rcfile instead.) +endef + +define gb_WinResTarget_set_rcfile +$(call gb_WinResTarget_get_clean_target,$(1)) : RCFILE := $(SRCDIR)/$(strip $(2)).rc +$(call gb_WinResTarget_get_target,$(1)) : RCFILE := $(SRCDIR)/$(strip $(2)).rc +$(call gb_WinResTarget_get_target,$(1)) : $$(RCFILE) endef define gb_WinResTarget_add_dependency -$(call gb_WinResTarget_get_target,$(1)) : $(foreach file,$(2),$(SRCDIR)/$(file)) +$(call gb_WinResTarget_get_target,$(1)) : $(SRCDIR)/$(strip $(2)) + +endef + +define gb_WinResTarget_add_dependencies +$(foreach dep,$(2),$(call gb_WinResTarget_add_dependency,$(1),$(dep))) endef |