1 # generate webos wayland protocols
2 set(WEBOS_PROTOCOL_XMLS "${WAYLANDPROTOCOLSWEBOS_PROTOCOLSDIR}/webos-shell.xml"
3 "${WAYLANDPROTOCOLSWEBOS_PROTOCOLSDIR}/webos-foreign.xml"
5 add_custom_command(OUTPUT "${WAYLAND_EXTRA_PROTOCOL_GENERATED_DIR}/wayland-webos-protocols.hpp" "${WAYLAND_EXTRA_PROTOCOL_GENERATED_DIR}/wayland-webos-protocols.cpp"
6 COMMAND "${WAYLANDPP_SCANNER}" ${WEBOS_PROTOCOL_XMLS} "${WAYLAND_EXTRA_PROTOCOL_GENERATED_DIR}/wayland-webos-protocols.hpp" "${WAYLAND_EXTRA_PROTOCOL_GENERATED_DIR}/wayland-webos-protocols.cpp"
7 DEPENDS "${WAYLANDPP_SCANNER}" ${WEBOS_PROTOCOL_XMLS}
8 COMMENT "Generating wayland-webos C++ wrappers")
9 add_custom_target(generate-wayland-webos-protocols DEPENDS wayland-webos-protocols.hpp)
10 # ToDo: turn this into a TARGET OBJECT. For now, a custum target doesnt play nice with
11 # our PLATFORM_GLOBAL_TARGET_DEPS usage in macros
12 add_dependencies(lib${APP_NAME_LC} generate-wayland-webos-protocols)