Replies: 2 comments 4 replies
-
Casually last night I was exposing the export compile commands functionality in eepp repository (commited here). Premake5 does support this but you need to install a module, now the module will be integrated in eepp, so you only need to run: If you need to add your own projects by extending the premake5 configuration of eepp it's really easy since i did that to easily compile eeiv. For example my local project "eeiv"
kind "WindowedApp"
language "C++"
files { "../eeiv/src/*.cpp" }
build_link_configuration( "eeiv", true ) This will link the project against eepp, build the project in the and And that's all you need. |
Beta Was this translation helpful? Give feedback.
-
https://github.com/tarruda/premake-export-compile-commands This project has not been updated for 9 years. And I found this project on the Premake modules page: https://github.com/MattBystrin/premake-ecc Maybe it's a better candidate. |
Beta Was this translation helpful? Give feedback.
-
I need code completion by clangd. This requires compile_commands.json. But premake can't generate this file for me. I don't want to use Bear. I'm on Windows 7 (an outdated Windows that support has been dropped by the MSYS2 project). Add more tools to the stack will only causing more problems.
My setup is simple: llvm-mingw (includes clangd) + eepp + ecode. No other external dependencies. It seems you need to add a CMakeLists.txt for this example so I could use it as the foundation for my projects:
https://github.com/SpartanJ/eepp/tree/develop/src/examples/empty_window
CMake is the most portable and the easiest to get on Windows that can generate compile_commands.json.
p/s: I'm stuck with cmake 3.28.6 as it is the last version supports Windows 7.
Beta Was this translation helpful? Give feedback.
All reactions