[libadwaita/msvc: 19/19] adw-inspector-module.c: Export interface symbols




commit be133d77a5096a656873c5bb6965ee08fba646d5
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]