LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

sfdk-compiledb

Generate compilation database for Sailfish projects

TLDR

Generate a compile_commands.json for the current project
$ sfdk compiledb
copy
Generate compilation database after a clean build
$ sfdk build && sfdk compiledb
copy

SYNOPSIS

sfdk compiledb [options]

DESCRIPTION

sfdk compiledb generates a compile_commands.json compilation database for IDE integration and tooling. This file is used by clang-based tools, language servers, and IDEs to understand build flags, include paths, and compiler invocations for each source file.The command must be run after a successful build so that build logs are available to extract compilation commands from. It is part of the Sailfish SDK (sfdk) toolchain.

CAVEATS

Requires a prior successful build to extract compilation commands. The generated database reflects the last build configuration only.

SEE ALSO

Copied to clipboard
Kai