[gtk-doc/win-no-msys: 2/7] tests/gobject/src: Export symbols on MSVC builds
- From: Chun-wei Fan <fanchunwei src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk-doc/win-no-msys: 2/7] tests/gobject/src: Export symbols on MSVC builds
- Date: Fri, 17 Apr 2020 07:25:52 +0000 (UTC)
commit a727142335c3777b47bf94a7b41c0927caec6236
Author: Chun-wei Fan <fanchunwei src gnome org>
Date: Fri Apr 17 15:22:29 2020 +0800
tests/gobject/src: Export symbols on MSVC builds
Override _GTKDOC_TESTER_API with __declspec(dllexport) so that symbols are
exported from the built DLL.
tests/gobject/src/meson.build | 1 +
1 file changed, 1 insertion(+)
---
diff --git a/tests/gobject/src/meson.build b/tests/gobject/src/meson.build
index 155f5af..08c27e6 100644
--- a/tests/gobject/src/meson.build
+++ b/tests/gobject/src/meson.build
@@ -18,6 +18,7 @@ gobject_test_deps = [
extra_cflags = []
if cc.get_id() == 'msvc'
extra_cflags += '/FImsvc_recommended_pragmas.h'
+ extra_cflags += '/D_GTKDOC_TESTER_API=__declspec(dllexport)'
extra_cflags += cc.get_supported_arguments(['/utf-8'])
endif
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]