aboutsummaryrefslogtreecommitdiffstats
path: root/meson/test cases/common/205 native file path override
diff options
context:
space:
mode:
Diffstat (limited to 'meson/test cases/common/205 native file path override')
-rw-r--r--meson/test cases/common/205 native file path override/main.cpp5
-rw-r--r--meson/test cases/common/205 native file path override/meson.build7
-rw-r--r--meson/test cases/common/205 native file path override/nativefile.ini2
-rw-r--r--meson/test cases/common/205 native file path override/test.json6
4 files changed, 20 insertions, 0 deletions
diff --git a/meson/test cases/common/205 native file path override/main.cpp b/meson/test cases/common/205 native file path override/main.cpp
new file mode 100644
index 000000000..91bc80906
--- /dev/null
+++ b/meson/test cases/common/205 native file path override/main.cpp
@@ -0,0 +1,5 @@
+#include <iostream>
+
+int main(void) {
+ std::cout << "Hello world!" << std::endl;
+}
diff --git a/meson/test cases/common/205 native file path override/meson.build b/meson/test cases/common/205 native file path override/meson.build
new file mode 100644
index 000000000..142ca1cfc
--- /dev/null
+++ b/meson/test cases/common/205 native file path override/meson.build
@@ -0,0 +1,7 @@
+project('native file install dir override', 'cpp')
+
+if meson.is_cross_build()
+ error('MESON_SKIP_TEST cannot test native build rules in cross build')
+endif
+
+executable('main', 'main.cpp', install : true)
diff --git a/meson/test cases/common/205 native file path override/nativefile.ini b/meson/test cases/common/205 native file path override/nativefile.ini
new file mode 100644
index 000000000..1c295c7d4
--- /dev/null
+++ b/meson/test cases/common/205 native file path override/nativefile.ini
@@ -0,0 +1,2 @@
+[paths]
+bindir = 'custom_bindir'
diff --git a/meson/test cases/common/205 native file path override/test.json b/meson/test cases/common/205 native file path override/test.json
new file mode 100644
index 000000000..7954c8ea8
--- /dev/null
+++ b/meson/test cases/common/205 native file path override/test.json
@@ -0,0 +1,6 @@
+{
+ "installed": [
+ {"type": "exe", "file": "usr/custom_bindir/main"},
+ {"type": "pdb", "file": "usr/custom_bindir/main"}
+ ]
+}