qt_generate_wayland_protocol_server_sources
Waylandプロトコル.XMLファイルのサーバーサイドC++バインディングを生成します。
このコマンドはQt6
パッケージのWaylandCompositor
コンポーネントで定義されています:
find_package(Qt6 REQUIRED COMPONENTS WaylandCompositor)
このコマンドはQt 6.0で導入されました。
概要
qt_generate_wayland_protocol_server_sources(target [PUBLIC_CODE | PRIVATE_CODE] FILES file1.xml [file2.xml ...])
バージョンレスコマンドが無効になっている場合は、qt6_generate_wayland_protocol_server_sources()
。このコマンドと同じ引数セットをサポートしています。
説明
qt_generate_wayland_protocol_server_sources() は1つ以上のWaylandプロトコルファイルに対してwaylandscanner
とqtwaylandscanner
を実行するためのビルド手順を作成します。このツールはプロトコルを実装するためのバインディングコードをCおよびC++で生成し、生成されたファイルはtarget
の一部としてビルドされます。
Qt 6.8で追加された)オプションPUBLIC_CODE
とPRIVATE_CODE
はwayland-scanner
のpublic-code
とprivate-code
に対応します。後方互換性のためにPUBLIC_CODE
がデフォルトですが、一般的にはPRIVATE_CODE
を強く推奨します。
qt_generate_wayland_protocol_server_sources() は、プロトコルのコンポジター側の実装に必要なファイルを生成します。
qt_generate_wayland_protocol_client_sources()はクライアント用の同等の関数です。
© 2025 The Qt Company Ltd. 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.