qt_generate_wayland_protocol_client_sources
Wayland 프로토콜 .XML 파일에 대한 클라이언트 측 C++ 바인딩을 생성합니다.
이 명령은 Qt6
패키지의 WaylandClient
컴포넌트에 정의되어 있으며, 다음과 같이 로드할 수 있습니다:
find_package(Qt6 REQUIRED COMPONENTS WaylandClient)
이 명령은 Qt 6.0에 도입되었습니다.
개요
qt_generate_wayland_protocol_client_sources(target [PUBLIC_CODE | PRIVATE_CODE] FILES file1.xml [file2.xml ...])
버전 없는 명령을 사용할 수 없는 경우 qt6_generate_wayland_protocol_client_sources()
을 대신 사용합니다. 이 명령은 이 명령과 동일한 인수 집합을 지원합니다.
설명
qt_generate_wayland_protocol_client_sources()는 하나 이상의 Wayland 프로토콜 파일에서 wayland-scanner
및 qtwaylandscanner
을 실행하기 위한 빌드 단계를 생성합니다. 이 도구는 차례로 프로토콜을 구현하기 위한 바인딩 코드를 C 및 C++로 생성하고 결과 파일은 target
의 일부로 빌드됩니다.
PUBLIC_CODE
및 PRIVATE_CODE
옵션(Qt 6.8에 추가됨)은 wayland-scanner
의 public-code
및 private-code
옵션에 해당합니다. PUBLIC_CODE
은 wayland-scanner
에서 생성된 코드의 심볼을 내보내도록 합니다. 이전 버전과의 호환성을 위해 PUBLIC_CODE
이 기본값이지만 일반적으로 PRIVATE_CODE
을 강력히 권장합니다.
qt_generate_wayland_protocol_client_sources()는 프로토콜의 클라이언트 측을 구현하는 데 필요한 파일 생성을 트리거합니다. qt_generate_wayland_protocol_server_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.