summaryrefslogtreecommitdiff
path: root/mesonbuild/optinterpreter.py
Commit message (Collapse)AuthorAgeFilesLines
* Warn on unknown command line argumentsDylan Baker2017-12-191-0/+9
| | | | | | | I have a tendency to typo things. Humans in general are bad at spotting spelling mistakes, computers are not. This patches prints the bad options and provides the generic meson "This will be a hard error someday" message.
* Renamed UserStringArrayOption to UserArrayOption for short.Jussi Pakkanen2017-12-071-1/+1
|
* String arguments can permit arbitrary string valuesJussi Pakkanen2017-12-031-9/+11
| | | | by leaving out the choices keyword.
* Add new array type optionDylan Baker2017-11-291-0/+16
| | | | | | | This exposes the already existing UserStringArrayOption class through the meson_options.txt. The intention is to provide a way for projects to take list/array type arguments and validate that all of the elements in that array are valid without using complex looping constructrs.
* coredata: Remove parse_string() methodXavier Claessens2017-11-061-1/+1
| | | | | | | set_value() already does a better job at parsing strings, such as accepting "True" for a boolean. This fixes issue #2544
* options: Add a permitted_kwargs functionDylan Baker2017-10-041-3/+24
| | | | | | | | | | I've typo'd "value" for the last time, options needs a kwargs validator. This validator is slightly different than the one used by the main parser, since it operates on a much simpler representation than the other one does, and they are not interchangeable. This also changes the optinterpreter to use pop on 'type' and 'description' so that they're not passed to the validator as kwargs.
* Add option to limit maximum number of concurrent link processes.Jussi Pakkanen2017-08-051-11/+12
|
* Allow option values to contain ':'Nirbheek Chauhan2017-04-041-3/+4
| | | | | | | Instead, check that option keys don't contain ':'. Also change the failing option test to look for this. Closes https://github.com/mesonbuild/meson/issues/1454
* cleanup: Remove redundant parenthesesMike Sinkovsky2017-01-181-1/+1
|
* Merge pull request #1260 from mesonbuild/subproj_defaultsJussi Pakkanen2017-01-031-0/+7
|\ | | | | Can set subproject option defaults from command line and master project
| * Can set project options (but not global options) in subproject default options.Jussi Pakkanen2016-12-291-0/+7
| |
* | style: fix E124 violationsIgor Gnatenko2017-01-011-1/+1
| | | | | | | | | | | | E124: closing bracket does not match visual indentation Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
* | Fix space before :.Jussi Pakkanen2016-12-311-3/+3
|/
* Raise clearer error if -Doption is invalid.Elliott Sales de Andrade2016-12-211-1/+4
|
* tree-wide: use proper 'not in' notationIgor Gnatenko2016-12-191-1/+1
| | | | | | Let's be more pythonic and 'not is' seems really weird. Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
* Store subdir information for each node so we can remove files set in other ↵Jussi Pakkanen2016-12-041-1/+1
| | | | subdirectories.
* Use context manager for file I/O.Elliott Sales de Andrade2016-08-271-1/+2
| | | | | There are a few cases where a context manager cannot be used, such as the logger.
* Flatten isinstance calls. (#715)Elliott Sales de Andrade2016-08-271-5/+2
| | | | That is, isinstance(x, y) or isinstance(x, z) can be flattened with a tuple to isinstance(x, (y, z)).
* Implement D supportMatthias Klumpp2016-08-191-0/+1
| | | | | | | | | | | This patch adds support for the D programming language[1] to Meson. The following compilers are supported: * LDC * GDC * DMD [1]: http://dlang.org/
* coredata: Centralize builtin option descriptions and definitions.Hemmo Nieminen2016-04-041-1/+1
|
* Move MesonException from coredata to mesonlib.Hemmo Nieminen2016-04-011-2/+3
|
* Merge branch 'base_options'.Jussi Pakkanen2016-03-201-3/+6
|\
| * Preserve b_ prefix for base option names.Jussi Pakkanen2016-03-201-3/+6
| |
* | Open Meson and option files explicitly as utf-8. Closes #467.Jussi Pakkanen2016-03-201-1/+1
|/
* Renamed meson package to mesonbuild so that we can have a script named meson ↵Jussi Pakkanen2016-01-161-0/+148
in the same toplevel dir.