summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2020-03-07 02:55:12 +0200
committerJussi Pakkanen <jpakkane@gmail.com>2020-03-07 02:55:12 +0200
commit1902db138275001aa456e5c47c02321396d7daa8 (patch)
tree15827810a0b6ebedef6df739c902a6fcf11b5439
parent63e266091a08e4b2df5a1ef6f69981d004a5e5c3 (diff)
Added some symbol visibility declarations.
Change-Id: Ic743969d81d9c5f0f6de640056c76dad3db61ac0
-rw-r--r--basegfx/meson.build1
-rw-r--r--comphelper/meson.build1
-rw-r--r--configmgr/meson.build1
-rw-r--r--cppu/meson.build1
-rw-r--r--cppuhelper/meson.build3
-rw-r--r--i18nlangtag/meson.build3
-rw-r--r--i18nutil/meson.build1
-rw-r--r--registry/meson.build1
-rw-r--r--sal/meson.build1
-rw-r--r--salhelper/meson.build6
-rw-r--r--sc/meson.build1
-rw-r--r--sd/meson.build3
-rw-r--r--sot/meson.build1
-rw-r--r--starmath/meson.build2
-rw-r--r--svl/meson.build1
-rw-r--r--sw/meson.build2
-rw-r--r--tools/meson.build1
-rw-r--r--ucbhelper/meson.build1
-rw-r--r--unoidl/meson.build1
-rw-r--r--unotools/meson.build1
-rw-r--r--vcl/meson.build5
-rw-r--r--xmlreader/meson.build1
22 files changed, 34 insertions, 5 deletions
diff --git a/basegfx/meson.build b/basegfx/meson.build
index ce378a8afebc..a659ce207079 100644
--- a/basegfx/meson.build
+++ b/basegfx/meson.build
@@ -53,5 +53,6 @@ basegfx_lib = shared_library('basegfxlo',
cpp_args: ['-DBASEGFX_DLLIMPLEMENTATION',
'-DLIBO_INTERNAL_ONLY'],
link_with: [sal_lib, cppu_lib, cppuhelper_lib],
+ gnu_symbol_visibility: 'hidden',
install: true,
)
diff --git a/comphelper/meson.build b/comphelper/meson.build
index 1e008c21e199..eab61766ce21 100644
--- a/comphelper/meson.build
+++ b/comphelper/meson.build
@@ -107,5 +107,6 @@ comphelper_lib = shared_library('comphelper',
include_directories: [main_inc, 'source/inc'],
link_with: [cppuhelper_lib, cppu_lib, salhelper_lib, sal_lib, ucbhelper_lib, i18nlangtag_lib],
dependencies: [openssl_dep, nss_dep, zlib_dep, icuuc_dep],
+ gnu_symbol_visibility: 'hidden',
install: true,
)
diff --git a/configmgr/meson.build b/configmgr/meson.build
index c6751f99c082..5f83aa3210e9 100644
--- a/configmgr/meson.build
+++ b/configmgr/meson.build
@@ -44,5 +44,6 @@ configmgr_lib = shared_library('configmgrlo',
i18nlangtag_lib,
],
install: true,
+ gnu_symbol_visibility: 'hidden',
dependencies: [libxml_dep, zlib_dep],
)
diff --git a/cppu/meson.build b/cppu/meson.build
index 01f9c23fdaa0..0c20029ef4bf 100644
--- a/cppu/meson.build
+++ b/cppu/meson.build
@@ -24,5 +24,6 @@ cppu_lib = shared_library('cppulo',
cpp_args: ['-DLIBO_INTERNAL_ONLY',
'-DCPPU_DLLIMPLEMENTATION'],
link_with: [salhelper_lib, sal_lib],
+ gnu_symbol_visibility: 'hidden',
install: true,
)
diff --git a/cppuhelper/meson.build b/cppuhelper/meson.build
index 5fa76aaef9b6..28283fa72bc2 100644
--- a/cppuhelper/meson.build
+++ b/cppuhelper/meson.build
@@ -6,7 +6,7 @@ temp_hack = static_library('cppuuno',
include_directories: [main_inc, udkh_inc, offapi_inc, cpphelper_uno_inc],
)
-cppuhelper_lib = shared_library('cpphelperlo',
+cppuhelper_lib = shared_library('cppuhelperlo',
'source/access_control.cxx',
'source/bootstrap.cxx',
'source/compat.cxx',
@@ -35,5 +35,6 @@ cppuhelper_lib = shared_library('cpphelperlo',
include_directories: [main_inc, udkh_inc, offapi_inc, cpphelper_uno_inc],
cpp_args: ['-DCPPUHELPER_DLLIMPLEMENTATION', '-DLIBO_INTERNAL_ONLY'],
link_with: [temp_hack, cppu_lib, reg_lib, salhelper_lib, sal_lib, unoidl_lib, xmlreader_lib],
+ gnu_symbol_visibility: 'hidden',
install: true,
)
diff --git a/i18nlangtag/meson.build b/i18nlangtag/meson.build
index 6e1aa18610e3..b8a404e4b5ce 100644
--- a/i18nlangtag/meson.build
+++ b/i18nlangtag/meson.build
@@ -8,7 +8,8 @@ i18nlangtag_lib = shared_library('i18nlangtaglo',
include_directories: [main_inc, udkh_inc, offapi_inc],
dependencies: [icuuc_dep, langtag_dep],
cpp_args: ['-DLIBO_INTERNAL_ONLY',
- '-DI18NLANGTAG_DLLIMPLEMENTATION'],
+ '-DI18NLANGTAG_DLLIMPLEMENTATION'],
link_with: [sal_lib],
+ gnu_symbol_visibility: 'hidden',
install: true,
)
diff --git a/i18nutil/meson.build b/i18nutil/meson.build
index d893bffb8e47..da0aa322dc01 100644
--- a/i18nutil/meson.build
+++ b/i18nutil/meson.build
@@ -11,6 +11,7 @@ i18nutil_lib = shared_library('i18nutillo',
'-DLIBO_INTERNAL_ONLY'],
link_with: [utl_lib, i18nlangtag_lib, comphelper_lib, cppu_lib, sal_lib],
dependencies: [icuuc_dep, icu18_dep],
+ gnu_symbol_visibility: 'hidden',
install: true,
)
diff --git a/registry/meson.build b/registry/meson.build
index 4aca66d72d33..e4dea45eaa12 100644
--- a/registry/meson.build
+++ b/registry/meson.build
@@ -8,5 +8,6 @@ reg_lib = shared_library('reglo',
include_directories: [main_inc, 'inc'],
cpp_args: ['-DLIBO_INTERNAL_ONLY'],
link_with: [store_lib, salhelper_lib, sal_lib],
+ gnu_symbol_visibility: 'hidden',
install: true,
)
diff --git a/sal/meson.build b/sal/meson.build
index b010a816b025..621685f1cd5d 100644
--- a/sal/meson.build
+++ b/sal/meson.build
@@ -130,6 +130,7 @@ sal_lib = shared_library('sallo',
'-DSAL_DLLIMPLEMENTATION'],
link_args: system_link_args,
dependencies: [thread_dep, osx_frameworks_dep, dl_dep],
+ gnu_symbol_visibility: 'hidden',
install: true,
)
diff --git a/salhelper/meson.build b/salhelper/meson.build
index 98d3d3ea07c2..45fae60be0de 100644
--- a/salhelper/meson.build
+++ b/salhelper/meson.build
@@ -5,8 +5,10 @@ salhelper_lib = shared_library('salhelperlo',
'source/thread.cxx',
'source/timer.cxx',
include_directories: [main_inc],
- cpp_args: ['-DLIBO_INTERNAL_ONLY'],
+ cpp_args: ['-DLIBO_INTERNAL_ONLY',
+ '-DSALHELPER_DLLIMPLEMENTATION'],
link_with: sal_lib,
+ gnu_symbol_visibility: 'hidden',
install: true,
- )
+)
diff --git a/sc/meson.build b/sc/meson.build
index 8bbc0865cc50..56185532d742 100644
--- a/sc/meson.build
+++ b/sc/meson.build
@@ -707,6 +707,7 @@ scui_lib = shared_library('scuilo',
vcl_lib,
],
dependencies: [broken_mdds_dep],
+ gnu_symbol_visibility: 'hidden',
install: true,
)
# I had to disable this because it gave a compiler error:
diff --git a/sd/meson.build b/sd/meson.build
index eed81d4e11c9..996aee8425b9 100644
--- a/sd/meson.build
+++ b/sd/meson.build
@@ -376,6 +376,7 @@ sd_lib = shared_library('sdlo',
link_with: [avmedia_lib, basegfx_lib, canvastools_lib, comphelper_lib, cppcanvas_lib, cppu_lib, cppuhelper_lib, drawinglayer_lib, editeng_lib, i18nlangtag_lib, i18nutil_lib, msfilter_lib, oox_lib, sal_lib, salhelper_lib, sax_lib, sb_lib, sfx_lib, sot_lib, svl_lib, svt_lib, svxcore_lib, svx_lib, tk_lib, tl_lib, ucbhelper_lib, utl_lib, vcl_lib,
],
dependencies: [libxml_dep],
+ gnu_symbol_visibility: 'hidden',
install: true,
)
@@ -414,6 +415,7 @@ sdui_lib = shared_library('sduilo',
include_directories: [main_inc, udkh_inc, offapi_inc, 'inc', 'source/ui/inc', setup_inc],
link_with: [basegfx_lib, comphelper_lib, cppcanvas_lib, cppu_lib, cppuhelper_lib, editeng_lib, i18nlangtag_lib, fwl_lib, fwe_lib, sal_lib, salhelper_lib, sd_lib, sfx_lib, sot_lib, svl_lib, svt_lib, svxcore_lib, svx_lib, tl_lib, utl_lib, vcl_lib, cui_lib],
dependencies: [],
+ gnu_symbol_visibility: 'hidden',
install: true,
)
@@ -439,5 +441,6 @@ sdfilt_lib = shared_library('sdfiltlo',
include_directories: [main_inc, udkh_inc, offapi_inc, 'inc', 'source/ui/inc', '../oox'],
link_with: [comphelper_lib, cppu_lib, cppuhelper_lib, editeng_lib, i18nlangtag_lib, i18nutil_lib, msfilter_lib, oox_lib, sal_lib, sax_lib, sd_lib, sfx_lib, sot_lib, svl_lib, svt_lib, svxcore_lib, tl_lib, ucbhelper_lib, utl_lib, vcl_lib, basegfx_lib],
dependencies: [],
+ gnu_symbol_visibility: 'hidden',
install: true,
)
diff --git a/sot/meson.build b/sot/meson.build
index e3b38b8f49fc..1e3fefb86d8f 100644
--- a/sot/meson.build
+++ b/sot/meson.build
@@ -20,5 +20,6 @@ sot_lib = shared_library('sotlo',
'-DLIBO_INTERNAL_ONLY'],
include_directories: [main_inc, udkh_inc, offapi_inc, 'inc'],
link_with: [comphelper_lib, cppuhelper_lib, cppu_lib, salhelper_lib, sal_lib, i18nlangtag_lib, tl_lib, ucbhelper_lib, utl_lib],
+ gnu_symbol_visibility: 'hidden',
install: true,
)
diff --git a/starmath/meson.build b/starmath/meson.build
index a8398a5ead81..5a084df944dd 100644
--- a/starmath/meson.build
+++ b/starmath/meson.build
@@ -63,6 +63,7 @@ starmath_lib = shared_library('starmathlo',
xo_lib,
],
dependencies: [],
+ gnu_symbol_visibility: 'hidden',
install: true,
)
@@ -74,6 +75,7 @@ smd_lib = shared_library('smdlo',
cpp_args: ['-DLIBO_INTERNAL_ONLY'],
include_directories: [main_inc, udkh_inc, offapi_inc, 'inc'],
link_with: [comphelper_lib, cppu_lib, cppuhelper_lib, sal_lib, sfx_lib, sot_lib, tl_lib, utl_lib],
+ gnu_symbol_visibility: 'hidden',
install: true,
)
diff --git a/svl/meson.build b/svl/meson.build
index 19f43733e891..80d4c95d2a98 100644
--- a/svl/meson.build
+++ b/svl/meson.build
@@ -82,5 +82,6 @@ svl_lib = shared_library('svllo',
include_directories: [main_inc, udkh_inc, offapi_inc, setup_inc, 'source/inc'],
link_with: [basegfx_lib, comphelper_lib, cppuhelper_lib, cppu_lib, i18nutil_lib, i18nlangtag_lib, sal_lib, sot_lib, jvmfwk_lib, tl_lib, ucbhelper_lib, utl_lib],
dependencies: [icuuc_dep, icu18_dep, libxml_dep, mdds_dep],
+ gnu_symbol_visibility: 'hidden',
install: true,
)
diff --git a/sw/meson.build b/sw/meson.build
index e1fd55dd7f92..f919e19479eb 100644
--- a/sw/meson.build
+++ b/sw/meson.build
@@ -701,6 +701,7 @@ sw_lib = shared_library('swlo',
include_directories: [main_inc, udkh_inc, offapi_inc, oovbaapi_inc, 'inc', 'source/core/inc', 'source/uibase/inc', 'source/filter/inc', setup_inc],
link_with: [avmedia_lib, basegfx_lib, comphelper_lib, cppuhelper_lib, cppu_lib, dbtools_lib, drawinglayer_lib, editeng_lib, i18nlangtag_lib, i18nutil_lib, lng_lib, msfilter_lib, salhelper_lib, sal_lib, sax_lib, sb_lib, sfx_lib, sot_lib, svl_lib, svt_lib, svxcore_lib, svx_lib, tk_lib, tl_lib, ucbhelper_lib, utl_lib, vbahelper_lib, vcl_lib, xmlreader_lib, xo_lib],
dependencies: [icuuc_dep, libxml_dep],
+ gnu_symbol_visibility: 'hidden',
install: true,
)
@@ -804,6 +805,7 @@ swui_lib = shared_library('swuilo',
include_directories: [main_inc, udkh_inc, offapi_inc, 'inc', 'source/uibase/inc', 'source/ui/inc', setup_inc],
link_with: [comphelper_lib, cppuhelper_lib, cppu_lib, dbtools_lib, editeng_lib, i18nlangtag_lib, i18nutil_lib, msfilter_lib, sal_lib, salhelper_lib, sfx_lib, sot_lib, svl_lib, svt_lib, svx_lib, svxcore_lib, sw_lib, tk_lib, tl_lib, ucbhelper_lib, utl_lib, vcl_lib, drawinglayer_lib],
dependencies: [],
+ gnu_symbol_visibility: 'hidden',
install: true,
)
diff --git a/tools/meson.build b/tools/meson.build
index 81bc5438e2f6..34fc834ee7fe 100644
--- a/tools/meson.build
+++ b/tools/meson.build
@@ -52,6 +52,7 @@ tl_lib = shared_library('tllo',
include_directories: [main_inc, udkh_inc, offapi_inc, 'inc'],
link_with: [basegfx_lib, comphelper_lib, i18nlangtag_lib, cppu_lib, cppuhelper_lib, sal_lib],
dependencies: [libxml_dep, zlib_dep],
+ gnu_symbol_visibility: 'hidden',
install: true,
)
diff --git a/ucbhelper/meson.build b/ucbhelper/meson.build
index 38d85661841e..dc7c35b39c52 100644
--- a/ucbhelper/meson.build
+++ b/ucbhelper/meson.build
@@ -29,5 +29,6 @@ ucbhelper_lib = shared_library('ucbhelperlo',
'-DLIBO_INTERNAL_ONLY' ],
include_directories: [main_inc, udkh_inc, offapi_inc],
link_with: [cppuhelper_lib, cppu_lib, salhelper_lib, sal_lib],
+ gnu_symbol_visibility: 'hidden',
install: true,
)
diff --git a/unoidl/meson.build b/unoidl/meson.build
index 5b696a23c9b6..be418d8fa686 100644
--- a/unoidl/meson.build
+++ b/unoidl/meson.build
@@ -19,6 +19,7 @@ unoidl_lib = shared_library('unoidllo',
'-DLIBO_INTERNAL_ONLY'],
include_directories: [main_inc, 'source'],
link_with: [reg_lib, salhelper_lib, sal_lib],
+ gnu_symbol_visibility: 'hidden',
install: true,
)
diff --git a/unotools/meson.build b/unotools/meson.build
index d017acab1c1a..df66095ae88a 100644
--- a/unotools/meson.build
+++ b/unotools/meson.build
@@ -73,5 +73,6 @@ utl_lib = shared_library('utllo',
include_directories: [main_inc, udkh_inc, offapi_inc, setup_inc, 'inc'],
link_with: [comphelper_lib, cppuhelper_lib, cppu_lib, i18nlangtag_lib, tl_lib, ucbhelper_lib, tl_lib, salhelper_lib, sal_lib],
dependencies:[boost_locale_dep],
+ gnu_symbol_visibility: 'hidden',
install: true,
)
diff --git a/vcl/meson.build b/vcl/meson.build
index f81f0f7e5e30..72e9746169ba 100644
--- a/vcl/meson.build
+++ b/vcl/meson.build
@@ -426,6 +426,7 @@ vcl_lib = shared_library('vcllo',
'-DTK_DLL_NAME="libtk.so"'],
link_with: [svl_lib, tl_lib, utl_lib, sot_lib, ucbhelper_lib, basegfx_lib, comphelper_lib, cppuhelper_lib, i18nlangtag_lib, i18nutil_lib, cppu_lib, salhelper_lib, sal_lib, xmlreader_lib],
dependencies: [harfbuzz_dep, harfbuzz_icu_dep, fc_dep, glm_dep, cairo_dep, eot_dep, jpg_dep, png_dep, icuuc_dep, graphite_dep, dl_dep, lcms_dep, epoxy_dep, gio_dep, dbus_dep, xext_dep, x11_dep],
+ gnu_symbol_visibility: 'hidden',
install: true,
)
@@ -470,6 +471,7 @@ vclplug_gtk3 = shared_library('vclplug_gtk3lo',
'-Wno-deprecated-declarations'],
link_with: [vcl_lib, svl_lib, utl_lib, ucbhelper_lib, basegfx_lib, comphelper_lib, cppuhelper_lib, tl_lib, sot_lib, i18nlangtag_lib, i18nutil_lib, cppu_lib, sal_lib],
dependencies: [gtk3_dep, gtkprint_dep, epoxy_dep, dl_dep, x11_dep],
+ gnu_symbol_visibility: 'hidden',
install: true,
)
@@ -530,10 +532,11 @@ vclplug_gen = shared_library('vclplug_genlo',
sal_lib,
],
dependencies: [harfbuzz_dep, freetype_dep, cairo_dep, epoxy_dep, xrender_dep, xrandr_dep, xext_dep, sm_dep, ice_dep, x11_dep],
+ gnu_symbol_visibility: 'hidden',
install: true,
)
-executable('svdem',
+executable('svdemo',
'workben/svdem.cxx',
udk_fake_h, off_fake_h,
cpp_args: ['-DLIBO_INTERNAL_ONLY'],
diff --git a/xmlreader/meson.build b/xmlreader/meson.build
index aac1ee4c020c..27c680118f18 100644
--- a/xmlreader/meson.build
+++ b/xmlreader/meson.build
@@ -6,5 +6,6 @@ xmlreader_lib = shared_library('xmlreaderlo',
include_directories: [main_inc, udkh_inc],
link_with: [cppu_lib, sal_lib],
cpp_args: ['-DLIBO_INTERNAL_ONLY'],
+ gnu_symbol_visibility: 'hidden',
install: true,
)