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_Executable_Executable,saxparser))
25
26$(eval $(call gb_Executable_add_precompiled_header,saxparser,$(SRCDIR)/i18npool/inc/pch/precompiled_i18npool))
27
28$(eval $(call gb_Executable_set_include,saxparser,\
29	$$(INCLUDE) \
30	-I$(SRCDIR)/i18npool/inc \
31	-I$(SRCDIR)/i18npool/inc/pch \
32	-I$(OUTDIR)/inc \
33))
34
35$(eval $(call gb_Executable_add_api,saxparser,\
36	offapi \
37	udkapi \
38))
39
40# the xmlparser build breaks in this header file
41#
42#      /opt/SUNWspro/WS6U1/include/CC/Cstd/./limits
43#
44# which defines a class with member functions called min() and max().
45# the build breaks because in solar.h, there is something like this
46#
47#      #define max(x,y) ((x) < (y) ? (y) : (x))
48#      #define min(x,y) ((x) < (y) ? (x) : (y))
49#
50# so the only choice is to prevent "CC/Cstd/./limits" from being
51# included:
52ifeq ($(OS),SOLARIS)
53$(eval $(call gb_Executable_add_defs,saxparser,\
54	-D__STD_LIMITS \
55))
56endif
57
58
59$(eval $(call gb_Executable_add_linked_libs,saxparser,\
60	cppu \
61	cppuhelper \
62	sal \
63	stl \
64    $(gb_STDLIBS) \
65))
66
67$(eval $(call gb_Executable_add_exception_objects,saxparser,\
68	i18npool/source/localedata/saxparser \
69	i18npool/source/localedata/LocaleNode \
70	i18npool/source/localedata/filewriter \
71))
72
73# vim: set noet sw=4 ts=4:
74