Paolo Bonzini <pbonz...@redhat.com> writes:
> On 07/08/20 12:05, Alex Bennée wrote: >>> On 07/08/20 10:31, 罗勇刚(Yonggang Luo) wrote: >>>> Any IDE works with meson properly? Does meson have vs code plugin? >>> I'm not sure what the plugin would do. However note that even with >>> Meson, QEMU would be built with "./configure && make". >> One the subject of IDE's my Emacs tooling (counsel-compile) uses a >> mixture of "make -nqp" and "make help" to probe for potential make >> targets. I assume these are still probable with the meson generated >> files? > > With the generated files yes, I have no idea how counsel-compile would > deal with ninja. It's probing for top-level targets. So if there is a way to query ninja for that it's easy enough to write a probe to collect them. The make -nqp stuff is a little janky but basically greps for .PHONY patterns and assumes a .PHONY target is a top level target. The help parsing is pure regexery: (defvar counsel-compile-phony-pattern "^\\.PHONY:[\t ]+\\(.+\\)$" "Regexp for extracting phony targets from Makefiles.") (defvar counsel-compile-help-pattern "\\(?:^\\(\\*\\)?[[:space:]]+\\([^[:space:]]+\\)[[:space:]]+-\\)" "Regexp for extracting help targets from a make help call.") I guess I'll have to see what: ninja -t targets all lists. -- Alex Bennée