Debian Codegraph @

solenv/gbuild/UnoApi.mk

raw symbols SCIP
1 # -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
2 #
3 # This file is part of the LibreOffice project.
4 #
5 # This Source Code Form is subject to the terms of the Mozilla Public
6 # License, v. 2.0. If a copy of the MPL was not distributed with this
7 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 #
9
10 .PHONY : $(call gb_UnoApi_get_clean_target,%)
11 $(call gb_UnoApi_get_clean_target,%) :
12 $(call gb_Helper_abbreviate_dirs,\
13 rm -f $(call gb_UnoApi_get_target,$*))
14
15 # call gb_UnoApi_UnoApi,api
16 define gb_UnoApi_UnoApi
17 $(call gb_UnoApiTarget_UnoApiTarget,$(1),$(1))
18 $(call gb_UnoApiHeadersTarget_UnoApiHeadersTarget,$(1))
19
20 $(call gb_UnoApi_get_target,$(1)) :| $(dir $(call gb_UnoApi_get_target,$(1))).dir
21 $(call gb_UnoApi_get_target,$(1)) : $(call gb_UnoApiTarget_get_target,$(1))
22 $(call gb_UnoApi_get_target,$(1)) :| $(call gb_UnoApiHeadersTarget_get_target,$(1))
23 $(call gb_UnoApi_get_clean_target,$(1)) : $(call gb_UnoApiTarget_get_clean_target,$(1))
24 $(call gb_UnoApi_get_clean_target,$(1)) : $(call gb_UnoApiHeadersTarget_get_clean_target,$(1))
25
26 $(call gb_Deliver_add_deliverable,$(call gb_UnoApi_get_target,$(1)),$(call gb_UnoApiTarget_get_target,$(1)),$(1))
27
28 $$(eval $$(call gb_Module_register_target,$(call gb_UnoApi_get_target,$(1)),$(call gb_UnoApi_get_clean_target,$(1))))
29 $(call gb_Helper_make_userfriendly_targets,$(1),UnoApi)
30
31 endef
32
33 # For enum types, plain struct types, polymorphic struct type templates,
34 # exception types, interface types, typedefs, and constant groups:
35 define gb_UnoApi_add_idlfiles
36 $(call gb_UnoApiTarget_add_idlfiles,$(1),$(2),$(3))
37 $(call gb_UnoApiHeadersTarget_add_headerfiles,$(1),$(2),$(addsuffix .hpp,$(3)))
38 $(call gb_UnoApiHeadersTarget_add_headerfiles,$(1),$(2),$(addsuffix .hdl,$(3)))
39
40 endef
41
42 # For single-interface--based services and interface-based singletons:
43 define gb_UnoApi_add_idlfiles_nohdl
44 $(call gb_UnoApiTarget_add_idlfiles,$(1),$(2),$(3))
45 $(call gb_UnoApiHeadersTarget_add_headerfiles,$(1),$(2),$(addsuffix .hpp,$(3)))
46
47 endef
48
49 # For accumulation-based services and service-based singletons:
50 define gb_UnoApi_add_idlfiles_noheader
51 $(call gb_UnoApiTarget_add_idlfiles,$(1),$(2),$(3))
52
53 endef
54
55 define gb_UnoApi__use_api
56 $(call gb_UnoApiTarget_use_api,$(1),$(2))
57 $(call gb_UnoApiHeadersTarget_use_api,$(1),$(2))
58 $(call gb_UnoApi_get_target,$(1)) :| $(call gb_UnoApi_get_target,$(2))
59
60 endef
61
62 define gb_UnoApi_use_api
63 $(foreach rdb,$(2),$(call gb_UnoApi__use_api,$(1),$(rdb)))
64
65 endef
66
67 define gb_UnoApi_set_reference_rdbfile
68 $(call gb_UnoApiTarget_set_reference_rdbfile,$(1),$(2))
69
70 endef
71
72 # vim: set noet sw=4 ts=4: