summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChun-wei Fan <fanchunwei@src.gnome.org>2019-11-20 15:38:41 +0800
committerChun-wei Fan <fanchunwei@src.gnome.org>2020-10-09 09:32:27 +0800
commit58b749f9bfe00bdd63f82db8f45228d9f841a83b (patch)
tree5bdbc35b736d0b98d908b9030999f8a7148a6ab3
parentaad052d6808fbd79d139f94fc88dc3e6f0947910 (diff)
downloadlibpeas-58b749f9bfe00bdd63f82db8f45228d9f841a83b.tar.gz
embedded tests: Force export of generated resource code
The 'export' option for glib-compile-resources needs to be updated for Visual Studio builds, so that such symbols are really exported. Before this happens in GLib-2.64.4, force export of the symbols we need for the tests.
-rw-r--r--tests/libpeas/plugins/embedded/meson.build7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/libpeas/plugins/embedded/meson.build b/tests/libpeas/plugins/embedded/meson.build
index c3e1b93..00232bf 100644
--- a/tests/libpeas/plugins/embedded/meson.build
+++ b/tests/libpeas/plugins/embedded/meson.build
@@ -1,5 +1,11 @@
libembedded_name = 'embedded'
+if cc.get_id() == 'msvc' and glib_dep.version() < '2.64.4'
+ libembedded_link_args = ['-export:embedded_register_resource']
+else
+ libembedded_link_args = []
+endif
+
libembedded_public_h = [
'embedded-plugin.h',
]
@@ -34,6 +40,7 @@ libembedded_lib = shared_library(
libembedded_c + libembedded_res,
include_directories: rootdir,
dependencies: libembedded_deps,
+ link_args: libembedded_link_args,
install: false,
)