aboutsummaryrefslogtreecommitdiffstats
path: root/meson/test cases/common/130 include order/sub1
diff options
context:
space:
mode:
Diffstat (limited to 'meson/test cases/common/130 include order/sub1')
-rw-r--r--meson/test cases/common/130 include order/sub1/main.h1
-rw-r--r--meson/test cases/common/130 include order/sub1/meson.build4
-rw-r--r--meson/test cases/common/130 include order/sub1/some.c6
-rw-r--r--meson/test cases/common/130 include order/sub1/some.h10
4 files changed, 21 insertions, 0 deletions
diff --git a/meson/test cases/common/130 include order/sub1/main.h b/meson/test cases/common/130 include order/sub1/main.h
new file mode 100644
index 000000000..acf4a358c
--- /dev/null
+++ b/meson/test cases/common/130 include order/sub1/main.h
@@ -0,0 +1 @@
+#error "sub1/main.h included"
diff --git a/meson/test cases/common/130 include order/sub1/meson.build b/meson/test cases/common/130 include order/sub1/meson.build
new file mode 100644
index 000000000..9672945b6
--- /dev/null
+++ b/meson/test cases/common/130 include order/sub1/meson.build
@@ -0,0 +1,4 @@
+i = include_directories('.')
+l = shared_library('somelib', 'some.c')
+dep = declare_dependency(link_with : l,
+ include_directories : i)
diff --git a/meson/test cases/common/130 include order/sub1/some.c b/meson/test cases/common/130 include order/sub1/some.c
new file mode 100644
index 000000000..1ab0db4dd
--- /dev/null
+++ b/meson/test cases/common/130 include order/sub1/some.c
@@ -0,0 +1,6 @@
+#if defined _WIN32 || defined __CYGWIN__
+ __declspec(dllexport)
+#endif
+int somefunc(void) {
+ return 1984;
+}
diff --git a/meson/test cases/common/130 include order/sub1/some.h b/meson/test cases/common/130 include order/sub1/some.h
new file mode 100644
index 000000000..6479492ea
--- /dev/null
+++ b/meson/test cases/common/130 include order/sub1/some.h
@@ -0,0 +1,10 @@
+#pragma once
+
+#if defined _WIN32 || defined __CYGWIN__
+ #define DLL_PUBLIC __declspec(dllimport)
+#else
+ #define DLL_PUBLIC
+#endif
+
+DLL_PUBLIC
+int somefunc(void);