gbuild: UnoApiTarget: refactor to one idlc call per directory
This commit is contained in:
parent
101791f57c
commit
140d990b43
1 changed files with 20 additions and 21 deletions
|
@ -62,9 +62,14 @@ gb_UnoApiTarget_IDLFILES_$(1) :=
|
||||||
|
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define gb_UnoApiTarget_add_idlfiles
|
define gb_UnoApiTarget__add_idlfile
|
||||||
$(foreach idl,$(3),$(call gb_UnoApiTarget_add_idlfile,$(1),$(2),$(idl)))
|
$(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_UnoApiTarget_get_target,$(1)) : \
|
||||||
$(call gb_UnoApiPartTarget_get_target,$(2)/idl.done)
|
$(call gb_UnoApiPartTarget_get_target,$(2)/idl.done)
|
||||||
$(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
|
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
|
# for interfaces, exceptions, structs, enums, constant groups
|
||||||
define gb_UnoApiTarget_add_idlfile
|
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_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_header_target,$(2)/$(3).hpp) :| \
|
||||||
$(call gb_UnoApiTarget_get_target,$(1))
|
$(call gb_UnoApiTarget_get_target,$(1))
|
||||||
$(call gb_UnoApiTarget_get_header_target,$(2)/$(3).hdl) :| \
|
$(call gb_UnoApiTarget_get_header_target,$(2)/$(3).hdl) :| \
|
||||||
$(call gb_UnoApiTarget_get_target,$(1))
|
$(call gb_UnoApiTarget_get_target,$(1))
|
||||||
|
|
||||||
|
$(call gb_UnoApiTarget__add_idlfile,$(1),$(2),$(3))
|
||||||
|
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define gb_UnoApiTarget_add_idlfiles_noheader
|
define gb_UnoApiTarget_add_idlfiles_noheader
|
||||||
$(foreach idl,$(3),$(call gb_UnoApiTarget_add_idlfile_noheader,$(1),$(2),$(idl)))
|
$(foreach idl,$(3),$(call gb_UnoApiTarget_add_idlfile_noheader,$(1),$(2),$(idl)))
|
||||||
|
$(call gb_UnoApiTarget__add_idlfiles,$(1),$(2),$(3))
|
||||||
$(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)
|
|
||||||
|
|
||||||
endef
|
endef
|
||||||
|
|
||||||
# for old-style services and modules
|
# for old-style services and modules
|
||||||
define gb_UnoApiTarget_add_idlfile_noheader
|
define gb_UnoApiTarget_add_idlfile_noheader
|
||||||
$(call gb_UnoApiPartTarget_get_target,$(2)/idl_noheader.done) : \
|
$(call gb_UnoApiTarget__add_idlfile,$(1),$(2),$(3))
|
||||||
$(call gb_UnoApiPartTarget_get_target,$(2)/$(3).urd)
|
|
||||||
gb_UnoApiTarget_IDLFILES_$(1) += $(2)/$(3).idl
|
|
||||||
|
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define gb_UnoApiTarget_add_idlfiles_nohdl
|
define gb_UnoApiTarget_add_idlfiles_nohdl
|
||||||
$(foreach idl,$(3),$(call gb_UnoApiTarget_add_idlfile_nohdl,$(1),$(2),$(idl)))
|
$(foreach idl,$(3),$(call gb_UnoApiTarget_add_idlfile_nohdl,$(1),$(2),$(idl)))
|
||||||
|
$(call gb_UnoApiTarget__add_idlfiles,$(1),$(2),$(3))
|
||||||
$(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)
|
|
||||||
|
|
||||||
endef
|
endef
|
||||||
|
|
||||||
# for new-style services
|
# for new-style services
|
||||||
define gb_UnoApiTarget_add_idlfile_nohdl
|
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_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_header_target,$(2)/$(3).hpp) :| \
|
||||||
$(call gb_UnoApiTarget_get_target,$(1))
|
$(call gb_UnoApiTarget_get_target,$(1))
|
||||||
|
|
||||||
|
$(call gb_UnoApiTarget__add_idlfile,$(1),$(2),$(3))
|
||||||
|
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define gb_UnoApiTarget_add_rdbfiles
|
define gb_UnoApiTarget_add_rdbfiles
|
||||||
|
|
Loading…
Reference in a new issue