Nirbheek Chauhan
ac1c929f66
mesonintrospect: Print all deps, not just those with the same name
...
This breaks the API, but the original API was just broken.
8 years ago
Quentin Glidic
10c435fabe
mesonintrospect: List all installed files
...
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
8 years ago
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.
8 years ago
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.
8 years ago
Thibault Saunier
1d6147a592
Fix mesonintrospect --installed
...
The prefix has been recently added to the install data
8 years ago
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.
8 years ago
Igor Gnatenko
f0b30baa39
style: fix E225 violations
...
E225: missing whitespace around operator
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
8 years ago
Jussi Pakkanen
b55235dfbd
Fix space before :.
8 years ago
Thibault Saunier
925f880e6b
introspect: Allow listing all installed files
8 years ago
Jussi Pakkanen
b28da68faf
Expose project information with mesonintrospect. Closes #1118 .
8 years ago
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
8 years ago
Jussi Pakkanen
6762d30c6a
Exposes the install names of targets in introspection. Closes #829 .
8 years ago
Jussi Pakkanen
1f4cce86ad
Remove shebangs on files that are not runnable and add execute bits to those that are.
8 years ago
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.
8 years ago
Jussi Pakkanen
b6e8809f25
Added minsize build type that optimizes for binary size.
9 years ago
Hemmo Nieminen
95c86b5c42
Use CoreData.get_builtin_option() to get builtin option values.
9 years ago
Jussi Pakkanen
79de463993
Converted precompiled headers into a base option.
9 years ago
Jussi Pakkanen
0c63f75aaf
Converted coverage into a base option.
9 years ago
Jussi Pakkanen
de03ae5af0
Fix mesonintrospect.
9 years ago
Jussi Pakkanen
23b98cd6e6
Renamed meson package to mesonbuild so that we can have a script named meson in the same toplevel dir.
9 years ago
Jussi Pakkanen
1510522b1b
Moved mesongui into module.
9 years ago
Jussi Pakkanen
66c01401de
Moved scripts in the module and started work to run them via the main meson command.
9 years ago
Jussi Pakkanen
a5508d3fd3
Can run most of test suite (with hacks).
9 years ago
Jussi Pakkanen
8b1039fa30
Organise files into a module structure.
9 years ago
Jussi Pakkanen
70695bead4
Added possibility to have multiple test suites so you can run only a subset of tests. Closes #325 .
9 years ago
Jussi Pakkanen
0585a959d3
Add missing info to test introspection format.
9 years ago
Jussi Pakkanen
0fed6b1c5d
Can get benchmark list via introspection.
9 years ago
Jussi Pakkanen
0d56955e9c
Created a stringarray option type and added Windows system libs option that uses it.
9 years ago
Jussi Pakkanen
d32af67e68
Put compiler options to introspection output.
9 years ago
Jussi Pakkanen
1dc26def9d
Introspect prints external dependency args.
9 years ago
Jussi Pakkanen
05d929d542
Fix introspection and make it possible to have top level targets with the same name in subprojects. Fixes #222 .
9 years ago
Igor Gnatenko
8018315cfd
mesonintrospect: fix bad-continuation
...
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
10 years ago
Jussi Pakkanen
df357211a8
Handle outputs in arrays in mesonintrospect. Closes #50 .
10 years ago
Jussi Pakkanen
baa0782a22
Use argparse in introspector.
10 years ago
Jussi Pakkanen
525f0ae6d2
Harmonised copyright declarations.
10 years ago
Jussi Pakkanen
0df73e4c2f
Introspect script understands runtargets.
11 years ago
Jussi Pakkanen
03c685b9e4
Put in some frosting.
11 years ago
Jussi Pakkanen
f34be394b0
Introspector can print out test info.
11 years ago
Jussi Pakkanen
5b0322ad15
Can print build options.
11 years ago
Jussi Pakkanen
cb6f7f9b6f
Can list those files that make up the build system.
11 years ago
Jussi Pakkanen
77e9a24589
Can specify extra files that show up in IDEs as parts of a target.
11 years ago
Jussi Pakkanen
c06c9ea83e
Export list of files per target.
11 years ago
Jussi Pakkanen
849fe8bacf
Beginning of introspection tool for IDEs.
11 years ago