Brisa Works

Plugin for CLion

SCons Workbench

Open SCons, Premake, qmake, GN, build2 and Ninja projects in CLion as a compilation database. Free: code insight and build all. From USD 49/year: auto-sync, targets, variants, run and debug. Tested on Godot, godot-cpp, Lumos, QOwnNotes, Skia, libbutl and Ninja.

Free core · USD 49/year individual, USD 99/year commercial

Get it on the JetBrains Marketplace Licence agreement

Open a folder with an SConstruct and CLion gets full code insight. SCons Workbench runs your project's own SCons to write compile_commands.json (SCons 4's compilation_db tool, loaded from outside your build files, so nothing in your repository changes) and loads it as a compilation database project.

Godot and GDExtension. Built and tested on the real Godot engine and godot-cpp-template: the generated database matches the one from scons compiledb=yes command for command. Keep one profile per variant, such as platform=linux target=editor and platform=linux target=template_release, and switch between them from the toolbar. The Godot launcher builds your extension and opens the editor on your project, under the debugger if you like.

Always in sync. Add a source file, edit an SConscript or Godot's SCsub and the database is regenerated in the background and reloaded in place, without reopening the project.

Targets, build, run, debug. The SCons tool window lists default targets, aliases, programs and libraries from SCons' own dependency tree. Build, clean or rebuild any of them; compiler errors from gcc, clang and MSVC are links. Run or debug a program with the debugger of your CLion toolchain.

Premake. Open a folder with a premake5.lua. SCons Workbench runs your premake5 (the copy pinned in your repository first, such as Tools/linux/premake5) and keeps one compilation database per configuration and platform. Running premake5 compilecommands by hand gives one file once; here it stays in sync when you edit your Lua scripts, your projects become build, run and debug targets, and Premake 5.0 betas without compilecommands work too, through a dry run of the Makefiles Premake generates. Tested on premake-core and the Lumos engine.

qmake. Open a folder with a .pro file. qmake has no compilation-database export, so SCons Workbench runs qmake in a build folder per profile (your source tree stays clean) and reads every compiler command from a dry run of make. Profiles for Debug, Release or another Qt kit, subprojects as targets, and .pro/.pri editing with highlighting and completion. Tested with Qt 5.15 and 6.11 and on QOwnNotes.

GN. Open a folder with a .gn file. GN writes the compilation database itself (gn gen --export-compile-commands); SCons Workbench keeps it in sync with your BUILD.gn files, turns each out dir (out/Default, out/Release) into a profile without touching its args.gn, lists GN targets for build, run and debug, and builds with ninja. Your repository's own gn (bin/gn, buildtools/) is used first. Tested on Skia.

build2. Open a build2 project. build2 writes the compilation database itself in a dry run (b -n … config.cc.compiledb=-), so nothing is compiled to get code insight; your bdep configurations become profiles and your programs and libraries become build, run and debug targets. Tested on libbutl, build2's own utility library: one database entry for each of its 226 compile steps.

Ninja. Open a build.ninja that no other tool owns (hand-written, or from a script such as Ninja's own configure.py). ninja -t compdb gives the database, kept in sync as the manifest changes, and Ninja's outputs become targets. Tested on Ninja's own repository, which then builds itself.

Godot engine. Godot's engine source opens with editor dev, editor and template_release profiles and a run configuration for each editor binary you build, the steps Godot's own CLion page has you do by hand.

Chromium. A Chromium checkout gets its database from Chromium's own generate_compdb.py, builds with autoninja, and keeps the folders Chromium's CLion guide lists out of indexing (an editable list), so opening it does not take hours.

Price, stated up front. Free forever: open as project, compile_commands.json on open and on demand, build, clean and rebuild the whole project, SConstruct as Python, .pro editing. Paid plan: USD 49/year individual, USD 99/year commercial, with JetBrains' free trial.

Free and paid features

Feature Tier
Detects SConstruct, premake5.lua, a qmake .pro file, GN's .gn, a build2 project or a build.ninja file and opens the folder as a compilation database project Free
Generates compile_commands.json with your project's own SCons, Premake, qmake, GN, build2 or Ninja when the project opens, and on demand Free
Build, clean and rebuild the whole project, with clickable gcc, clang and MSVC errors Free
SConstruct and SConscript files open as Python, with SCons names completed and not flagged as unresolved Free
qmake .pro and .pri files: highlighting, comments, and completion of qmake variables, functions and values Free
Keeps compile_commands.json in sync: regenerates it in the background when build files (SConstruct, SConscript, premake5.lua, .pro, .pri, BUILD.gn, .gni, buildfile, .ninja) or the set of source files change Paid
Build variants as named profiles (SCons arguments, Premake configurations and platforms, qmake CONFIG or another Qt kit, GN out dirs and args, build2 configurations, Ninja build folders), each with its own compile_commands.json and build arguments Paid
Targets tool window listing programs and libraries (SCons targets and aliases, Premake projects, qmake subprojects, GN targets, build2 programs and libraries, Ninja outputs); build or clean any of them Paid
Chromium mode for GN: Chromium's large folders kept out of indexing (an editable list from Chromium's CLion guide) and builds with autoninja Paid
Run and debug configurations for built programs, the Godot engine you build, and a Godot launcher for GDExtension projects Paid

Requirements

CLion 2025.3 or newer with the bundled Compilation Database plugin. SCons 4.0 or newer from your project's virtualenv (.venv, venv, env) or PATH, or any command you set (python3 -m SCons); SCons is never installed for you. For SCons 3.x, one click adds a small compiledb target to your SConstruct. Premake 5.0 (betas too) from your repository or PATH; qmake from Qt 5.15 or 6.x (PATH or ~/Qt), and GNU make; gn and ninja for GN; build2 0.17 or newer; ninja for Ninja. Premake, qmake, GN, build2 and Ninja are tested on Linux; on Windows they need MinGW make (MSVC's nmake is not supported yet). A folder that also has a CMakeLists.txt opens as CMake; open its premake5.lua, .pro, .gn or build.ninja file instead to use that build system. Debugging uses the debugger of your default CLion toolchain (GDB or LLDB).

Privacy

The plugin runs only your build tools (SCons, premake5, qmake, make, gn, ninja, build2's b and bdep, Chromium's Python scripts) and your programs, on your machine, and sends nothing anywhere. Generated files live in .scons-support/ (git-ignored automatically) and compile_commands.json in the project root.