Version 3.6.0.2, tag libreoffice-3.6.0.2
[LibreOffice.git] / i18npool / CustomTarget_localedata.mk
blobd8c260d17278c03e301d196a2f0e3fbb2f248606
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 # The Initial Developer of the Original Code is
15 # Matúš Kukan <matus.kukan@gmail.com>
16 # Portions created by the Initial Developer are Copyright (C) 2011 the
17 # Initial Developer. All Rights Reserved.
19 # Major Contributor(s):
21 # For minor contributions see the git repository.
23 # Alternatively, the contents of this file may be used under the terms of
24 # either the GNU General Public License Version 3 or later (the "GPLv3+"), or
25 # the GNU Lesser General Public License Version 3 or later (the "LGPLv3+"),
26 # in which case the provisions of the GPLv3+ or the LGPLv3+ are applicable
27 # instead of those above.
29 $(eval $(call gb_CustomTarget_CustomTarget,i18npool/localedata))
31 i18npool_LDDIR := $(call gb_CustomTarget_get_workdir,i18npool/localedata)
33 $(call gb_CustomTarget_get_target,i18npool/localedata) : \
34 $(patsubst %.xml,$(i18npool_LDDIR)/localedata_%.cxx, \
35 $(notdir $(wildcard $(SRCDIR)/i18npool/source/localedata/data/*.xml)))
37 $(i18npool_LDDIR)/localedata_%.cxx : \
38 $(SRCDIR)/i18npool/source/localedata/data/%.xml \
39 $(i18npool_LDDIR)/saxparser.rdb $(call gb_Executable_get_target_for_build,saxparser)
40 $(call gb_Output_announce,$(subst $(WORKDIR)/,,$@),$(true),SAX,1)
41 $(call gb_Helper_abbreviate_dirs, \
42 $(call gb_Helper_execute,saxparser) $* $< $@.tmp \
43 $(call gb_Helper_make_url,$(i18npool_LDDIR)/saxparser.rdb) \
44 $(call gb_Helper_make_url,$(OUTDIR_FOR_BUILD)/bin/types.rdb) \
45 -env:LO_LIB_DIR=$(call gb_Helper_make_url,$(gb_Helper_OUTDIR_FOR_BUILDLIBDIR)) \
46 $(if $(findstring s,$(MAKEFLAGS)),> /dev/null 2>&1) && \
47 sed 's/\(^.*get[^;]*$$\)/SAL_DLLPUBLIC_EXPORT \1/' $@.tmp > $@ && \
48 rm $@.tmp)
50 $(i18npool_LDDIR)/saxparser.rdb : $(i18npool_LDDIR)/saxparser.input \
51 $(gb_XSLTPROCTARGET) $(SOLARENV)/bin/packcomponents.xslt
52 $(call gb_Output_announce,$(subst $(WORKDIR)/,,$@),$(true),RDB,1)
53 $(call gb_Helper_abbreviate_dirs, \
54 $(gb_XSLTPROC) --nonet --stringparam prefix $(OUTDIR_FOR_BUILD)/xml/ \
55 -o $@ $(SOLARENV)/bin/packcomponents.xslt $<)
57 $(i18npool_LDDIR)/saxparser.input : $(call gb_ComponentTarget_get_outdir_target,sax/source/expatwrap/expwrap) | $(i18npool_LDDIR)/.dir
58 $(call gb_Output_announce,$(subst $(WORKDIR)/,,$@),$(true),ECH,1)
59 echo '<list><filename>component/sax/source/expatwrap/expwrap.component</filename></list>' > $@
61 # vim: set noet sw=4 ts=4: