Skip to main content

compile_commands.json generation for SCons build system

Project description

Build Status PyPI version

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


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)

Uploaded Source

Built Distributions

scons_compiledb-0.2.2-py3-none-any.whl (5.2 kB view hashes)

Uploaded Python 3

scons_compiledb-0.2.2-py2-none-any.whl (5.2 kB view hashes)

Uploaded Python 2

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page