[evince/wip/chpe/symbols-visibility: 13/13] build: Use symbol visibility to hide symbols in the nautilus module
- From: Christian Persch <chpe src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evince/wip/chpe/symbols-visibility: 13/13] build: Use symbol visibility to hide symbols in the nautilus module
- Date: Wed, 1 Dec 2021 15:52:12 +0000 (UTC)
commit b80ad518df181577064ff098d2e2cb9e5741c88c
Author: Christian Persch <chpe src gnome org>
Date: Wed Dec 1 16:51:33 2021 +0100
build: Use symbol visibility to hide symbols in the nautilus module
Use the visibility attribute to hide all symbols from private
convenience static libraries used in the backends.
properties/ev-properties-main.c | 4 ++++
properties/meson.build | 2 ++
2 files changed, 6 insertions(+)
---
diff --git a/properties/ev-properties-main.c b/properties/ev-properties-main.c
index 9aacdf28d..5c6095dd1 100644
--- a/properties/ev-properties-main.c
+++ b/properties/ev-properties-main.c
@@ -144,6 +144,8 @@ end:
}
/* --- extension interface --- */
+
+EV_PUBLIC
void
nautilus_module_initialize (GTypeModule *module)
{
@@ -153,12 +155,14 @@ nautilus_module_initialize (GTypeModule *module)
ev_init ();
}
+EV_PUBLIC
void
nautilus_module_shutdown (void)
{
ev_shutdown ();
}
+EV_PUBLIC
void
nautilus_module_list_types (const GType **types,
int *num_types)
diff --git a/properties/meson.build b/properties/meson.build
index 50e65bee2..f111cc36f 100644
--- a/properties/meson.build
+++ b/properties/meson.build
@@ -3,6 +3,7 @@ libevproperties = static_library(
sources: 'ev-properties-view.c',
include_directories: top_inc,
dependencies: libevdocument_dep,
+ gnu_symbol_visibility: 'hidden',
)
libevproperties_dep = declare_dependency(
@@ -26,5 +27,6 @@ if enable_nautilus
install: true,
install_dir: nautilus_extension_dir,
name_suffix: name_suffix,
+ gnu_symbol_visibility: 'hidden',
)
endif
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]