Commit Graph

18 Commits

Author SHA1 Message Date
Nirbheek Chauhan b3d5db49e8 mesonintrospect: Normalize install_filename in the output
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-18 02:38:54 +05:30
Nirbheek Chauhan 67d3d512ff mesonintrospect: Also print builtins for --buildoptions
This is needed to be able to introspect the value of xxxdir options such
as libdir and prefix.
2017-02-18 02:37:32 +05:30
Thibault Saunier 1d6147a592 Fix mesonintrospect --installed
The prefix has been recently added to the install data
2017-01-26 22:48:02 +02:00
Nirbheek Chauhan f762e896d2 mintro.py: Assume the current dir is a builddir if not specified
Also fix running with backends other than Ninja by not assuming that
install.dat is always available.
2017-01-22 22:12:44 +02:00
Igor Gnatenko f0b30baa39 style: fix E225 violations
E225: missing whitespace around operator

Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
2017-01-01 12:02:05 -05:00
Jussi Pakkanen b55235dfbd Fix space before :. 2016-12-31 16:28:15 +02:00
Thibault Saunier 925f880e6b introspect: Allow listing all installed files 2016-12-15 22:19:43 +02:00
Jussi Pakkanen b28da68faf Expose project information with mesonintrospect. Closes #1118. 2016-12-06 20:27:59 +02:00
Thibault Saunier 6c9f75f082 mintro: Allow serializing EnvironmentVariables objects
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-12-03 22:35:29 +02:00
Jussi Pakkanen 6762d30c6a Exposes the install names of targets in introspection. Closes #829. 2016-10-30 06:46:08 -07:00
Jussi Pakkanen 1f4cce86ad Remove shebangs on files that are not runnable and add execute bits to those that are. 2016-10-07 21:10:33 +03:00
Elliott Sales de Andrade 4c71695e41 Use context manager for file I/O.
There are a few cases where a context manager cannot be used, such as
the logger.
2016-08-27 18:29:55 -04:00
Jussi Pakkanen b6e8809f25 Added minsize build type that optimizes for binary size. 2016-06-23 22:38:18 +03:00
Hemmo Nieminen 95c86b5c42 Use CoreData.get_builtin_option() to get builtin option values. 2016-05-10 20:47:58 +03:00
Jussi Pakkanen 79de463993 Converted precompiled headers into a base option. 2016-03-20 19:35:42 +02:00
Jussi Pakkanen 0c63f75aaf Converted coverage into a base option. 2016-03-20 19:16:49 +02:00
Jussi Pakkanen de03ae5af0 Fix mesonintrospect. 2016-03-17 21:08:07 +02:00
Jussi Pakkanen 23b98cd6e6 Renamed meson package to mesonbuild so that we can have a script named meson in the same toplevel dir. 2016-01-16 17:35:29 +02:00