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,fastsax)) 25 26$(eval $(call gb_Library_set_componentfile,fastsax,sax/source/fastparser/fastsax)) 27 28$(eval $(call gb_Library_add_api,fastsax,\ 29 udkapi \ 30 offapi \ 31)) 32 33$(eval $(call gb_Library_set_include,fastsax,\ 34 $$(INCLUDE) \ 35 -I$(SRCDIR)/sax/inc \ 36)) 37 38$(eval $(call gb_Library_add_linked_libs,fastsax,\ 39 sal \ 40 cppu \ 41 cppuhelper \ 42 sax \ 43 stl \ 44 $(gb_STDLIBS) \ 45)) 46 47ifeq ($(SYSTEM_ZLIB),YES) 48$(eval $(call gb_Library_add_defs,fastsax,\ 49 -DSYSTEM_ZLIB \ 50)) 51endif 52 53$(call gb_Library_use_external,fastsax,expat_utf8) 54 55# re-uses xml2utf object from sax.uno lib (see below) 56$(eval $(call gb_Library_add_exception_objects,fastsax,\ 57 sax/source/fastparser/facreg \ 58 sax/source/fastparser/fastparser \ 59 sax/source/expatwrap/xml2utf \ 60)) 61 62# mba: currently it's unclear whether xml2utf needs to be compiled with the 63# same compiler settings as in the sax.uno lib; in case not, we have to use 64# a custom target 65#$(eval $(call gb_Library_add_generated_exception_objects,fastsax,\ 66# sax/source/expatwrap/xml2utf \ 67#)) 68 69# vim: set noet sw=4 ts=4: 70