Skip to content

Commit cf4a1c4

Browse files
grandinjNoel Grandin
authored and
Noel Grandin
committed
merge expwrap into sax library
there is no need for 2 shared libs for such a small module Change-Id: Id28c9038f3e16931bfb8af3532eca172998da1aa Reviewed-on: https://gerrit.libreoffice.org/c/core/+/152374 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
1 parent dc50abb commit cf4a1c4

15 files changed

+17
-99
lines changed

Repository.mk

-1
Original file line numberDiff line numberDiff line change
@@ -408,7 +408,6 @@ $(eval $(call gb_Helper_register_libraries_for_install,OOOLIBS,ooo, \
408408
editeng \
409409
$(if $(filter WNT,$(OS)),emser) \
410410
evtatt \
411-
expwrap \
412411
$(call gb_Helper_optional,DBCONNECTIVITY, \
413412
flat \
414413
file) \

bin/find-mergedlib-can-be-private.py

-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@
3434
,"desktop_detector)" \
3535
,"drawinglayer" \
3636
,"editeng" \
37-
,"expwrap" \
3837
,"filterconfig" \
3938
,"fsstorage" \
4039
,"fwk" \

include/sax/fastparser.hxx

+2-2
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
#include <cppuhelper/implbase.hxx>
2626
#include <com/sun/star/lang/XInitialization.hpp>
2727

28-
#include <sax/fastsaxdllapi.h>
28+
#include <sax/saxdllapi.h>
2929
#include <memory>
3030

3131
namespace com::sun::star::xml::sax {
@@ -39,7 +39,7 @@ namespace sax_fastparser {
3939
class FastSaxParserImpl;
4040

4141
// This class implements the external Parser interface
42-
class FASTSAX_DLLPUBLIC FastSaxParser final
42+
class SAX_DLLPUBLIC FastSaxParser final
4343
: public ::cppu::WeakImplHelper<
4444
css::lang::XInitialization,
4545
css::xml::sax::XFastParser,

include/sax/fastsaxdllapi.h

-33
This file was deleted.

oox/CppunitTest_oox_tokenmap.mk

-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ $(eval $(call gb_CppunitTest_use_libraries,oox_tokenmap,\
4242
cppuhelper \
4343
docmodel \
4444
editeng \
45-
expwrap \
4645
drawinglayer \
4746
msfilter \
4847
sal \

oox/CppunitTest_oox_vba_compression.mk

-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ $(eval $(call gb_CppunitTest_use_libraries,oox_vba_compression,\
2222
cppu \
2323
cppuhelper \
2424
editeng \
25-
expwrap \
2625
drawinglayer \
2726
msfilter \
2827
sal \

oox/CppunitTest_oox_vba_encryption.mk

-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ $(eval $(call gb_CppunitTest_use_libraries,oox_vba_encryption,\
2222
cppu \
2323
cppuhelper \
2424
editeng \
25-
expwrap \
2625
drawinglayer \
2726
msfilter \
2827
sal \

oox/Library_oox.mk

-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@ $(eval $(call gb_Library_use_libraries,oox,\
4646
docmodel \
4747
drawinglayer \
4848
editeng \
49-
expwrap \
5049
i18nlangtag \
5150
msfilter \
5251
sal \

pch/inc/clangfix.hxx

-2
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@
1313
// And many of these macros are not actually used. So use them here to silence the warnings.
1414
// See gb_PrecompiledHeader_ignore_flags_system in solenv/gbuild/PrecompiledHeaders.mk .
1515

16-
#ifdef FASTSAX_DLLIMPLEMENTATION
17-
#endif
1816
#ifdef SAX_DLLIMPLEMENTATION
1917
#endif
2018
#ifdef SCQAHELPER_DLLIMPLEMENTATION

sax/CppunitTest_sax_parser.mk

-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ $(eval $(call gb_CppunitTest_use_libraries,sax_parser, \
2020
cppu \
2121
cppuhelper \
2222
unotest \
23-
expwrap \
2423
sal \
2524
sax \
2625
test \

sax/Library_expwrap.mk

-52
This file was deleted.

sax/Library_sax.mk

+15
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99

1010
$(eval $(call gb_Library_Library,sax))
1111

12+
$(eval $(call gb_Library_set_componentfile,sax,sax/source/expatwrap/expwrap,services))
13+
1214
$(eval $(call gb_Library_set_include,sax,\
1315
-I$(SRCDIR)/sax/inc \
1416
$$(INCLUDE) \
@@ -20,11 +22,19 @@ $(eval $(call gb_Library_use_common_precompiled_header,sax))
2022

2123
$(eval $(call gb_Library_use_sdk_api,sax))
2224

25+
$(eval $(call gb_Library_use_externals,sax,\
26+
boost_headers \
27+
libxml2 \
28+
expat \
29+
zlib \
30+
))
31+
2332
$(eval $(call gb_Library_use_libraries,sax,\
2433
comphelper \
2534
cppu \
2635
cppuhelper \
2736
sal \
37+
salhelper \
2838
tl \
2939
))
3040

@@ -33,6 +43,11 @@ $(eval $(call gb_Library_add_defs,sax,\
3343
))
3444

3545
$(eval $(call gb_Library_add_exception_objects,sax,\
46+
sax/source/expatwrap/sax_expat \
47+
sax/source/expatwrap/saxwriter \
48+
sax/source/expatwrap/xml2utf \
49+
sax/source/fastparser/fastparser \
50+
sax/source/fastparser/legacyfastparser \
3651
sax/source/tools/converter \
3752
sax/source/tools/fastattribs \
3853
sax/source/tools/fastserializer \

sax/Module_sax.mk

-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
$(eval $(call gb_Module_Module,sax))
1111

1212
$(eval $(call gb_Module_add_targets,sax,\
13-
Library_expwrap \
1413
Library_sax \
1514
))
1615

solenv/gbuild/PrecompiledHeaders.mk

-1
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,6 @@ endef
139139
# So while this is officially tricky, in practice it seems to work to allow PCH reuse if the linktarget
140140
# has more defines than the PCH was built with, as long as the defines do not affect the PCH.
141141
gb_PrecompiledHeader_ignore_flags_system := \
142-
-DFASTSAX_DLLIMPLEMENTATION \
143142
-DSAX_DLLIMPLEMENTATION \
144143
-DSCQAHELPER_DLLIMPLEMENTATION \
145144
-DVCLPLUG_WIN_IMPLEMENTATION \

vcl/commonfuzzer.mk

-1
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,6 @@ fuzzer_core_libraries = \
148148
unoidl \
149149
reg \
150150
store \
151-
expwrap \
152151
gcc3_uno \
153152
salhelper \
154153
sal \

0 commit comments

Comments
 (0)