aboutsummaryrefslogtreecommitdiffstats
path: root/meson/test cases/common/106 multiple dir configure file
diff options
context:
space:
mode:
authorAngelos Mouzakitis <a.mouzakitis@virtualopensystems.com>2023-10-10 14:33:42 +0000
committerAngelos Mouzakitis <a.mouzakitis@virtualopensystems.com>2023-10-10 14:33:42 +0000
commitaf1a266670d040d2f4083ff309d732d648afba2a (patch)
tree2fc46203448ddcc6f81546d379abfaeb323575e9 /meson/test cases/common/106 multiple dir configure file
parente02cda008591317b1625707ff8e115a4841aa889 (diff)
Add submodule dependency filesHEADmaster
Change-Id: Iaf8d18082d3991dec7c0ebbea540f092188eb4ec
Diffstat (limited to 'meson/test cases/common/106 multiple dir configure file')
-rw-r--r--meson/test cases/common/106 multiple dir configure file/meson.build11
-rw-r--r--meson/test cases/common/106 multiple dir configure file/subdir/foo.txt0
-rw-r--r--meson/test cases/common/106 multiple dir configure file/subdir/meson.build11
-rw-r--r--meson/test cases/common/106 multiple dir configure file/subdir/someinput.in0
4 files changed, 22 insertions, 0 deletions
diff --git a/meson/test cases/common/106 multiple dir configure file/meson.build b/meson/test cases/common/106 multiple dir configure file/meson.build
new file mode 100644
index 000000000..a4615fae8
--- /dev/null
+++ b/meson/test cases/common/106 multiple dir configure file/meson.build
@@ -0,0 +1,11 @@
+project('multiple dir configure file', 'c')
+
+subdir('subdir')
+
+configure_file(input : 'subdir/someinput.in',
+ output : 'outputhere',
+ copy: true)
+
+configure_file(input : cfile1,
+ output : '@BASENAME@',
+ copy: true)
diff --git a/meson/test cases/common/106 multiple dir configure file/subdir/foo.txt b/meson/test cases/common/106 multiple dir configure file/subdir/foo.txt
new file mode 100644
index 000000000..e69de29bb
--- /dev/null
+++ b/meson/test cases/common/106 multiple dir configure file/subdir/foo.txt
diff --git a/meson/test cases/common/106 multiple dir configure file/subdir/meson.build b/meson/test cases/common/106 multiple dir configure file/subdir/meson.build
new file mode 100644
index 000000000..503df964a
--- /dev/null
+++ b/meson/test cases/common/106 multiple dir configure file/subdir/meson.build
@@ -0,0 +1,11 @@
+configure_file(input : 'someinput.in',
+ output : 'outputsubdir',
+ install : false,
+ copy: true)
+
+py3 = import('python3').find_python()
+
+cfile1 = configure_file(input : 'foo.txt',
+ output : 'foo.h.in',
+ capture : true,
+ command : [py3, '-c', 'print("#mesondefine FOO_BAR")'])
diff --git a/meson/test cases/common/106 multiple dir configure file/subdir/someinput.in b/meson/test cases/common/106 multiple dir configure file/subdir/someinput.in
new file mode 100644
index 000000000..e69de29bb
--- /dev/null
+++ b/meson/test cases/common/106 multiple dir configure file/subdir/someinput.in