xref: /trunk/main/sax/Library_fastsax.mk (revision b63233d8)
1*b63233d8Sdamjan###############################################################
2*b63233d8Sdamjan#
3*b63233d8Sdamjan#  Licensed to the Apache Software Foundation (ASF) under one
4*b63233d8Sdamjan#  or more contributor license agreements.  See the NOTICE file
5*b63233d8Sdamjan#  distributed with this work for additional information
6*b63233d8Sdamjan#  regarding copyright ownership.  The ASF licenses this file
7*b63233d8Sdamjan#  to you under the Apache License, Version 2.0 (the
8*b63233d8Sdamjan#  "License"); you may not use this file except in compliance
9*b63233d8Sdamjan#  with the License.  You may obtain a copy of the License at
10*b63233d8Sdamjan#
11*b63233d8Sdamjan#    http://www.apache.org/licenses/LICENSE-2.0
12*b63233d8Sdamjan#
13*b63233d8Sdamjan#  Unless required by applicable law or agreed to in writing,
14*b63233d8Sdamjan#  software distributed under the License is distributed on an
15*b63233d8Sdamjan#  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16*b63233d8Sdamjan#  KIND, either express or implied.  See the License for the
17*b63233d8Sdamjan#  specific language governing permissions and limitations
18*b63233d8Sdamjan#  under the License.
19*b63233d8Sdamjan#
20*b63233d8Sdamjan###############################################################
21*b63233d8Sdamjan
22*b63233d8Sdamjan
23*b63233d8Sdamjan
24*b63233d8Sdamjan$(eval $(call gb_Library_Library,fastsax))
25*b63233d8Sdamjan
26*b63233d8Sdamjan$(eval $(call gb_Library_set_componentfile,fastsax,sax/source/fastparser/fastsax))
27*b63233d8Sdamjan
28*b63233d8Sdamjan$(eval $(call gb_Library_add_api,fastsax,\
29*b63233d8Sdamjan	udkapi \
30*b63233d8Sdamjan	offapi \
31*b63233d8Sdamjan))
32*b63233d8Sdamjan
33*b63233d8Sdamjan$(eval $(call gb_Library_set_include,fastsax,\
34*b63233d8Sdamjan	$$(INCLUDE) \
35*b63233d8Sdamjan	-I$(SRCDIR)/sax/inc \
36*b63233d8Sdamjan))
37*b63233d8Sdamjan
38*b63233d8Sdamjan$(eval $(call gb_Library_add_linked_libs,fastsax,\
39*b63233d8Sdamjan	sal \
40*b63233d8Sdamjan	cppu \
41*b63233d8Sdamjan	cppuhelper \
42*b63233d8Sdamjan	sax \
43*b63233d8Sdamjan	stl \
44*b63233d8Sdamjan    $(gb_STDLIBS) \
45*b63233d8Sdamjan))
46*b63233d8Sdamjan
47*b63233d8Sdamjanifeq ($(SYSTEM_ZLIB),YES)
48*b63233d8Sdamjan$(eval $(call gb_Library_add_defs,fastsax,\
49*b63233d8Sdamjan	-DSYSTEM_ZLIB \
50*b63233d8Sdamjan))
51*b63233d8Sdamjanendif
52*b63233d8Sdamjan
53*b63233d8Sdamjan$(call gb_Library_use_external,fastsax,expat_utf8)
54*b63233d8Sdamjan
55*b63233d8Sdamjan# re-uses xml2utf object from sax.uno lib (see below)
56*b63233d8Sdamjan$(eval $(call gb_Library_add_exception_objects,fastsax,\
57*b63233d8Sdamjan	sax/source/fastparser/facreg \
58*b63233d8Sdamjan	sax/source/fastparser/fastparser \
59*b63233d8Sdamjan	sax/source/expatwrap/xml2utf \
60*b63233d8Sdamjan))
61*b63233d8Sdamjan
62*b63233d8Sdamjan# mba: currently it's unclear whether xml2utf needs to be compiled with the
63*b63233d8Sdamjan# same compiler settings as in the sax.uno lib; in case not, we have to use
64*b63233d8Sdamjan# a custom target
65*b63233d8Sdamjan#$(eval $(call gb_Library_add_generated_exception_objects,fastsax,\
66*b63233d8Sdamjan#	sax/source/expatwrap/xml2utf \
67*b63233d8Sdamjan#))
68*b63233d8Sdamjan
69*b63233d8Sdamjan# vim: set noet sw=4 ts=4:
70