aboutsummaryrefslogtreecommitdiffstats
path: root/meson/test cases/common/233 wrap case
diff options
context:
space:
mode:
Diffstat (limited to 'meson/test cases/common/233 wrap case')
-rw-r--r--meson/test cases/common/233 wrap case/meson.build6
-rw-r--r--meson/test cases/common/233 wrap case/prog.c13
-rw-r--r--meson/test cases/common/233 wrap case/subprojects/up_down.wrap5
-rw-r--r--meson/test cases/common/233 wrap case/subprojects/up_down/meson.build3
-rw-r--r--meson/test cases/common/233 wrap case/subprojects/up_down/up_down.h3
5 files changed, 30 insertions, 0 deletions
diff --git a/meson/test cases/common/233 wrap case/meson.build b/meson/test cases/common/233 wrap case/meson.build
new file mode 100644
index 000000000..2b82bf392
--- /dev/null
+++ b/meson/test cases/common/233 wrap case/meson.build
@@ -0,0 +1,6 @@
+project('CaSe DePenDenCy In Wrap', 'c')
+
+d = dependency('UP_down')
+
+e = executable('prog', 'prog.c', dependencies: d)
+test('prog', e)
diff --git a/meson/test cases/common/233 wrap case/prog.c b/meson/test cases/common/233 wrap case/prog.c
new file mode 100644
index 000000000..5183deabd
--- /dev/null
+++ b/meson/test cases/common/233 wrap case/prog.c
@@ -0,0 +1,13 @@
+#include<up_down.h>
+#include<stdio.h>
+
+int main(int argc, char **argv) {
+ if(argc == 42) {
+ printf("Very sneaky, %s\n", argv[0]);
+ }
+#ifdef UP_IS_DOWN
+ return 0;
+#else
+ return 1;
+#endif
+}
diff --git a/meson/test cases/common/233 wrap case/subprojects/up_down.wrap b/meson/test cases/common/233 wrap case/subprojects/up_down.wrap
new file mode 100644
index 000000000..d66818fe8
--- /dev/null
+++ b/meson/test cases/common/233 wrap case/subprojects/up_down.wrap
@@ -0,0 +1,5 @@
+[wrap-file]
+directory = up_down
+
+[provide]
+UP_down = up_down_dep
diff --git a/meson/test cases/common/233 wrap case/subprojects/up_down/meson.build b/meson/test cases/common/233 wrap case/subprojects/up_down/meson.build
new file mode 100644
index 000000000..5db89d15d
--- /dev/null
+++ b/meson/test cases/common/233 wrap case/subprojects/up_down/meson.build
@@ -0,0 +1,3 @@
+project('up down', 'c')
+
+up_down_dep = declare_dependency(include_directories: '.')
diff --git a/meson/test cases/common/233 wrap case/subprojects/up_down/up_down.h b/meson/test cases/common/233 wrap case/subprojects/up_down/up_down.h
new file mode 100644
index 000000000..8d968ce14
--- /dev/null
+++ b/meson/test cases/common/233 wrap case/subprojects/up_down/up_down.h
@@ -0,0 +1,3 @@
+#pragma once
+
+#define UP_IS_DOWN