Bump for 3.6-28
[LibreOffice.git] / solenv / gbuild / UnoApiMerge.mk
blob3ce9ad55f8c2d73ef4b533080bbbb91d32e951fa
1 # -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
2 # Version: MPL 1.1 / GPLv3+ / LGPLv3+
4 # The contents of this file are subject to the Mozilla Public License Version
5 # 1.1 (the "License"); you may not use this file except in compliance with
6 # the License or as specified alternatively below. You may obtain a copy of
7 # the License at http://www.mozilla.org/MPL/
9 # Software distributed under the License is distributed on an "AS IS" basis,
10 # WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
11 # for the specific language governing rights and limitations under the
12 # License.
14 # Major Contributor(s):
15 # Copyright (C) 2012 Red Hat, Inc., David Tardon <dtardon@redhat.com>
16 # (initial developer)
18 # All Rights Reserved.
20 # For minor contributions see the git repository.
22 # Alternatively, the contents of this file may be used under the terms of
23 # either the GNU General Public License Version 3 or later (the "GPLv3+"), or
24 # the GNU Lesser General Public License Version 3 or later (the "LGPLv3+"),
25 # in which case the provisions of the GPLv3+ or the LGPLv3+ are applicable
26 # instead of those above.
28 # Note: targets for this class are the same as for UnoApi, therefore
29 # there is no need to define them again (and if we did, they would
30 # overwrite the UnoApi targets anyway...)
32 define gb_UnoApiMerge_UnoApiMerge
33 $(call gb_UnoApiTarget_UnoApiTarget,$(1))
35 $(call gb_UnoApiTarget_set_root,$(1),/)
37 $(call gb_UnoApiMerge_get_target,$(1)) :| $(dir $(call gb_UnoApiMerge_get_target,$(1))).dir
38 $(call gb_UnoApiMerge_get_target,$(1)) : $(call gb_UnoApiTarget_get_target,$(1))
39 $(call gb_UnoApiMerge_get_clean_target,$(1)) : $(call gb_UnoApiTarget_get_clean_target,$(1))
41 $(call gb_Deliver_add_deliverable,$(call gb_UnoApiMerge_get_target,$(1)),$(call gb_UnoApiTarget_get_target,$(1)),$(1))
43 $$(eval $$(call gb_Module_register_target,$(call gb_UnoApiMerge_get_target,$(1)),$(call gb_UnoApiMerge_get_clean_target,$(1))))
45 endef
47 define gb_UnoApiMerge_add_rdbfile
48 $$(call gb_Output_error,gb_UnoApiMerge_add_rdbfile: use gb_UnoApiMerge_use_api instead.)
49 endef
51 define gb_UnoApiMerge__use_api
52 $(call gb_UnoApiTarget_merge_api,$(1),$(2))
54 endef
56 define gb_UnoApiMerge_add_rdbfiles
57 $$(call gb_Output_error,gb_UnoApiMerge_add_rdbfiles: use gb_UnoApiMerge_use_api instead.)
58 endef
60 define gb_UnoApiMerge_use_api
61 $(foreach rdb,$(2),$(call gb_UnoApiMerge__use_api,$(1),$(rdb)))
63 endef
65 define gb_UnoApiMerge_add_reference_rdbfile
66 $$(call gb_Output_error,gb_UnoApiMerge_add_reference_rdbfile: use gb_UnoApiMerge_set_reference_rdbfile instead.)
68 endef
70 define gb_UnoApiMerge_set_reference_rdbfile
71 $(call gb_UnoApiTarget_set_reference_rdbfile,$(1),$(2))
73 endef
75 # vim: set noet sw=4 ts=4: