xref: /AOO42X/main/i18npool/Library_localedata_en.mk (revision b05953e23bc215274905beca65a14c99ab0494b3)
1#**************************************************************
2#
3#  Licensed to the Apache Software Foundation (ASF) under one
4#  or more contributor license agreements.  See the NOTICE file
5#  distributed with this work for additional information
6#  regarding copyright ownership.  The ASF licenses this file
7#  to you under the Apache License, Version 2.0 (the
8#  "License"); you may not use this file except in compliance
9#  with the License.  You may obtain a copy of the License at
10#
11#    http://www.apache.org/licenses/LICENSE-2.0
12#
13#  Unless required by applicable law or agreed to in writing,
14#  software distributed under the License is distributed on an
15#  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16#  KIND, either express or implied.  See the License for the
17#  specific language governing permissions and limitations
18#  under the License.
19#
20#**************************************************************
21
22$(eval $(call gb_Library_Library,localedata_en))
23
24$(eval $(call gb_Library_set_include,localedata_en,\
25    $$(INCLUDE) \
26    -I$(SRCDIR)/i18npool/inc \
27    -I$(SRCDIR)/i18npool/inc/pch \
28    -I$(OUTDIR)/inc \
29))
30
31#$(eval $(call gb_Library_add_api,localedata_en, \
32#   offapi \
33#   udkapi \
34#))
35
36#$(eval $(call gb_Library_add_defs,localedata_en,\
37#   -DI18NPOOL_DLLIMPLEMENTATION \
38#))
39
40$(eval $(call gb_Library_set_versionmap,localedata_en,$(SRCDIR)/i18npool/source/localedata/data/localedata_en.map))
41
42$(eval $(call gb_Library_add_linked_libs,localedata_en,\
43    sal \
44    stl \
45    $(gb_STDLIBS) \
46))
47
48$(eval $(call gb_Library_add_generated_exception_objects,localedata_en,\
49    CustomTarget/i18npool/source/localedata/data/localedata_en_AU \
50    CustomTarget/i18npool/source/localedata/data/localedata_en_BZ \
51    CustomTarget/i18npool/source/localedata/data/localedata_en_CA \
52    CustomTarget/i18npool/source/localedata/data/localedata_en_GB \
53    CustomTarget/i18npool/source/localedata/data/localedata_en_GH \
54    CustomTarget/i18npool/source/localedata/data/localedata_en_IE \
55    CustomTarget/i18npool/source/localedata/data/localedata_en_JM \
56    CustomTarget/i18npool/source/localedata/data/localedata_en_NA \
57    CustomTarget/i18npool/source/localedata/data/localedata_en_NZ \
58    CustomTarget/i18npool/source/localedata/data/localedata_en_PH \
59    CustomTarget/i18npool/source/localedata/data/localedata_en_TT \
60    CustomTarget/i18npool/source/localedata/data/localedata_en_US \
61    CustomTarget/i18npool/source/localedata/data/localedata_en_ZA \
62    CustomTarget/i18npool/source/localedata/data/localedata_en_ZW \
63))
64
65ifeq ($(OS),WNT)
66URL_PROTOCOL=file:///
67else
68URL_PROTOCOL=file://
69endif
70
71$(WORKDIR)/CustomTarget/i18npool/source/localedata/data/localedata_%.cxx : $(SRCDIR)/i18npool/source/localedata/data/%.xml $(OUTDIR)/bin/saxparser$(gb_Executable_EXT) $(WORKDIR)/CustomTarget/i18npool/source/localedata/data/saxparser.rdb
72    $(gb_Augment_Library_Path) $(OUTDIR)/bin/saxparser$(gb_Executable_EXT) \
73        $* \
74        $(call gb_Helper_convert_native,$<) \
75        $(call gb_Helper_convert_native,$@) \
76        $(URL_PROTOCOL)$(call gb_Helper_convert_native,$(WORKDIR)/CustomTarget/i18npool/source/localedata/data/saxparser.rdb) \
77        $(call gb_Helper_convert_native,$(OUTDIR)/bin/types.rdb) \
78        -env:OOO_INBUILD_SHAREDLIB_DIR=$(URL_PROTOCOL)$(call gb_Helper_convert_native,$(gb_InBuild_Library_Path))
79
80MY_COMPONENTS := component/sax/source/expatwrap/expwrap
81
82$(WORKDIR)/CustomTarget/i18npool/source/localedata/data/saxparser.rdb : \
83            $(WORKDIR)/CustomTarget/i18npool/source/localedata/data/saxparser.input \
84            $(SOLARENV)/bin/packcomponents.xslt \
85            $(foreach component,$(MY_COMPONENTS),$(OUTDIR)/xml/$(component).inbuild.component)
86    $(gb_XSLTPROC) \
87        --nonet \
88        --stringparam prefix $(call gb_Helper_convert_native,$(OUTDIR)/xml/) \
89        -o $(call gb_Helper_convert_native,$@) \
90        $(call gb_Helper_convert_native,$(SOLARENV)/bin/packcomponents.xslt) \
91        $(call gb_Helper_convert_native,$(WORKDIR)/CustomTarget/i18npool/source/localedata/data/saxparser.input)
92
93$(WORKDIR)/CustomTarget/i18npool/source/localedata/data/saxparser.input :
94    mkdir -p $(dir $@) \
95    && echo "<list>$(foreach component,$(MY_COMPONENTS),<filename>$(component).inbuild.component</filename>)</list>" > $@
96
97# vim: set noet sw=4 ts=4:
98