parent
64372d5cfc
commit
e5099357c2
11 changed files with 66 additions and 1 deletions
@ -0,0 +1,11 @@ |
||||
## `introspect --buildoptions` can now be used without configured build directory |
||||
|
||||
It is now possible to run `meson introspect --buildoptions /path/to/meson.build` |
||||
without a configured build directory. |
||||
|
||||
Running `--buildoptions` without a build directory produces the same output as running |
||||
it with a freshly configured build directory. |
||||
|
||||
However, this behavior is not guaranteed if subprojects are present. Due to internal |
||||
limitations all subprojects are processed even if they are never used in a real meson run. |
||||
Because of this options for the subprojects can differ. |
@ -0,0 +1,3 @@ |
||||
#!/usr/bin/env python3 |
||||
|
||||
print('c') |
@ -0,0 +1,11 @@ |
||||
project('introspect buildargs', ['c'], default_options: ['c_std=c11', 'cpp_std=c++14', 'buildtype=release']) |
||||
|
||||
subA = subproject('projectA') |
||||
|
||||
r = run_command(find_program('c_compiler.py')) |
||||
if r.returncode() != 0 |
||||
error('FAILED') |
||||
endif |
||||
|
||||
add_languages(r.stdout().strip(), required: true) |
||||
add_languages('afgggergearvearghergervergreaergaergasv', required: false) |
@ -0,0 +1,2 @@ |
||||
option('max_register_count', type: 'integer', min: 0, value: 125) |
||||
option('use_external_fmt', type: 'boolean', value: false) |
@ -0,0 +1,3 @@ |
||||
project('introspect subproject A', 'c', default_options: ['cpp_std=c++11', 'buildtype=debug']) |
||||
|
||||
add_languages('cpp') |
@ -0,0 +1 @@ |
||||
option('subproj_var', type: 'boolean', value: false) |
@ -0,0 +1,9 @@ |
||||
pfggggaergaeg(sdgrgjgn)aga |
||||
|
||||
rgqeh |
||||
th |
||||
thtr |
||||
e |
||||
tb |
||||
tbqebt |
||||
tbqebttrtt |
@ -0,0 +1 @@ |
||||
option('should_not_appear', type: 'integer', min: 0, value: 125) |
Loading…
Reference in new issue