diff options
author | craigcarnell <craig_carnell@hotmail.com> | 2023-03-17 21:42:10 +0000 |
---|---|---|
committer | wsnipex <wsnipex@a1.net> | 2023-03-18 18:24:44 +0100 |
commit | ea8dff9354d066ccb071c5e50e51e642b91c5c44 (patch) | |
tree | eae84ef63ab481b5f52dd1152713219e5f41df8b /cmake/scripts/linux | |
parent | 06b0426decc28889681c415e7a7325a6831da58f (diff) |
Move webos protocol xml target to install
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 |