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
23
24$(eval $(call gb_Library_Library,localedata_en))
25
26$(eval $(call gb_Library_set_include,localedata_en,\
27	$$(INCLUDE) \
28	-I$(SRCDIR)/i18npool/inc \
29	-I$(SRCDIR)/i18npool/inc/pch \
30	-I$(OUTDIR)/inc \
31))
32
33#$(eval $(call gb_Library_add_api,localedata_en, \
34#	offapi \
35#	udkapi \
36#))
37
38#$(eval $(call gb_Library_add_defs,localedata_en,\
39#	-DI18NPOOL_DLLIMPLEMENTATION \
40#))
41
42$(eval $(call gb_Library_set_versionmap,localedata_en,$(SRCDIR)/i18npool/source/localedata/data/localedata_en.map))
43
44$(eval $(call gb_Library_add_linked_libs,localedata_en,\
45	sal \
46	stl \
47	$(gb_STDLIBS) \
48))
49
50$(eval $(call gb_Library_add_generated_exception_objects,localedata_en,\
51	CustomTarget/i18npool/source/localedata/data/localedata_en_AU \
52	CustomTarget/i18npool/source/localedata/data/localedata_en_BZ \
53	CustomTarget/i18npool/source/localedata/data/localedata_en_CA \
54	CustomTarget/i18npool/source/localedata/data/localedata_en_GB \
55	CustomTarget/i18npool/source/localedata/data/localedata_en_GH \
56	CustomTarget/i18npool/source/localedata/data/localedata_en_IE \
57	CustomTarget/i18npool/source/localedata/data/localedata_en_JM \
58	CustomTarget/i18npool/source/localedata/data/localedata_en_NA \
59	CustomTarget/i18npool/source/localedata/data/localedata_en_NZ \
60	CustomTarget/i18npool/source/localedata/data/localedata_en_PH \
61	CustomTarget/i18npool/source/localedata/data/localedata_en_TT \
62	CustomTarget/i18npool/source/localedata/data/localedata_en_US \
63	CustomTarget/i18npool/source/localedata/data/localedata_en_ZA \
64	CustomTarget/i18npool/source/localedata/data/localedata_en_ZW \
65))
66
67ifeq ($(OS),WNT)
68URL_PROTOCOL=file:///
69else
70URL_PROTOCOL=file://
71endif
72
73$(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
74	$(gb_Augment_Library_Path) $(OUTDIR)/bin/saxparser$(gb_Executable_EXT) \
75		$* \
76		$(call gb_Helper_convert_native,$<) \
77		$(call gb_Helper_convert_native,$@) \
78		$(URL_PROTOCOL)$(call gb_Helper_convert_native,$(WORKDIR)/CustomTarget/i18npool/source/localedata/data/saxparser.rdb) \
79		$(call gb_Helper_convert_native,$(OUTDIR)/bin/types.rdb) \
80		-env:OOO_INBUILD_SHAREDLIB_DIR=$(URL_PROTOCOL)$(call gb_Helper_convert_native,$(gb_InBuild_Library_Path))
81
82MY_COMPONENT := sax/source/expatwrap/expwrap
83
84$(WORKDIR)/CustomTarget/i18npool/source/localedata/data/saxparser.rdb : \
85			$(WORKDIR)/CustomTarget/i18npool/source/localedata/data/saxparser.input \
86			$(SOLARENV)/bin/packcomponents.xslt \
87			$(call gb_ComponentTarget_get_outdir_inbuild_target,$(MY_COMPONENT))
88	$(gb_XSLTPROC) \
89		--nonet \
90		--stringparam prefix $(call gb_Helper_convert_native,$(OUTDIR)/xml/) \
91		-o $(call gb_Helper_convert_native,$@) \
92		$(call gb_Helper_convert_native,$(SOLARENV)/bin/packcomponents.xslt) \
93		$(call gb_Helper_convert_native,$(WORKDIR)/CustomTarget/i18npool/source/localedata/data/saxparser.input)
94
95$(WORKDIR)/CustomTarget/i18npool/source/localedata/data/saxparser.input :
96	mkdir -p $(dir $@) \
97	&& echo "<list><filename>component/$(MY_COMPONENT).inbuild.component</filename></list>" > $@
98
99# vim: set noet sw=4 ts=4:
100
101