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/common/166 yield/subprojects/sub/meson.build | 5 +++++ meson/test cases/common/166 yield/subprojects/sub/meson_options.txt | 3 +++ 2 files changed, 8 insertions(+) create mode 100644 meson/test cases/common/166 yield/subprojects/sub/meson.build create mode 100644 meson/test cases/common/166 yield/subprojects/sub/meson_options.txt (limited to 'meson/test cases/common/166 yield/subprojects/sub') diff --git a/meson/test cases/common/166 yield/subprojects/sub/meson.build b/meson/test cases/common/166 yield/subprojects/sub/meson.build new file mode 100644 index 000000000..832c13cc2 --- /dev/null +++ b/meson/test cases/common/166 yield/subprojects/sub/meson.build @@ -0,0 +1,5 @@ +project('subbie', 'c') + +assert(get_option('unshared_option') == 'three', 'Unshared option has wrong value in subproject.') +assert(get_option('shared_option') == 'two', 'Shared option has wrong value in subproject.') +assert(get_option('wrongtype_option') == true, 'Wrongtype option has wrong value in subproject.') diff --git a/meson/test cases/common/166 yield/subprojects/sub/meson_options.txt b/meson/test cases/common/166 yield/subprojects/sub/meson_options.txt new file mode 100644 index 000000000..101122eeb --- /dev/null +++ b/meson/test cases/common/166 yield/subprojects/sub/meson_options.txt @@ -0,0 +1,3 @@ +option('unshared_option', type : 'string', value : 'three', yield : false) +option('shared_option', type : 'string', value : 'four', yield : true) +option('wrongtype_option', type : 'boolean', value : true, yield : true) -- cgit 1.2.3-korg