Module implementing support for JSON Compilation Database Format Specification.
This is an alternative to
tarruda's module,
which does one simple thing - generates one compile_commands.json
file for
your project.
Tested with clangd-13.
Premake 5.0.0 or later.
Download premake-ecc and place it near your premake5.lua script. Then require it from your premake script
require "ecc/ecc"
After you simply can call:
premake5 ecc
Moldule will generate one compile_commands.json
file near your main
premake script. During generation it will use the default config (the first one
you have specified in script). If you want to select specific config just pass
it's name with command line option:
premake5 --config=release ecc
Careful! config
option case sensitive! If there is no config passed via
command line, module will choose the default one.
Note: if you want to embed this module into your premake build follow the manual
- Add unit tests