summaryrefslogtreecommitdiff
path: root/mesonbuild/mintro.py
Commit message (Collapse)AuthorAgeFilesLines
* use real pathlib moduleDylan Baker2020-11-201-1/+1
| | | | | We added the _pathlib module to work around defeciencies in python 3.5's implementation, since we now rely on 3.6 lets drop this
* intro: Add extra_files key to intro output (fixes #7310)Daniel Mensinger2020-10-151-7/+17
|
* pathlib: Fix resolve() by overriding it in Python 3.5Daniel Mensinger2020-10-041-1/+1
|
* mesonlib: make OptionOverrideProxy a true MutableMappingDylan Baker2020-10-011-1/+1
| | | | | | | So that we can actually use it anyplace that an OptionDictType could be used. I've also done a bit optimizing/simplifying of the implementation. This is needed for cuda, as it returns an OptionOverrideProxy where we ask for an OptionDicType
* typing: fix code reviewDaniel Mensinger2020-09-081-1/+2
|
* typing: more fixesDaniel Mensinger2020-09-081-10/+9
|
* typing: fully annotate mintro and mtestDaniel Mensinger2020-09-081-12/+12
|
* introspect: add test dependencies info to test/benchmark JSONPaolo Bonzini2020-09-041-0/+1
| | | | | | | | | | | | Add the ids of any target that needs to be rebuilt before running the tests as computed by the backend, to the introspection data for tests and benchmarks. This also includes anything that appears on the test's command line. Without this information, IDEs must update the entire build before running any test. They can now instead selectively build the test executable itself and anything that is needed to run it. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
* mconf/mintro: use authoritative list of options from coredataDylan Baker2020-08-011-13/+1
| | | | | This splits the directory options and non-directory options into two dicts, and then merges them later to maintain API.
* mintro: typings again x2TheQwertiest2020-06-121-1/+1
| | | Co-authored-by: Dylan Baker <dylan@pnwbakers.com>
* mintro: more typing shenanigansTheQwertiest2020-06-121-1/+1
|
* mintro: typing fixTheQwertiest2020-06-121-1/+1
|
* mintro: typing fixTheQwertiest2020-06-121-1/+1
|
* mintro: enforced order for subcommandsTheQwertiest2020-06-121-12/+14
|
* Made --help options sortedTheQwertiest2020-06-091-1/+1
|
* ast: Add AST JSON printerDaniel Mensinger2020-05-231-1/+7
|
* Convert test protocol into an enumDylan Baker2020-04-301-1/+1
| | | | | This gives us better type safety, and will be important as we add more test methods
* Compiler options per langJohn Ericson2020-04-201-2/+9
| | | | | | | | | | | A current rather untyped storage of options is one of the things that contributes to the options code being so complex. This takes a small step in synching down by storing the compiler options in dicts per language. Future work might be replacing the langauge strings with an enum, and defaultdict with a custom struct, just like `PerMachine` and `MachineChoice`.
* intro: List symlinks in installdata (fixes #6734)Daniel Mensinger2020-03-081-3/+8
|
* types: Annotate mparser.pyDaniel Mensinger2020-03-021-2/+3
| | | | | | This also fixes that the keys in ArgumentNode.kwargs are all of the type BaseNode now. Before this commit, it was possible that both strings and Nodes where used as keys.
* Make 'default_library' per-subproject builtin optionXavier Claessens2020-02-061-2/+13
| | | | | | | | | | Currently it's just like if all builtin/base/compiler options are yielding. This patch makes possible to have non-yielding builtin options. The value in is overriden in this order: - Value from parent project - Value from subproject's default_options if set - Value from subproject() default_options if set - Value from command line if set
* mintro: use interpreter data for buildsystem-files (fixes #6390)Daniel Mensinger2020-01-281-13/+15
|
* types: import typing as T (fixes #6333)Daniel Mensinger2020-01-081-44/+44
|
* mintro: include test protocol in introspection dataPaolo Bonzini2019-12-131-0/+1
|
* mintro: Add version key to --scan-dependencies (fixes #6287)Daniel Mensinger2019-12-101-1/+8
|
* types: Add type annotations to mintro.pyDaniel Mensinger2019-12-071-120/+93
|
* lgtm: Fix redundant codeDaniel Mensinger2019-12-051-1/+0
|
* mintro: dependencies: added version keyDaniel Mensinger2019-11-141-0/+1
|
* Fix typos found by codespellWolfgang Stöggl2019-11-061-1/+1
| | | | - Typos were found by codespell v1.16.0
* Add missing newlines to "meson introspect" errorAaron Plattner2019-10-181-3/+3
| | | | | | | | | | | | | | | | The lack of newlines in the print() statement for this error causes the result to be jumbled and hard to read: $ ./meson.py introspect Current directory is not a meson build directory.Please specify a valid build dir or change the working directory to it.It is also possible that the build directory was generated with an oldmeson version. Please regenerate it in this case. Add newlines so the message is more readable: $ ./meson.py introspect Current directory is not a meson build directory. Please specify a valid build dir or change the working directory to it. It is also possible that the build directory was generated with an old meson version. Please regenerate it in this case.
* Add test priorities to force test start orderPeter Hutterer2019-08-241-0/+1
|
* mintro: Fix section key in buildoptionsDaniel Mensinger2019-07-171-6/+8
| | | | | | | | | | This reverts the changes to the `section` key for the buildoptions and moves the machine choice into it's own `machine` key. With this commit the __undocumented__ breaking change to the introspection format (introduced in 0.51.0) is reverted and a new key is added instead.
* mintro: Add installed subdirs introspection (fixes #5556)Daniel Mensinger2019-07-011-0/+2
|
* Per machine do 'build.' and '' option prefixesJohn Ericson2019-06-051-2/+12
| | | | See the docs/ changes for details.
* meson-introspect: do not include host environment in test/benchmark ↵Paolo Bonzini2019-05-281-1/+1
| | | | | | | | | | introspection The host environment could change between the time "meson setup" produces intro-tests.json, and the time "meson test" is run. Including it only adds clutter to the introspection data. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
* Use dependency cacheDylan Baker2019-05-201-1/+1
|
* UserOption no longer has a name field.John Ericson2019-05-151-2/+2
| | | | | | | This avoids the duplication where the option is stored in a dict at its name, and also contains its own name. In general, the maxim in programming is things shouldn't know their own name, so removed the name field just leaving the option's position in the dictionary as its name.
* Fix unused variables warningsDaniel Mensinger2019-04-291-3/+3
|
* Fix flake8-bugbear warningsDaniel Mensinger2019-04-291-1/+1
|
* Don't use len() to test for container emptinessDylan Baker2019-04-251-2/+2
| | | | | | I ran the numbers once before (it's in the meson history) but it's *much* faster to *not* use len for testing if a container is empty or not.
* mintro: removed deprecated --target-files APIDaniel Mensinger2019-04-081-32/+0
|
* mintro: Renamed --dependencies --> --scan-dependenciesDaniel Mensinger2019-03-031-0/+11
|
* mintro: Fix unit testDaniel Mensinger2019-03-031-0/+1
|
* mintro: Address code reviewDaniel Mensinger2019-03-031-3/+7
|
* mintro: Dependencies from sourceDaniel Mensinger2019-03-031-2/+9
|
* Target introspection from sourceDaniel Mensinger2019-03-031-1/+42
|
* Minor introspection refactoringDaniel Mensinger2019-03-031-40/+40
|
* mintro: Add subproject_dir to --projectinfoDaniel Schulte2019-03-011-1/+3
|
* mintro: Add name of subproject the target is contained in to --target outputDaniel Schulte2019-03-011-1/+2
|
* Merge pull request #4826 from mensinda/confDefOptsJussi Pakkanen2019-02-121-1/+1
|\ | | | | mconf: Use introspection to print the project default options (fixes #2543)