Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
WIP: Add a summary() function for configuration summarization
This has been requested multiple times in the mesa/xorg community, and apparently in the GStreamer community as well. This function can be called one per project (so subprojects can call it as well), and takes up to a single positional argument, and an unlimited number of free form keyword arguments, the values of which must be dictionaries. At the end of the configuration phase all of the information passed to the summary function is printed, separating the main project from each subproject, and printing the group information. For example: ```meson sec1 = {'driver' : 'foobar', 'OS' : 'Linux', 'API' : 1.7} ... sec2 = {'driver' : 'dive comp', 'OS' : 'Minix', 'API' : 1.1.2} ... sec3 = {'with' : {'mesa' : true, 'gbm' : false}} summary( {'Backend' : 'OpenGL'}, Server : sec1, Client : sec2, Misc : sec3, ) ``` Which would print something like: ```txt Configuration Summary: Backend = OpenGL Server: driver = foobar OS = Linux API = 1.7 Client: driver = dive comp OS = Minix API = 1.1.2 Misc: with = {'mesa : true, 'gbm' : false} ``` Fixes mesonbuild#757
- Loading branch information