[libadwaita/msvc: 79/79] adw-inspector-module.c: Export interface symbols
- From: Chun-wei Fan <fanchunwei src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libadwaita/msvc: 79/79] adw-inspector-module.c: Export interface symbols
- Date: Thu, 30 Dec 2021 03:19:50 +0000 (UTC)
commit 111b2159a71afda2468946092b56bac6e5043d02
Author: Chun-wei Fan <fanchunwei src gnome org>
Date: Thu Nov 4 23:17:43 2021 +0800
adw-inspector-module.c: Export interface symbols
These symbols must be marked for export so that GIOModule can load the
libadwaita GTK inspector module.
src/inspector/meson.build | 6 ++++++
1 file changed, 6 insertions(+)
---
diff --git a/src/inspector/meson.build b/src/inspector/meson.build
index 1d5d1fc1..84dab5b6 100644
--- a/src/inspector/meson.build
+++ b/src/inspector/meson.build
@@ -13,10 +13,16 @@ if get_option('inspector')
'adw-inspector-page.c',
]
+ extra_c_export_args = []
+ if cc.get_argument_syntax() == 'msvc'
+ extra_c_export_args += '-D_GLIB_EXTERN=__declspec(dllexport)'
+ endif
+
shared_module(
'adwaita-inspector-module' + apiversion,
libadwaita_inspector_sources,
dependencies: libadwaita_dep,
+ c_args: extra_c_export_args,
install: true,
install_dir: module_libdir,
)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]