diff options
Diffstat (limited to 'cmake/scripts/linux')
-rw-r--r-- | cmake/scripts/linux/ExtraTargets.cmake | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/cmake/scripts/linux/ExtraTargets.cmake b/cmake/scripts/linux/ExtraTargets.cmake index bd88775774..60e0daf714 100644 --- a/cmake/scripts/linux/ExtraTargets.cmake +++ b/cmake/scripts/linux/ExtraTargets.cmake @@ -28,13 +28,8 @@ if("wayland" IN_LIST CORE_PLATFORM_NAME_LC) DEPENDS "${WAYLANDPP_SCANNER}" ${PROTOCOL_XMLS} COMMENT "Generating wayland-protocols C++ wrappers") - if(TARGET_WEBOS) - set(WEBOS_PROTOCOL_XMLS "${WAYLANDPROTOCOLSWEBOS_PROTOCOLSDIR}/webos-shell.xml") - add_custom_command(OUTPUT "${WAYLAND_EXTRA_PROTOCOL_GENERATED_DIR}/wayland-webos-protocols.hpp" "${WAYLAND_EXTRA_PROTOCOL_GENERATED_DIR}/wayland-webos-protocols.cpp" - COMMAND "${WAYLANDPP_SCANNER}" ${WEBOS_PROTOCOL_XMLS} "${WAYLAND_EXTRA_PROTOCOL_GENERATED_DIR}/wayland-webos-protocols.hpp" "${WAYLAND_EXTRA_PROTOCOL_GENERATED_DIR}/wayland-webos-protocols.cpp" - DEPENDS "${WAYLANDPP_SCANNER}" ${WEBOS_PROTOCOL_XMLS} - COMMENT "Generating wayland-webos C++ wrappers") - add_custom_target(generate-wayland-webos-protocols DEPENDS wayland-webos-protocols.hpp) + if(CORE_PLATFORM_NAME STREQUAL webos) + include(${CMAKE_SOURCE_DIR}/cmake/scripts/webos/ExtraTargets.cmake) endif() # Dummy target for dependencies |