diff options
| author | Jussi Pakkanen <jpakkane@gmail.com> | 2018-07-31 19:22:24 +0300 |
|---|---|---|
| committer | Jussi Pakkanen <jpakkane@gmail.com> | 2018-07-31 19:22:24 +0300 |
| commit | 17bfbb99e5897ac759aca42d3ee375ebb33bd087 (patch) | |
| tree | 8df2a3f7cbfcca9c30df15404f0227dfe0107705 /test cases/unit/34 command line | |
| parent | 2bc0f56b21a6dd327a6907c5fe27885b05db49d5 (diff) | |
| download | meson-17bfbb99e5897ac759aca42d3ee375ebb33bd087.tar.gz | |
Condense test dirs.
Diffstat (limited to 'test cases/unit/34 command line')
4 files changed, 14 insertions, 0 deletions
diff --git a/test cases/unit/34 command line/meson.build b/test cases/unit/34 command line/meson.build new file mode 100644 index 000000000..6207ca5e2 --- /dev/null +++ b/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/test cases/unit/34 command line/meson_options.txt b/test cases/unit/34 command line/meson_options.txt new file mode 100644 index 000000000..7acc112d8 --- /dev/null +++ b/test cases/unit/34 command line/meson_options.txt @@ -0,0 +1 @@ +option('set_sub_opt', type : 'boolean', value : false) diff --git a/test cases/unit/34 command line/subprojects/subp/meson.build b/test cases/unit/34 command line/subprojects/subp/meson.build new file mode 100644 index 000000000..cf79fa42a --- /dev/null +++ b/test cases/unit/34 command line/subprojects/subp/meson.build @@ -0,0 +1,3 @@ +project('subp', + default_options : ['subp_opt=default2'] +) diff --git a/test cases/unit/34 command line/subprojects/subp/meson_options.txt b/test cases/unit/34 command line/subprojects/subp/meson_options.txt new file mode 100644 index 000000000..8c50615dd --- /dev/null +++ b/test cases/unit/34 command line/subprojects/subp/meson_options.txt @@ -0,0 +1 @@ +option('subp_opt', type : 'string', value : 'default1') |
