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.
This commit is contained in:
Chun-wei Fan 2020-04-17 18:07:51 +08:00
parent d955719f04
commit a94f32f140

View File

@ -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',