aboutsummaryrefslogtreecommitdiffstats
path: root/meson/test cases/unit/34 command line
diff options
context:
space:
mode:
Diffstat (limited to 'meson/test cases/unit/34 command line')
-rw-r--r--meson/test cases/unit/34 command line/meson.build9
-rw-r--r--meson/test cases/unit/34 command line/meson_options.txt2
-rw-r--r--meson/test cases/unit/34 command line/subprojects/subp/meson.build3
-rw-r--r--meson/test cases/unit/34 command line/subprojects/subp/meson_options.txt1
4 files changed, 15 insertions, 0 deletions
diff --git a/meson/test cases/unit/34 command line/meson.build b/meson/test cases/unit/34 command line/meson.build
new file mode 100644
index 000000000..6207ca5e2
--- /dev/null
+++ b/meson/test cases/unit/34 command line/meson.build
@@ -0,0 +1,9 @@
+project('command line test', 'c',
+ default_options : ['default_library=static', 'set_sub_opt=true']
+)
+
+if get_option('set_sub_opt')
+ subproject('subp', default_options : ['subp_opt=default3'])
+else
+ subproject('subp')
+endif
diff --git a/meson/test cases/unit/34 command line/meson_options.txt b/meson/test cases/unit/34 command line/meson_options.txt
new file mode 100644
index 000000000..244f57067
--- /dev/null
+++ b/meson/test cases/unit/34 command line/meson_options.txt
@@ -0,0 +1,2 @@
+option('set_sub_opt', type : 'boolean', value : false)
+option('set_percent_opt', type : 'string', value: 'not_set')
diff --git a/meson/test cases/unit/34 command line/subprojects/subp/meson.build b/meson/test cases/unit/34 command line/subprojects/subp/meson.build
new file mode 100644
index 000000000..cf79fa42a
--- /dev/null
+++ b/meson/test cases/unit/34 command line/subprojects/subp/meson.build
@@ -0,0 +1,3 @@
+project('subp',
+ default_options : ['subp_opt=default2']
+)
diff --git a/meson/test cases/unit/34 command line/subprojects/subp/meson_options.txt b/meson/test cases/unit/34 command line/subprojects/subp/meson_options.txt
new file mode 100644
index 000000000..8c50615dd
--- /dev/null
+++ b/meson/test cases/unit/34 command line/subprojects/subp/meson_options.txt
@@ -0,0 +1 @@
+option('subp_opt', type : 'string', value : 'default1')