[libadwaita/msvc: 42/42] adw-inspector-module.c: Export interface symbols
- From: Chun-wei Fan <fanchunwei src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libadwaita/msvc: 42/42] adw-inspector-module.c: Export interface symbols
- Date: Wed, 24 Nov 2021 08:26:30 +0000 (UTC)
commit 7933b6235237b0f6ed6ae2de6dc391c811583ad0
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]