Hi, > Another possibility to eschew .o parsing is to add something like this to > the sources > > #ifdef QEMU_MODINFO > #define MODULE_METADATA(key, value) \ > =<>= MODINFO key value > #else > #define MODULE_METADATA(key, value) > #endif > > MODULE_METADATA("opts", "spice") > > A Python script could parse compile_commands.json, add -E -DQEMU_MODINFO to > the command-line option, and look in the output for the metadata.
Hmm, worth trying, although I guess it would be easier to code this up straight in meson.build and pull the information you need out of the source set, especially as you'll know then which source files are compiled into which module. take care, Gerd