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.3.tar.gz
(3.7 kB
view hashes)
Built Distributions
Close
Hashes for scons_compiledb-0.2.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 969a56b768b1177f6cf023f0f7b649698975bd398efe79528187f62c001e7074 |
|
MD5 | d9db65cf767ecc739d3e6c43e6b4c570 |
|
BLAKE2b-256 | fc497290e3e76595cd38c49fe189e9ca8cd787e251fa7324420ef762f516338e |
Close
Hashes for scons_compiledb-0.2.3-py2-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 69cb8bc3c1aae22ee20fffc3db3554a0ae911aecc277627ad5e8d88a077fb5fe |
|
MD5 | 212d5a378d80d16e8d016911be1ed424 |
|
BLAKE2b-256 | fb0985fa3a69d56e7ac2afee4d5ceb7b5d6e7f731383f563c3b6d051a3fcd16e |