[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [DRAFT PATCH 000/143] Meson integration for 5.2

From: Alex Bennée
Subject: Re: [DRAFT PATCH 000/143] Meson integration for 5.2
Date: Fri, 07 Aug 2020 11:29:06 +0100
User-agent: mu4e 1.5.5; emacs 28.0.50

Paolo Bonzini <pbonzini@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

  (defvar counsel-compile-phony-pattern "^\\.PHONY:[\t ]+\\(.+\\)$"
    "Regexp for extracting phony targets from Makefiles.")

  (defvar counsel-compile-help-pattern
    "Regexp for extracting help targets from a make help call.")

I guess I'll have to see what:

  ninja -t targets all


Alex Bennée

reply via email to

[Prev in Thread] Current Thread [Next in Thread]