Partager via


vcpkg depend-info

Synopsis

vcpkg depend-info [options] <package>...

Description

Afficher les dépendances pour un ensemble de packages de ports.

depend-info affiche toutes les dépendances transitives pour un ensemble de packages dans plusieurs formats, notamment le texte brut, l’arborescence, DGML, DOT ou Mermaid. L’ensemble de packages est considéré comme une requête combinée unique similaire à vcpkg install <package>... celle des packages installés.

Lorsqu’ils sont utilisés avec plusieurs triplets (par défaut, hôte, par package), les packages installés pour d’autres triplets que ceux par défaut sont marqués. Les packages pour le triplet hôte sont marqués avec le suffixe :host.

Exemples

List

$ vcpkg depend-info ableton

vcpkg-cmake:
vcpkg-cmake-config:
asio: vcpkg-cmake, vcpkg-cmake-config
ableton-link: asio, vcpkg-cmake, vcpkg-cmake-config
ableton: ableton-link

Arborescence

$ vcpkg depend-info ableton --format=tree

ableton
+-- ableton-link
    +-- asio
    |   +-- vcpkg-cmake
    |   +-- vcpkg-cmake-config
    +-- vcpkg-cmake
    +-- vcpkg-cmake-config

Points

$ vcpkg depend-info ableton --format=dot

digraph G{ rankdir=LR; node [fontname=Sans]; edge [minlen=3]; overlap=false;
"vcpkg-cmake";
"vcpkg-cmake-config";
"asio";
"asio" -> "vcpkg-cmake";
"asio" -> "vcpkg-cmake-config";
"ableton-link";
"ableton-link" -> "asio";
"ableton-link" -> "vcpkg-cmake";
"ableton-link" -> "vcpkg-cmake-config";
"ableton";
"ableton" -> "ableton-link";
"2 singletons...";
}

DGML

$ vcpkg depend-info ableton --format=dgml

<?xml version="1.0" encoding="utf-8"?>
<DirectedGraph xmlns="http://schemas.microsoft.com/vs/2009/dgml">
    <Nodes>
        <Node Id="ableton"/>
        <Node Id="ableton-link"/>
        <Node Id="asio"/>
        <Node Id="vcpkg-cmake"/>
        <Node Id="vcpkg-cmake-config"/>
    </Nodes>
    <Links>
        <Link Source="ableton" Target="ableton-link"/>
        <Link Source="ableton-link" Target="asio"/>
        <Link Source="ableton-link" Target="vcpkg-cmake"/>
        <Link Source="ableton-link" Target="vcpkg-cmake-config"/>
        <Link Source="asio" Target="vcpkg-cmake"/>
        <Link Source="asio" Target="vcpkg-cmake-config"/>
    </Links>
</DirectedGraph>

Mermaid

$ vcpkg depend-info ableton --format=mermaid

flowchart TD;
    ableton --> ableton-link;
    ableton-link --> asio;
    ableton-link --> vcpkg-cmake;
    ableton-link --> vcpkg-cmake-config;
    asio --> vcpkg-cmake;
    asio --> vcpkg-cmake-config;

Diagramme rendu

flowchart TD;
    ableton-->ableton_link;
    ableton_link-->asio;
    ableton_link-->vcpkg_cmake;
    ableton_link-->vcpkg_cmake_config;
    asio-->vcpkg_cmake;
    asio-->vcpkg_cmake_config;

Triplets et packages multiples

$ ./vcpkg depend-info proj tiff[core] --triplet x64-windows-static-md

vcpkg-cmake:host: 
vcpkg-cmake-config:host: 
zlib: vcpkg-cmake:host
liblzma: vcpkg-cmake:host, vcpkg-cmake-config:host
curl[sspi, ssl, schannel, non-http]: vcpkg-cmake:host, vcpkg-cmake-config:host, zlib
nlohmann-json: vcpkg-cmake:host, vcpkg-cmake-config:host
sqlite3[json1, tool]:host: vcpkg-cmake:host, vcpkg-cmake-config:host
sqlite3[json1]: vcpkg-cmake:host, vcpkg-cmake-config:host
tiff[zip, lzma]: liblzma, vcpkg-cmake:host, vcpkg-cmake-config:host, zlib
proj[tiff, net]: curl, nlohmann-json, sqlite3:host, sqlite3, tiff, vcpkg-cmake:host, vcpkg-cmake-config:host

Options

Toutes les commandes vcpkg prennent en charge un ensemble d’options courantes.

--format=<format>

list

Le format par défaut imprime une liste textuelle.

tree

Imprime une « arborescence » similaire à la commande console tree.

dot

Générez l’arborescence des dépendances au format de description du graphique DOT .

dgml

Générez l’arborescence des dépendances au format XML DGML (Directed Graph Markup Language).

mermaid

Générez l’arborescence des dépendances au format de syntaxe du diagramme mermaid .

--show-depth

Afficher la profondeur de récursivité dans la sortie.

Accepté uniquement pour les formats de liste et d’arborescence.

--max-recurse=<depth>

Définissez la profondeur maximale à afficher.

La valeur -1 indique aucune limite.

--sort=<type>

Définissez l’ordre de tri pour la liste des dépendances.

Accepté uniquement pour le format de liste.

Options de tri :

  • lexicographical - Trier par nom
  • topological - (Valeur par défaut) Trier en augmentant la profondeur
  • reverse - Trier en réduisant la profondeur