ubisoft / Sharpmake

Sharpmake is an open-source C#-based solution for generating project definition files, such as Visual Studio projects and solutions, GNU makefiles, Xcode projects, etc.
Apache License 2.0
922 stars 168 forks source link

[Question] Is there support for clang compilation database? #349

Closed TheZoc closed 4 months ago

TheZoc commented 6 months ago

Hello :)

I'm kinda new to sharpmake and I couldn't find anything in regarding this - I was wondering if there is support for clang's compile_commands.json or something similar.

I'm hoping to use clangd as LSP, and I'd love to use Sharpmake to manage my project.

Is there currently a way to generate that? If not, could you point me towards the bit of code that would be a good spot to inspect and hopefully be able to implement that feature?

Thank you in advance!

tru commented 5 months ago

See this sample: https://github.com/ubisoft/Sharpmake/tree/main/samples/CompileCommandDatabase