diff --git a/docs-crowdin-export/ru-RU/docs/commands/dependency-commands.mdx.mdx b/docs-crowdin-export/ru-RU/docs/commands/dependency-commands.mdx.mdx index 2ec2059..af45095 100644 --- a/docs-crowdin-export/ru-RU/docs/commands/dependency-commands.mdx.mdx +++ b/docs-crowdin-export/ru-RU/docs/commands/dependency-commands.mdx.mdx @@ -9,12 +9,14 @@ sidebar_label: Команды зависимостей (add, tree) Добавляет зависимость в `dcr.toml`. ```bash -dcr add fmt # поиск в реестре -dcr add mylib ../path/to/lib # путь как источник -dcr add mylib path:./lib # явный префикс пути -dcr add mylib git:https://github.com/user/repo # явный префикс git -dcr add mylib github:user/repo # сокращённая запись GitHub -dcr add mylib gitlab:user/repo # сокращённая запись GitLab +dcr add fmt # registry lookup +dcr add mylib ../path/to/lib # path as source +dcr add mylib path:./lib # explicit path prefix +dcr add mylib git:https://github.com/user/repo # explicit git prefix +dcr add mylib github:user/repo # GitHub 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 ``` Префиксы источника: @@ -23,6 +25,7 @@ dcr add mylib gitlab:user/repo # сокращённая запись GitLab * `git:` — URL адрес git-репозитория * `github:` — расширение `https://github.com/\/\` * `gitlab:` — расширение `https://gitlab.com/\/\` +* `pkg-config:` / `pkg:` — one or more packages resolved by `pkg-config` * `http://` / `https://` / `git@` — полный URL Флаги: @@ -33,6 +36,11 @@ dcr add mylib gitlab:user/repo # сокращённая запись GitLab Если источник не указан — DCR выполняет поиск в подключенных реестрах. 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` Показывает дерево зависимостей проекта.