diff options
author | Michael Stahl <mstahl@redhat.com> | 2012-01-14 21:16:50 +0100 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2012-01-14 21:22:13 +0100 |
commit | 140d990b434de980f4f1e97d3e0d647231202183 (patch) | |
tree | b739929bb4d761762074d68ece0455e68ef13817 /solenv | |
parent | 101791f57c7f1b6f5feae751b77641a9d5f2187a (diff) |
gbuild: UnoApiTarget: refactor to one idlc call per directory
Diffstat (limited to 'solenv')
-rw-r--r-- | solenv/gbuild/UnoApiTarget.mk | 41 |
1 files changed, 20 insertions, 21 deletions
diff --git a/solenv/gbuild/UnoApiTarget.mk b/solenv/gbuild/UnoApiTarget.mk index 4d0f7e2372e0..0a324989d12e 100644 --- a/solenv/gbuild/UnoApiTarget.mk +++ b/solenv/gbuild/UnoApiTarget.mk @@ -62,9 +62,14 @@ gb_UnoApiTarget_IDLFILES_$(1) := endef -define gb_UnoApiTarget_add_idlfiles -$(foreach idl,$(3),$(call gb_UnoApiTarget_add_idlfile,$(1),$(2),$(idl))) +define gb_UnoApiTarget__add_idlfile +$(call gb_UnoApiPartTarget_get_target,$(2)/idl.done) : \ + $(call gb_UnoApiPartTarget_get_target,$(2)/$(3).urd) +gb_UnoApiTarget_IDLFILES_$(1) += $(2)/$(3).idl + +endef +define gb_UnoApiTarget__add_idlfiles $(call gb_UnoApiTarget_get_target,$(1)) : \ $(call gb_UnoApiPartTarget_get_target,$(2)/idl.done) $(call gb_UnoApiPartTarget_get_target,$(2)/idl.done) : \ @@ -72,58 +77,52 @@ $(call gb_UnoApiPartTarget_get_target,$(2)/idl.done) : \ endef +define gb_UnoApiTarget_add_idlfiles +$(foreach idl,$(3),$(call gb_UnoApiTarget_add_idlfile,$(1),$(2),$(idl))) +$(call gb_UnoApiTarget__add_idlfiles,$(1),$(2),$(3)) + +endef + # for interfaces, exceptions, structs, enums, constant groups define gb_UnoApiTarget_add_idlfile -$(call gb_UnoApiPartTarget_get_target,$(2)/idl.done) : \ - $(call gb_UnoApiPartTarget_get_target,$(2)/$(3).urd) gb_UnoApiTarget_HPPFILES_$(1) += $(2)/$(3).hdl $(2)/$(3).hpp -gb_UnoApiTarget_IDLFILES_$(1) += $(2)/$(3).idl $(call gb_UnoApiTarget_get_header_target,$(2)/$(3).hpp) :| \ $(call gb_UnoApiTarget_get_target,$(1)) $(call gb_UnoApiTarget_get_header_target,$(2)/$(3).hdl) :| \ $(call gb_UnoApiTarget_get_target,$(1)) +$(call gb_UnoApiTarget__add_idlfile,$(1),$(2),$(3)) + endef define gb_UnoApiTarget_add_idlfiles_noheader $(foreach idl,$(3),$(call gb_UnoApiTarget_add_idlfile_noheader,$(1),$(2),$(idl))) - -$(call gb_UnoApiTarget_get_target,$(1)) : \ - $(call gb_UnoApiPartTarget_get_target,$(2)/idl_noheader.done) -$(call gb_UnoApiPartTarget_get_target,$(2)/idl_noheader.done) : \ - $(foreach idl,$(3),$(SRCDIR)/$(2)/$(idl).idl) +$(call gb_UnoApiTarget__add_idlfiles,$(1),$(2),$(3)) endef # for old-style services and modules define gb_UnoApiTarget_add_idlfile_noheader -$(call gb_UnoApiPartTarget_get_target,$(2)/idl_noheader.done) : \ - $(call gb_UnoApiPartTarget_get_target,$(2)/$(3).urd) -gb_UnoApiTarget_IDLFILES_$(1) += $(2)/$(3).idl +$(call gb_UnoApiTarget__add_idlfile,$(1),$(2),$(3)) endef define gb_UnoApiTarget_add_idlfiles_nohdl $(foreach idl,$(3),$(call gb_UnoApiTarget_add_idlfile_nohdl,$(1),$(2),$(idl))) - -$(call gb_UnoApiTarget_get_target,$(1)) : \ - $(call gb_UnoApiPartTarget_get_target,$(2)/idl_nohdl.done) -$(call gb_UnoApiPartTarget_get_target,$(2)/idl_nohdl.done) : \ - $(foreach idl,$(3),$(SRCDIR)/$(2)/$(idl).idl) +$(call gb_UnoApiTarget__add_idlfiles,$(1),$(2),$(3)) endef # for new-style services define gb_UnoApiTarget_add_idlfile_nohdl -$(call gb_UnoApiPartTarget_get_target,$(2)/idl_nohdl.done) : \ - $(call gb_UnoApiPartTarget_get_target,$(2)/$(3).urd) gb_UnoApiTarget_HPPFILES_$(1) += $(2)/$(3).hpp -gb_UnoApiTarget_IDLFILES_$(1) += $(2)/$(3).idl $(call gb_UnoApiTarget_get_header_target,$(2)/$(3).hpp) :| \ $(call gb_UnoApiTarget_get_target,$(1)) +$(call gb_UnoApiTarget__add_idlfile,$(1),$(2),$(3)) + endef define gb_UnoApiTarget_add_rdbfiles |