[geary/mjog/hide-internal-symbols] build: Hide internal symbols
- From: Michael Gratton <mjog src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [geary/mjog/hide-internal-symbols] build: Hide internal symbols
- Date: Tue, 27 Apr 2021 11:07:35 +0000 (UTC)
commit 9304d3d88fa8a267b74736a318238d67f81f7985
Author: Michael Gratton <mike vee net>
Date: Tue Apr 27 21:04:29 2021 +1000
build: Hide internal symbols
Enable the `--hide-internal` valac option, and build the client lib
as both shared and static libs, so that the client tests can access
internal symbols via the static library.
src/client/meson.build | 5 +++--
src/meson.build | 1 +
2 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/src/client/meson.build b/src/client/meson.build
index ff3c8a6d3..09f566407 100644
--- a/src/client/meson.build
+++ b/src/client/meson.build
@@ -193,8 +193,9 @@ if webkit2gtk.version().version_compare('<2.31')
client_vala_args += [ '--define=WEBKIT_PLUGINS_SUPPORTED' ]
endif
-# Main client application library
-client_lib = shared_library(
+# Main client application library. Built as both shared and static, so
+# the client tests can access internal symbols via the static library.
+client_lib = both_libraries(
client_package,
client_vala_sources + geary_resources,
dependencies: client_dependencies,
diff --git a/src/meson.build b/src/meson.build
index 5eded12e6..57289799d 100644
--- a/src/meson.build
+++ b/src/meson.build
@@ -24,6 +24,7 @@ configure_file(output: 'config.h', configuration: conf)
geary_vala_args = [
'--abi-stability',
'--enable-checking',
+ '--hide-internal',
]
# Remove once libhandy 1.0 has been packaged and is widely available
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]