aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/mintro.py
AgeCommit message (Collapse)AuthorFilesLines
2018-06-08mintro: Fix introspecting installation pathsThibault Saunier1-2/+2
A new custom_install_mode element was added in 05c43cdcd
2018-06-06meson introspect: Fix --installed argumentNirbheek Chauhan1-1/+1
Traceback (most recent call last): File "meson.py", line 29, in <module> sys.exit(mesonmain.main()) File "mesonbuild/mesonmain.py", line 411, in main return run(sys.argv[1:], launcher) File "mesonbuild/mesonmain.py", line 320, in run return mintro.run(remaining_args) File "mesonbuild/mintro.py", line 234, in run list_installed(installdata) File "mesonbuild/mintro.py", line 72, in list_installed for path, installdir, aliases, unknown1, unknown2 in installdata.targets: ValueError: too many values to unpack (expected 5)
2018-05-09introspect: Fix listing target files that are File objectsNirbheek Chauhan1-2/+7
2018-04-11introspect: default builddir to . to prevent a crashAndrei Alexeyev1-1/+1
Fixes #3250
2018-03-27Always build parser objects anew to avoid leaking old data.Jussi Pakkanen1-21/+23
2018-03-18introspect: tests: Inform about tests run parallelizationThibault Saunier1-0/+1
2018-03-01Harmonize data pickling.Hemmo Nieminen1-27/+17
Try to be more consistent on using save() and load() methods to pickle data.
2018-02-07Expose integer options to build option files.Jussi Pakkanen1-0/+2
2018-01-30Use os.path: basename() and dirname() instead of split()Aleksey Filippov1-2/+2
According to Python documentation[1] dirname and basename are defined as follows: os.path.dirname() = os.path.split()[0] os.path.basename() = os.path.split()[1] For the purpose of better readability split() is replaced by appropriate function if only one part of returned tuple is used. [1]: https://docs.python.org/3/library/os.path.html#os.path.split
2017-12-07Fix `array` type nameEric Engestrom1-1/+1
c9351ce30c03d107279090da7825096951a705d3 introduced the type as `array`, so mintro should expose it under the same name. (while at it, rename test 169 to be coherent)
2017-12-07Renamed UserStringArrayOption to UserArrayOption for short.Jussi Pakkanen1-1/+1
2017-11-09Print correct command in help messageEric Engestrom1-1/+1
Taking mconf for instance: before: $ meson configure --help usage: meson [-h] [-D SETS] [--clearcache] [directory [directory ...]] after: $ meson configure --help usage: meson configure [-h] [-D SETS] [--clearcache] [directory [directory ...]]
2017-11-09introspect: print `build_by_default` fieldEric Engestrom1-0/+1
2017-07-20Modify mesonintrospect --dependencies so 1 element in list is 1 dependencyMartin Ejdestig1-3/+3
Makes it less awkward for tools to parse the data. Was modified to return a list, with two elements for each dependency, instead of a dictionary in ac1c929f66bde7209f1bd7e2d995dbd3949e1d8b . Closes #2018.
2017-06-19Storage object has changed so use values(). Closes #1963.Jussi Pakkanen1-1/+1
2017-05-17Use more direct dictionary literals.Elliott Sales de Andrade1-9/+3
2017-05-09mesonintrospect: Print all deps, not just those with the same nameNirbheek Chauhan1-3/+3
This breaks the API, but the original API was just broken.
2017-05-08mesonintrospect: List all installed filesQuentin Glidic1-0/+6
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2017-02-18mesonintrospect: Normalize install_filename in the outputNirbheek Chauhan1-1/+4
Without this, we can output a mixture of '/' and '\' on platforms where os.path.sep is '\' and prefix or outdir uses '/'. Let's always return the path in the format of the platform we're running on. This is needed to make the test_install_introspection() unittest work properly on Windows.
2017-02-18mesonintrospect: Also print builtins for --buildoptionsNirbheek Chauhan1-14/+2
This is needed to be able to introspect the value of xxxdir options such as libdir and prefix.
2017-01-26Fix mesonintrospect --installedThibault Saunier1-1/+1
The prefix has been recently added to the install data
2017-01-22mintro.py: Assume the current dir is a builddir if not specifiedNirbheek Chauhan1-20/+28
Also fix running with backends other than Ninja by not assuming that install.dat is always available.
2017-01-01style: fix E225 violationsIgor Gnatenko1-5/+5
E225: missing whitespace around operator Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
2016-12-31Fix space before :.Jussi Pakkanen1-14/+14
2016-12-15introspect: Allow listing all installed filesThibault Saunier1-0/+13
2016-12-06Expose project information with mesonintrospect. Closes #1118.Jussi Pakkanen1-0/+16
2016-12-03mintro: Allow serializing EnvironmentVariables objectsThibault Saunier1-1/+4
Otherwise trying to introspect tests might lead to: Traceback (most recent call last): File "/home/thiblahute/devel/gstreamer/gst-build/meson/mesonintrospect.py", line 20, in <module> sys.exit(mintro.run(sys.argv[1:])) File "/home/thiblahute/devel/gstreamer/gst-build/meson/mesonbuild/mintro.py", line 213, in run list_tests(testdata) File "/home/thiblahute/devel/gstreamer/gst-build/meson/mesonbuild/mintro.py", line 178, in list_tests print(json.dumps(result)) File "/usr/lib/python3.5/json/__init__.py", line 230, in dumps return _default_encoder.encode(obj) File "/usr/lib/python3.5/json/encoder.py", line 198, in encode chunks = self.iterencode(o, _one_shot=True) File "/usr/lib/python3.5/json/encoder.py", line 256, in iterencode return _iterencode(o, 0) File "/usr/lib/python3.5/json/encoder.py", line 179, in default raise TypeError(repr(o) + " is not JSON serializable") TypeError: <mesonbuild.build.EnvironmentVariables object at 0x7f83e8fa8c18> is not JSON serializable
2016-10-30Exposes the install names of targets in introspection. Closes #829.Jussi Pakkanen1-5/+22
2016-10-07Remove shebangs on files that are not runnable and add execute bits to those ↵Jussi Pakkanen1-2/+0
that are.
2016-08-27Use context manager for file I/O.Elliott Sales de Andrade1-4/+8
There are a few cases where a context manager cannot be used, such as the logger.
2016-06-23Added minsize build type that optimizes for binary size.Jussi Pakkanen1-2/+1
2016-05-10Use CoreData.get_builtin_option() to get builtin option values.Hemmo Nieminen1-3/+3
2016-03-20Converted precompiled headers into a base option.Jussi Pakkanen1-5/+1
2016-03-20Converted coverage into a base option.Jussi Pakkanen1-5/+1
2016-03-17Fix mesonintrospect.Jussi Pakkanen1-9/+10
2016-01-16Renamed meson package to mesonbuild so that we can have a script named meson ↵Jussi Pakkanen1-0/+212
in the same toplevel dir.