-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
65 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#!/usr/bin/env python3 | ||
|
||
print('c') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
option('max_register_count', type: 'integer', min: 0, value: 125) | ||
option('use_external_fmt', type: 'boolean', value: false) |
Empty file.
3 changes: 3 additions & 0 deletions
3
test cases/unit/51 introspect buildoptions/subprojects/projectA/meson.build
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
project('introspect subproject A', 'c', default_options: ['cpp_std=c++11', 'buildtype=debug']) | ||
|
||
add_languages('cpp') |
1 change: 1 addition & 0 deletions
1
test cases/unit/51 introspect buildoptions/subprojects/projectA/meson_options.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
option('subproj_var', type: 'boolean', value: false) |
9 changes: 9 additions & 0 deletions
9
test cases/unit/51 introspect buildoptions/subprojects/projectBad/meson.build
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
pfggggaergaeg(sdgrgjgn)aga | ||
|
||
rgqeh | ||
th | ||
thtr | ||
e | ||
tb | ||
tbqebt | ||
tbqebttrtt |
1 change: 1 addition & 0 deletions
1
test cases/unit/51 introspect buildoptions/subprojects/projectBad/meson_options.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
option('should_not_appear', type: 'integer', min: 0, value: 125) |