In questa pagina

Compilazione con GN

GN (Generate Ninja) è un sistema di meta-build che genera file di build per Ninja.

Nota: per utilizzarlo, è necessarioattivare l'estensione GN.

Aprire i progetti GN

Per aprire i progetti GN, vai su File > Open Project, quindi seleziona il file BUILD.gn dal tuo progetto.

Aggiungere strumenti GN

Per specificare i percorsi degli eseguibili GN:

  1. Selezionare Preferences > GN > Tools > Add.

    Scheda "Strumenti" nelle preferenze di GN

  2. In " Name", specificare un nome per lo strumento.
  3. In " Path", specificare il percorso dell'eseguibile GN.
  4. Selezionare " Apply " per salvare le modifiche.

Aggiungere gli strumenti GN ai kit

Per utilizzare GN per compilare i progetti:

  1. Vai su " Preferences " > " Kits " > " Kits".
  2. Selezionare un kit da modificare.
  3. In GN Tool, seleziona uno strumento GN.

    Configurazione del file eseguibile GN nella scheda "Kit" delle preferenze "Kit"

  4. Attiva il kit per il progetto.

Per ulteriori informazioni, consultare Gestione dei kit.

Vedi anche Attivazione delle estensioni e Attivazione dei kit per un progetto.

Copyright © The Qt Company Ltd. and other contributors. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.