このページでは

GN を使用したビルド

GN(Generate Ninja) は、Ninja用のビルドファイルを生成するメタビルドシステムです。

注: これを使用するには、GN 拡張機能を有効にしてください

GNプロジェクトを開く

GNプロジェクトを開くには、File >Open Project に移動し、プロジェクト内のBUILD.gn ファイルを選択します。

GNツールの追加

GN実行ファイルへのパスを指定するには:

  1. Preferences 」 > 「GN 」 > 「Tools 」 > 「Add 」を選択します。

    GNの設定画面の「ツール」タブ

  2. Name 」で、ツールの名前を指定します。
  3. Path 」で、GN実行ファイルへのパスを指定します。
  4. Apply 」を選択して変更を保存します。

キットに GN ツールを追加する

GN を使用してプロジェクトをビルドするには:

  1. Preferences 」>「Kits 」>「Kits 」の順に移動します。
  2. 編集するキットを選択します。
  3. GN Tool 」で、GNツールを選択します。

    「Kits」環境設定の「Kits」タブでGN実行ファイルを設定する

  4. プロジェクトに対してキットを有効にします。

詳細については、「キットの管理」を参照してください。

拡張機能の有効化」および「プロジェクトのキットの有効化も参照してください

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.