mirror of
https://github.com/dexoron/dcr.git
synced 2026-10-21 08:58:35 +00:00
feat: add .dcr/ build facts and canonical artifact paths for IDE integrations
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
.TH DCR-BUILD 1 "2026-06-02" "dcr 0.7.0" "DCR Manual"
|
||||
.TH DCR-BUILD 1 "2026-08-04" "dcr 0.8.4" "DCR Manual"
|
||||
.SH NAME
|
||||
dcr-build \- Compile a DCR project
|
||||
.SH SYNOPSIS
|
||||
@@ -9,8 +9,15 @@ dcr-build \- Compile a DCR project
|
||||
[\fB\-\-clean\fR]
|
||||
[\fB\-\-verbose\fR]
|
||||
[\fB\-\-workspace\fR \fI<name>\fR]
|
||||
[\fB\-\-print\-artifact\-path\fR]
|
||||
.SH DESCRIPTION
|
||||
Compiles the project. Default profile is \fB\-\-debug\fR.
|
||||
Compiles the project. Default profile is
|
||||
.B \-\-debug .
|
||||
On success, updates
|
||||
.B .dcr/build-info.json
|
||||
and
|
||||
.B .dcr/toolchain.json
|
||||
when applicable.
|
||||
.SH OPTIONS
|
||||
.TP
|
||||
.B \-\-debug
|
||||
@@ -33,5 +40,9 @@ Print detailed build output including compiler commands.
|
||||
.TP
|
||||
.B \-\-workspace \fI<name>\fR
|
||||
Build a specific workspace member.
|
||||
.TP
|
||||
.B \-\-print\-artifact\-path
|
||||
After a successful build, print the absolute path of the main artifact as a single line on stdout.
|
||||
.SH SEE ALSO
|
||||
.BR dcr (1)
|
||||
.BR dcr (1),
|
||||
.BR dcr-gen (1)
|
||||
|
||||
@@ -1,23 +1,67 @@
|
||||
.TH DCR-GEN 1 "2026-06-02" "dcr 0.7.0" "DCR Manual"
|
||||
.TH DCR-GEN 1 "2026-08-04" "dcr 0.8.4" "DCR Manual"
|
||||
.SH NAME
|
||||
dcr-gen \- Generate IDE and tooling integration files
|
||||
.SH SYNOPSIS
|
||||
.B dcr gen \fI<subcommand>\fR
|
||||
[\fB\-\-debug\fR | \fB\-\-release\fR]
|
||||
[\fB\-\-quiet\fR | \fB\-q\fR]
|
||||
.SH DESCRIPTION
|
||||
Generates IDE and tooling integration files for DCR projects.
|
||||
Machine-readable build facts are written under
|
||||
.B .dcr/
|
||||
(compile database, build-info, toolchain).
|
||||
.SH SUBCOMMANDS
|
||||
.TP
|
||||
.B project-info
|
||||
Print project metadata as JSON to stdout.
|
||||
Print project metadata as JSON to stdout (absolute paths, artifact_path, target_dir).
|
||||
Also updates
|
||||
.B .dcr/build-info.json
|
||||
and
|
||||
.B .dcr/toolchain.json .
|
||||
.TP
|
||||
.B compile-commands
|
||||
Generate \fBcompile_commands.json\fR for IDE tooling.
|
||||
Generate
|
||||
.B .dcr/compile_commands.json
|
||||
(atomic write) and ensure
|
||||
.B .clangd
|
||||
points at
|
||||
.B .dcr
|
||||
as CompilationDatabase.
|
||||
.TP
|
||||
.B vscode
|
||||
Generate \fB.vscode/\fR integration files (tasks, launch configurations).
|
||||
Generate
|
||||
.B .vscode/
|
||||
integration files (tasks, launch configurations) and compile commands under
|
||||
.B .dcr/ .
|
||||
.TP
|
||||
.B clion
|
||||
Generate \fB.idea/\fR integration files for CLion.
|
||||
Generate
|
||||
.B .idea/
|
||||
integration files for CLion and compile commands under
|
||||
.B .dcr/ .
|
||||
.SH OPTIONS
|
||||
.TP
|
||||
.B \-\-debug
|
||||
Use debug profile (default).
|
||||
.TP
|
||||
.B \-\-release
|
||||
Use release profile.
|
||||
.TP
|
||||
.B \-\-quiet\fR, \fB\-q
|
||||
Suppress human-readable success messages on stdout.
|
||||
.SH FILES
|
||||
.TP
|
||||
.B .dcr/compile_commands.json
|
||||
JSON Compilation Database (moved from project root; breaking change in 0.8.4).
|
||||
.TP
|
||||
.B .dcr/build-info.json
|
||||
Last known artifact path, profile, compiler.
|
||||
.TP
|
||||
.B .dcr/toolchain.json
|
||||
Resolved compiler/debugger (and Qt tools if configured).
|
||||
.TP
|
||||
.B .clangd
|
||||
Created once with CompilationDatabase: .dcr; not overwritten if customized.
|
||||
.SH SEE ALSO
|
||||
.BR dcr (1),
|
||||
.BR dcr-build (1)
|
||||
|
||||
@@ -128,7 +128,7 @@ Version from registry (e.g. \fB1.2.3\fR).
|
||||
Print project metadata as JSON to stdout.
|
||||
.TP
|
||||
.B compile-commands
|
||||
Generate \fBcompile_commands.json\fR for IDE tooling.
|
||||
Generate \fB.dcr/compile_commands.json\fR for IDE tooling.
|
||||
.TP
|
||||
.B vscode
|
||||
Generate \fB.vscode/\fR integration files (tasks, launch configurations).
|
||||
|
||||
Reference in New Issue
Block a user