From a94f32f1405398a560b05fa816367897a8dde7b8 Mon Sep 17 00:00:00 2001 From: Chun-wei Fan Date: Fri, 17 Apr 2020 18:07:51 +0800 Subject: [PATCH] gdbus-object-manager-example: Fix build on Visual Studio This ensures that we do really export the symbols for Visual Studio-style builds, by using _GLIB_EXTERN to decorate the generated prototypes and including config.h so that we are sure the symbols are actually exported. --- gio/tests/gdbus-object-manager-example/meson.build | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gio/tests/gdbus-object-manager-example/meson.build b/gio/tests/gdbus-object-manager-example/meson.build index 4cfb848d3..f9c3bce26 100644 --- a/gio/tests/gdbus-object-manager-example/meson.build +++ b/gio/tests/gdbus-object-manager-example/meson.build @@ -13,6 +13,8 @@ gdbus_example_objectmanager_generated = custom_target('objectmanager-gen', '--output-directory', '@OUTDIR@', '--generate-c-code', 'objectmanager-gen', '--generate-docbook', 'objectmanager-gen', + '--symbol-decorator', '_GLIB_EXTERN', + '--symbol-decorator-define', 'HAVE_CONFIG_H', '@INPUT@']) libgdbus_example_objectmanager = library('gdbus-example-objectmanager',