From af1a266670d040d2f4083ff309d732d648afba2a Mon Sep 17 00:00:00 2001 From: Angelos Mouzakitis Date: Tue, 10 Oct 2023 14:33:42 +0000 Subject: Add submodule dependency files Change-Id: Iaf8d18082d3991dec7c0ebbea540f092188eb4ec --- meson/test cases/unit/48 reconfigure/main.c | 4 ++++ meson/test cases/unit/48 reconfigure/meson.build | 11 +++++++++++ meson/test cases/unit/48 reconfigure/meson_options.txt | 4 ++++ .../unit/48 reconfigure/subprojects/sub1/meson.build | 3 +++ 4 files changed, 22 insertions(+) create mode 100644 meson/test cases/unit/48 reconfigure/main.c create mode 100644 meson/test cases/unit/48 reconfigure/meson.build create mode 100644 meson/test cases/unit/48 reconfigure/meson_options.txt create mode 100644 meson/test cases/unit/48 reconfigure/subprojects/sub1/meson.build (limited to 'meson/test cases/unit/48 reconfigure') 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')) -- cgit 1.2.3-korg