The Meson Build System
http://mesonbuild.com/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
11 lines
391 B
11 lines
391 B
5 years ago
|
project('persubproject options', 'c', default_options : ['default_library=both'])
|
||
|
|
||
|
assert(get_option('default_library') == 'both', 'Parent default_library should be "both"')
|
||
|
|
||
|
# Check it build both by calling a method only both_libraries target implement
|
||
|
lib = library('lib1', 'foo.c')
|
||
|
lib.get_static_lib()
|
||
|
|
||
|
subproject('sub1')
|
||
|
subproject('sub2', default_options : ['default_library=static'])
|