På den här sidan

Bygg med GN

GN (Generate Ninja) är ett metabyggsystem som genererar byggfiler för Ninja.

Obs: Aktivera tillägget GN för att kunna använda det.

Öppna GN-projekt

För att öppna GN-projekt, gå till File > Open Project och välj sedan filen BUILD.gn från ditt projekt.

Lägg till GN-verktyg

Så här anger du sökvägar till GN-program:

  1. Välj Preferences > GN > Tools > Add.

    Fliken ”Verktyg” i GN:s inställningar

  2. I Name anger du ett namn för verktyget.
  3. I Path anger du sökvägen till det körbara GN-programmet.
  4. Välj Apply för att spara dina ändringar.

Lägg till GN-verktyg i kit

Så här använder du GN för att bygga projekt:

  1. Gå till Preferences > Kits > Kits.
  2. Välj ett kit som du vill redigera.
  3. I GN Tool väljer du ett GN-verktyg.

    Ställa in GN-programfilen under fliken ”Kits” i inställningarna för ”Kits”

  4. Aktivera byggsatsen för projektet.

Mer information finns i Hantera kit.

Se även Aktivera tillägg och Aktivera kit för ett projekt.

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.