mbox series

[0/3] Automatically add compile_commands.json to ${S}

Message ID 20250802211319.20060-1-anakin@childerhose.ca
Headers show
Series Automatically add compile_commands.json to ${S} | expand

Message

Anakin Childerhose Aug. 2, 2025, 9:13 p.m. UTC
To better take advantage of Meson and Cmake's automatic generation of a
compile_commands.json file for the clangd language server, link the
${B}/compile_commands.json to ${S}/compile_commands.json.

I accidentally missed the initial commit which provided the
compile_commands.bbclass. This corrects the previous submission.

Anakin Childerhose (3):
  clangd: add compile_commands.bbclass
  cmake.bbclass: inherit compile_commands.bbclass
  meson.bbclass: inherit compile_commands.bbclass

 meta/classes-recipe/cmake.bbclass            |  2 ++
 meta/classes-recipe/compile_commands.bbclass | 18 ++++++++++++++++++
 meta/classes-recipe/meson.bbclass            |  2 +-
 3 files changed, 21 insertions(+), 1 deletion(-)
 create mode 100644 meta/classes-recipe/compile_commands.bbclass

Comments

Khem Raj Aug. 2, 2025, 11:22 p.m. UTC | #1
On Sat, Aug 2, 2025 at 2:13 PM Anakin Childerhose via
lists.openembedded.org <anakin=childerhose.ca@lists.openembedded.org>
wrote:
>
> To better take advantage of Meson and Cmake's automatic generation of a
> compile_commands.json file for the clangd language server, link the
> ${B}/compile_commands.json to ${S}/compile_commands.json.
>
> I accidentally missed the initial commit which provided the
> compile_commands.bbclass. This corrects the previous submission.
>
> Anakin Childerhose (3):
>   clangd: add compile_commands.bbclass

I do not see a patch adding this bbclass in this series. Did you forget ?

>   cmake.bbclass: inherit compile_commands.bbclass
>   meson.bbclass: inherit compile_commands.bbclass
>
>  meta/classes-recipe/cmake.bbclass            |  2 ++
>  meta/classes-recipe/compile_commands.bbclass | 18 ++++++++++++++++++
>  meta/classes-recipe/meson.bbclass            |  2 +-
>  3 files changed, 21 insertions(+), 1 deletion(-)
>  create mode 100644 meta/classes-recipe/compile_commands.bbclass
>
> --
> 2.50.1
>
>
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#221388): https://lists.openembedded.org/g/openembedded-core/message/221388
> Mute This Topic: https://lists.openembedded.org/mt/114507103/1997914
> Group Owner: openembedded-core+owner@lists.openembedded.org
> Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [raj.khem@gmail.com]
> -=-=-=-=-=-=-=-=-=-=-=-
>