Kaydet (Commit) 3be78645 authored tarafından Norbert Thiebaud's avatar Norbert Thiebaud

gbuildification of sax

Change-Id: I6e8220e88566e04b20687d54181205d31ec68e13
üst 445cb2bc
# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
#
# This file is part of the LibreOffice project.
#
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
#
$(eval $(call gb_CppunitTest_CppunitTest,sax_cpputest))
$(eval $(call gb_CppunitTest_use_api,sax_cpputest,\
offapi \
udkapi \
))
$(eval $(call gb_CppunitTest_use_libraries,sax_cpputest, \
sax \
sal \
$(gb_STDLIBS) \
))
$(eval $(call gb_CppunitTest_add_exception_objects,sax_cpputest, \
sax/qa/cppunit/test_converter \
))
# vim: set noet sw=4 ts=4:
# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
#
# This file is part of the LibreOffice project.
#
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
#
$(eval $(call gb_Library_Library,expwrap))
$(eval $(call gb_Library_set_componentfile,expwrap,sax/source/expatwrap/expwrap))
$(eval $(call gb_Library_use_api,expwrap,\
offapi \
udkapi \
))
$(eval $(call gb_Library_use_externals,expwrap,\
expat_utf16 \
))
$(eval $(call gb_Library_use_libraries,expwrap,\
cppu \
cppuhelper \
sal \
sax \
$(gb_STDLIBS) \
))
$(eval $(call gb_Library_set_include,expwrap,\
-I$(SRCDIR)/sax/inc \
$$(INCLUDE) \
))
$(eval $(call gb_Library_add_exception_objects,expwrap,\
sax/source/expatwrap/attrlistimpl \
sax/source/expatwrap/sax_expat \
sax/source/expatwrap/saxwriter \
))
# vim: set noet sw=4 ts=4:
# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
#
# This file is part of the LibreOffice project.
#
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
#
$(eval $(call gb_Library_Library,fastsax))
$(eval $(call gb_Library_set_componentfile,fastsax,sax/source/fastparser/fastsax))
$(eval $(call gb_Library_use_api,fastsax,\
offapi \
udkapi \
))
$(eval $(call gb_Library_use_externals,fastsax,\
expat_utf8 \
zlib \
))
$(eval $(call gb_Library_use_libraries,fastsax,\
cppu \
cppuhelper \
sal \
sax \
$(gb_STDLIBS) \
))
$(eval $(call gb_Library_set_include,fastsax,\
-I$(SRCDIR)/sax/inc \
$$(INCLUDE) \
))
$(eval $(call gb_Library_add_exception_objects,fastsax,\
sax/source/fastparser/facreg \
sax/source/fastparser/fastparser \
))
# vim: set noet sw=4 ts=4:
# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
#
# This file is part of the LibreOffice project.
#
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
#
$(eval $(call gb_Library_Library,sax))
$(eval $(call gb_Library_use_package,sax,\
sax_inc \
))
$(eval $(call gb_Library_use_api,sax,\
offapi \
udkapi \
))
$(eval $(call gb_Library_use_libraries,sax,\
comphelper \
cppu \
cppuhelper \
sal \
$(gb_STDLIBS) \
))
$(eval $(call gb_Library_set_include,sax,\
-I$(SRCDIR)/sax/inc \
$$(INCLUDE) \
))
$(eval $(call gb_Library_add_defs,sax,\
-DSAX_DLLIMPLEMENTATION \
))
$(eval $(call gb_Library_add_exception_objects,sax,\
sax/source/expatwrap/xml2utf \
sax/source/tools/converter \
sax/source/tools/fastattribs \
sax/source/tools/fastserializer \
sax/source/tools/fshelper \
))
# vim: set noet sw=4 ts=4:
# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
#
# This file is part of the LibreOffice project.
#
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
#
$(eval $(call gb_Module_Module,sax))
$(eval $(call gb_Module_add_targets,sax,\
Library_expwrap \
Library_fastsax \
Library_sax \
Package_inc \
))
$(eval $(call gb_Module_add_check_targets,sax,\
CppunitTest_sax \
))
# vim: set noet sw=4 ts=4:
# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
#
# This file is part of the LibreOffice project.
#
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
#
$(eval $(call gb_Package_Package,sax_inc,$(SRCDIR)/sax/inc))
$(eval $(call gb_Package_add_file,sax_inc,inc/sax/fastattribs.hxx,sax/fastattribs.hxx))
$(eval $(call gb_Package_add_file,sax_inc,inc/sax/fshelper.hxx,sax/fshelper.hxx))
$(eval $(call gb_Package_add_file,sax_inc,inc/sax/saxdllapi.h,sax/saxdllapi.h))
$(eval $(call gb_Package_add_file,sax_inc,inc/sax/tools/converter.hxx,sax/tools/converter.hxx))
$(eval $(call gb_Package_add_file,sax_inc,inc/sax/tools/documenthandleradapter.hxx,sax/tools/documenthandleradapter.hxx))
# vim: set noet sw=4 ts=4:
...@@ -35,7 +35,7 @@ ...@@ -35,7 +35,7 @@
#include <com/sun/star/xml/FastAttribute.hpp> #include <com/sun/star/xml/FastAttribute.hpp>
#include <cppuhelper/implbase1.hxx> #include <cppuhelper/implbase1.hxx>
#include "sax/dllapi.h" #include "sax/saxdllapi.h"
#include <map> #include <map>
#include <vector> #include <vector>
......
...@@ -35,7 +35,6 @@ ...@@ -35,7 +35,6 @@
#include <stdarg.h> #include <stdarg.h>
#include <boost/shared_ptr.hpp> #include <boost/shared_ptr.hpp>
#include <sax/fastattribs.hxx> #include <sax/fastattribs.hxx>
#include "sax/dllapi.h"
#define FSNS(namespc, element) ((namespc << 16) | element) #define FSNS(namespc, element) ((namespc << 16) | element)
const sal_Int32 FSEND = -1; // same as XML_TOKEN_INVALID const sal_Int32 FSEND = -1; // same as XML_TOKEN_INVALID
......
...@@ -29,7 +29,6 @@ ...@@ -29,7 +29,6 @@
#ifndef _SAX_SAXPARSER_HXX_ #ifndef _SAX_SAXPARSER_HXX_
#define _SAX_SAXPARSER_HXX_ #define _SAX_SAXPARSER_HXX_
#include "sax/dllapi.h"
#include <com/sun/star/xml/sax/InputSource.hpp> #include <com/sun/star/xml/sax/InputSource.hpp>
#include <com/sun/star/xml/sax/SAXException.hpp> #include <com/sun/star/xml/sax/SAXException.hpp>
#include <rtl/ref.hxx> #include <rtl/ref.hxx>
......
...@@ -29,7 +29,7 @@ ...@@ -29,7 +29,7 @@
#ifndef INCLUDED_SAX_DLLAPI_H #ifndef INCLUDED_SAX_DLLAPI_H
#define INCLUDED_SAX_DLLAPI_H #define INCLUDED_SAX_DLLAPI_H
#include "sal/types.h" #include <sal/types.h>
#if defined SAX_DLLIMPLEMENTATION #if defined SAX_DLLIMPLEMENTATION
#define SAX_DLLPUBLIC SAL_DLLPUBLIC_EXPORT #define SAX_DLLPUBLIC SAL_DLLPUBLIC_EXPORT
......
...@@ -29,8 +29,6 @@ ...@@ -29,8 +29,6 @@
#ifndef _SAX_ATTRIBUTEMAP_HXX_ #ifndef _SAX_ATTRIBUTEMAP_HXX_
#define _SAX_ATTRIBUTEMAP_HXX_ #define _SAX_ATTRIBUTEMAP_HXX_
#include "sax/dllapi.h"
#include <map> #include <map>
#include "sax/tools/tokenmap.hxx" #include "sax/tools/tokenmap.hxx"
......
...@@ -30,7 +30,7 @@ ...@@ -30,7 +30,7 @@
#define _SAX_OBJECT_HXX_ #define _SAX_OBJECT_HXX_
#include <sal/types.h> #include <sal/types.h>
#include "sax/dllapi.h" #include "sax/saxdllapi.h"
namespace sax namespace sax
{ {
......
...@@ -31,7 +31,6 @@ ...@@ -31,7 +31,6 @@
#include <rtl/ref.hxx> #include <rtl/ref.hxx>
#include <rtl/ustring.hxx> #include <rtl/ustring.hxx>
#include "sax/dllapi.h"
#include "sax/tools/saxobject.hxx" #include "sax/tools/saxobject.hxx"
namespace sax namespace sax
......
...@@ -41,7 +41,6 @@ ...@@ -41,7 +41,6 @@
#include <boost/shared_ptr.hpp> #include <boost/shared_ptr.hpp>
#include "sax/dllapi.h"
#include "sax/fshelper.hxx" #include "sax/fshelper.hxx"
#define SERIALIZER_IMPLEMENTATION_NAME "com.sun.star.comp.extensions.xml.sax.FastSerializer" #define SERIALIZER_IMPLEMENTATION_NAME "com.sun.star.comp.extensions.xml.sax.FastSerializer"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment