mirror of
https://github.com/dexoron/dcr.git
synced 2026-10-21 16:19:37 +00:00
New translations dependency-commands.mdx (German)
[ci skip]
This commit is contained in:
@@ -15,6 +15,8 @@ dcr add mylib path:./lib # explicit path prefix
|
|||||||
dcr add mylib git:https://github.com/user/repo # explicit git prefix
|
dcr add mylib git:https://github.com/user/repo # explicit git prefix
|
||||||
dcr add mylib github:user/repo # GitHub shorthand
|
dcr add mylib github:user/repo # GitHub shorthand
|
||||||
dcr add mylib gitlab:user/repo # GitLab shorthand
|
dcr add mylib gitlab:user/repo # GitLab shorthand
|
||||||
|
dcr add fmt pkg-config:fmt # system package via pkg-config
|
||||||
|
dcr add openssl pkg:openssl,libcrypto # multiple pkg-config packages
|
||||||
```
|
```
|
||||||
|
|
||||||
Source prefixes:
|
Source prefixes:
|
||||||
@@ -23,6 +25,7 @@ Source prefixes:
|
|||||||
* `git:` — generic git URL
|
* `git:` — generic git URL
|
||||||
* `github:` — expands to `https://github.com/\<user>/\<repo>`
|
* `github:` — expands to `https://github.com/\<user>/\<repo>`
|
||||||
* `gitlab:` — expands to `https://gitlab.com/\<user>/\<repo>`
|
* `gitlab:` — expands to `https://gitlab.com/\<user>/\<repo>`
|
||||||
|
* `pkg-config:` / `pkg:` — one or more packages resolved by `pkg-config`
|
||||||
* `http://` / `https://` / `git@` — full URL
|
* `http://` / `https://` / `git@` — full URL
|
||||||
|
|
||||||
Flags:
|
Flags:
|
||||||
@@ -33,6 +36,11 @@ Flags:
|
|||||||
|
|
||||||
If source is omitted — DCR searches connected registries. A bare relative or absolute path is accepted as a path dependency.
|
If source is omitted — DCR searches connected registries. A bare relative or absolute path is accepted as a path dependency.
|
||||||
|
|
||||||
|
For `pkg-config` dependencies, the referenced packages must already be installed
|
||||||
|
and provide `.pc` files. DCR invokes `pkg-config` during the build (using
|
||||||
|
`PATH` and `PKG_CONFIG_PATH`) and forwards the returned compiler and linker
|
||||||
|
flags; it does not download or build these packages.
|
||||||
|
|
||||||
## `dcr tree`
|
## `dcr tree`
|
||||||
|
|
||||||
Displays the project dependency tree.
|
Displays the project dependency tree.
|
||||||
|
|||||||
Reference in New Issue
Block a user