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