compile_commands.json generation for SCons build system
Project description
SCons Compilation DB support
scons-compiledb adds a support for generating JSON formatted compilation database defined by Clang.
The main functionality of scons-compiledb is based on the version in MongoDB.
Features:
- Multiple construction environments support.
- Merging of compile_commands.json.
- Simple customisation for DB entry generation.
- DB generation with --compiledb command line option.
- Installation with PyPI
Installation
Install and update using pip
pip install scons-compiledb
Usage
In Scons script, enable generation:
import scons_compiledb
env = DefaultEnvironment() # Or with any other way
scons_compiledb.enable_cmdline(env)
#
# ... Use env normnally ...
#
Generate compile_commands.json by invoking SCons with --compiledb command line option:
$ scons --compiledb
...
Check compilation DB : compile_commands.json.pickle
Update compilation DB: compile_commands.json
scons: done building targets.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
scons-compiledb-0.2.2.tar.gz
(3.7 kB
view hashes)
Built Distributions
Close
Hashes for scons_compiledb-0.2.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c61f4be18bbce7e23c960e03ef7b0a9695eef4d8b7c3cf4a054c85e8523cce92 |
|
MD5 | afd1213b783a681bc641564dc514de4a |
|
BLAKE2b-256 | ab4ed85502bd7dec1fc5dc94aa689d3ab563cec3e1b36e201bd5c454423cef78 |
Close
Hashes for scons_compiledb-0.2.2-py2-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c47e1a843ea6238a84915c03d48956639278a0a770fe0c668df8c9fbd9000e8d |
|
MD5 | 1a6970088c5a4399cf8eccc2e0dfd1cc |
|
BLAKE2b-256 | 7be5f94a0940dd6f1f3f5dae73087c29b3e6ebb1cde7876033c47c2cc99ed4cd |