aboutsummaryrefslogtreecommitdiffstats
path: root/meson/test cases/common/46 subproject subproject/subprojects/b
diff options
context:
space:
mode:
Diffstat (limited to 'meson/test cases/common/46 subproject subproject/subprojects/b')
-rw-r--r--meson/test cases/common/46 subproject subproject/subprojects/b/b.c14
-rw-r--r--meson/test cases/common/46 subproject subproject/subprojects/b/meson.build3
2 files changed, 17 insertions, 0 deletions
diff --git a/meson/test cases/common/46 subproject subproject/subprojects/b/b.c b/meson/test cases/common/46 subproject subproject/subprojects/b/b.c
new file mode 100644
index 000000000..8c07177a6
--- /dev/null
+++ b/meson/test cases/common/46 subproject subproject/subprojects/b/b.c
@@ -0,0 +1,14 @@
+#if defined _WIN32 || defined __CYGWIN__
+ #define DLL_PUBLIC __declspec(dllexport)
+#else
+ #if defined __GNUC__
+ #define DLL_PUBLIC __attribute__ ((visibility("default")))
+ #else
+ #pragma message ("Compiler does not support symbol visibility.")
+ #define DLL_PUBLIC
+ #endif
+#endif
+
+int DLL_PUBLIC func2(void) {
+ return 42;
+}
diff --git a/meson/test cases/common/46 subproject subproject/subprojects/b/meson.build b/meson/test cases/common/46 subproject subproject/subprojects/b/meson.build
new file mode 100644
index 000000000..e7af6067a
--- /dev/null
+++ b/meson/test cases/common/46 subproject subproject/subprojects/b/meson.build
@@ -0,0 +1,3 @@
+project('b', 'c')
+
+lb = shared_library('b', 'b.c')