diff options
author | Angelos Mouzakitis <a.mouzakitis@virtualopensystems.com> | 2023-10-10 14:33:42 +0000 |
---|---|---|
committer | Angelos Mouzakitis <a.mouzakitis@virtualopensystems.com> | 2023-10-10 14:33:42 +0000 |
commit | af1a266670d040d2f4083ff309d732d648afba2a (patch) | |
tree | 2fc46203448ddcc6f81546d379abfaeb323575e9 /meson/test cases/unit/48 reconfigure | |
parent | e02cda008591317b1625707ff8e115a4841aa889 (diff) |
Change-Id: Iaf8d18082d3991dec7c0ebbea540f092188eb4ec
Diffstat (limited to 'meson/test cases/unit/48 reconfigure')
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')) |