aboutsummaryrefslogtreecommitdiffstats
path: root/meson/test cases/unit/48 reconfigure
diff options
context:
space:
mode:
Diffstat (limited to 'meson/test cases/unit/48 reconfigure')
-rw-r--r--meson/test cases/unit/48 reconfigure/main.c4
-rw-r--r--meson/test cases/unit/48 reconfigure/meson.build11
-rw-r--r--meson/test cases/unit/48 reconfigure/meson_options.txt4
-rw-r--r--meson/test cases/unit/48 reconfigure/subprojects/sub1/meson.build3
4 files changed, 22 insertions, 0 deletions
diff --git a/meson/test cases/unit/48 reconfigure/main.c b/meson/test cases/unit/48 reconfigure/main.c
new file mode 100644
index 000000000..25927f5a1
--- /dev/null
+++ b/meson/test cases/unit/48 reconfigure/main.c
@@ -0,0 +1,4 @@
+int main(int argc, char *argv[])
+{
+ return 0;
+}
diff --git a/meson/test cases/unit/48 reconfigure/meson.build b/meson/test cases/unit/48 reconfigure/meson.build
new file mode 100644
index 000000000..4f35458a8
--- /dev/null
+++ b/meson/test cases/unit/48 reconfigure/meson.build
@@ -0,0 +1,11 @@
+project('test-reconfigure', 'c')
+
+message('opt1 ' + get_option('opt1'))
+message('opt2 ' + get_option('opt2'))
+message('opt3 ' + get_option('opt3'))
+message('opt4 ' + get_option('opt4'))
+
+exe = executable('test1', 'main.c')
+test('test1', exe)
+
+sub1 = subproject('sub1')
diff --git a/meson/test cases/unit/48 reconfigure/meson_options.txt b/meson/test cases/unit/48 reconfigure/meson_options.txt
new file mode 100644
index 000000000..728f7b782
--- /dev/null
+++ b/meson/test cases/unit/48 reconfigure/meson_options.txt
@@ -0,0 +1,4 @@
+option('opt1', type : 'string', value : 'default1')
+option('opt2', type : 'string', value : 'default2')
+option('opt3', type : 'string', value : 'default3')
+option('opt4', type : 'string', value : 'default4')
diff --git a/meson/test cases/unit/48 reconfigure/subprojects/sub1/meson.build b/meson/test cases/unit/48 reconfigure/subprojects/sub1/meson.build
new file mode 100644
index 000000000..4f3d2fc4e
--- /dev/null
+++ b/meson/test cases/unit/48 reconfigure/subprojects/sub1/meson.build
@@ -0,0 +1,3 @@
+project('sub1')
+
+message('sub1:werror', get_option('werror'))