2011-12-12 11:55:23 +00:00
|
|
|
#
|
2013-04-10 14:20:48 +00:00
|
|
|
# Extra-compilers for handling files specified in
|
2017-02-07 11:02:20 +00:00
|
|
|
# the WAYLANDSERVERSOURCES and WAYLANDCLIENTSOURCES variables.
|
2011-12-12 11:55:23 +00:00
|
|
|
#
|
2017-02-07 11:02:20 +00:00
|
|
|
# WAYLANDSERVERSOURCES_SYSTEM and WAYLANDCLIENTSOURCES_SYSTEM
|
|
|
|
# are for protocols where the wayland-scanner output is already
|
|
|
|
# included in the system libraries. In that case, .c files must
|
|
|
|
# not be generated, to avoid the Qt version replacing driver-specific
|
|
|
|
# functions. These files are therefore omitted from wayland_code.input.
|
|
|
|
# Header files are still generated because they are used to build QtWayland.
|
|
|
|
#
|
|
|
|
# qtwaylandscanner must be used even in the _SYSTEM case, since the system
|
|
|
|
# Wayland libraries do not contain Qt code.
|
2011-12-12 11:55:23 +00:00
|
|
|
|
|
|
|
isEmpty(QMAKE_WAYLAND_SCANNER):error("QMAKE_WAYLAND_SCANNER not defined for this mkspec")
|
|
|
|
|
2018-06-27 10:21:32 +00:00
|
|
|
!isEmpty(MODULE_INCNAME) {
|
|
|
|
WAYLAND_INCLUDE_DIR = $$MODULE_INCNAME/private
|
|
|
|
}
|
|
|
|
|
2013-07-19 12:35:19 +00:00
|
|
|
wayland_server_header.name = wayland ${QMAKE_FILE_BASE}
|
2017-02-07 11:02:20 +00:00
|
|
|
wayland_server_header.input = WAYLANDSERVERSOURCES WAYLANDSERVERSOURCES_SYSTEM
|
2013-07-19 12:35:19 +00:00
|
|
|
wayland_server_header.variable_out = HEADERS
|
2018-06-13 22:53:30 +00:00
|
|
|
wayland_server_header.output = wayland-${QMAKE_FILE_BASE}-server-protocol$${first(QMAKE_EXT_H)}
|
2013-07-19 12:35:19 +00:00
|
|
|
wayland_server_header.commands = $$QMAKE_WAYLAND_SCANNER server-header < ${QMAKE_FILE_IN} > ${QMAKE_FILE_OUT}
|
|
|
|
silent:wayland_server_header.commands = @echo Wayland server header ${QMAKE_FILE_IN} && $$wayland_server_header.commands
|
|
|
|
QMAKE_EXTRA_COMPILERS += wayland_server_header
|
2011-12-12 11:55:23 +00:00
|
|
|
|
2013-07-19 12:35:19 +00:00
|
|
|
wayland_client_header.name = wayland ${QMAKE_FILE_BASE}
|
2017-02-07 11:02:20 +00:00
|
|
|
wayland_client_header.input = WAYLANDCLIENTSOURCES WAYLANDCLIENTSOURCES_SYSTEM
|
2013-07-19 12:35:19 +00:00
|
|
|
wayland_client_header.variable_out = HEADERS
|
2018-06-13 22:53:30 +00:00
|
|
|
wayland_client_header.output = wayland-${QMAKE_FILE_BASE}-client-protocol$${first(QMAKE_EXT_H)}
|
2013-07-19 12:35:19 +00:00
|
|
|
wayland_client_header.commands = $$QMAKE_WAYLAND_SCANNER client-header < ${QMAKE_FILE_IN} > ${QMAKE_FILE_OUT}
|
|
|
|
silent:wayland_client_header.commands = @echo Wayland client header ${QMAKE_FILE_IN} && $$wayland_client_header.commands
|
|
|
|
QMAKE_EXTRA_COMPILERS += wayland_client_header
|
2011-12-12 11:55:23 +00:00
|
|
|
|
2013-07-19 12:35:19 +00:00
|
|
|
wayland_code.name = wayland ${QMAKE_FILE_BASE}
|
|
|
|
wayland_code.input = WAYLANDCLIENTSOURCES WAYLANDSERVERSOURCES
|
|
|
|
wayland_code.variable_out = SOURCES
|
|
|
|
wayland_code.output = wayland-${QMAKE_FILE_BASE}-protocol.c
|
|
|
|
wayland_code.commands = $$QMAKE_WAYLAND_SCANNER code < ${QMAKE_FILE_IN} > ${QMAKE_FILE_OUT}
|
|
|
|
silent:wayland_code.commands = @echo Wayland code header ${QMAKE_FILE_IN} && $$wayland_code.commands
|
|
|
|
QMAKE_EXTRA_COMPILERS += wayland_code
|
2013-04-10 14:20:48 +00:00
|
|
|
|
|
|
|
qtPrepareTool(QMAKE_QTWAYLANDSCANNER, qtwaylandscanner)
|
|
|
|
|
2013-07-19 12:35:19 +00:00
|
|
|
qtwayland_client_header.name = qtwayland ${QMAKE_FILE_BASE}
|
2017-02-07 11:02:20 +00:00
|
|
|
qtwayland_client_header.input = WAYLANDCLIENTSOURCES WAYLANDCLIENTSOURCES_SYSTEM
|
2013-07-19 12:35:19 +00:00
|
|
|
qtwayland_client_header.variable_out = HEADERS
|
2018-06-13 22:53:30 +00:00
|
|
|
qtwayland_client_header.depends += $$QMAKE_QTWAYLANDSCANNER_EXE wayland-${QMAKE_FILE_BASE}-client-protocol$${first(QMAKE_EXT_H)}
|
|
|
|
qtwayland_client_header.output = qwayland-${QMAKE_FILE_BASE}$${first(QMAKE_EXT_H)}
|
2018-06-27 10:21:32 +00:00
|
|
|
qtwayland_client_header.commands = $$QMAKE_QTWAYLANDSCANNER client-header ${QMAKE_FILE_IN} $$WAYLAND_INCLUDE_DIR > ${QMAKE_FILE_OUT}
|
2013-07-19 12:35:19 +00:00
|
|
|
silent:qtwayland_client_header.commands = @echo QtWayland client header ${QMAKE_FILE_IN} && $$qtwayland_client_header.commands
|
|
|
|
QMAKE_EXTRA_COMPILERS += qtwayland_client_header
|
2013-04-10 14:20:48 +00:00
|
|
|
|
2013-07-19 12:35:19 +00:00
|
|
|
qtwayland_client_code.name = qtwayland ${QMAKE_FILE_BASE}
|
2017-02-07 11:02:20 +00:00
|
|
|
qtwayland_client_code.input = WAYLANDCLIENTSOURCES WAYLANDCLIENTSOURCES_SYSTEM
|
2013-07-19 12:35:19 +00:00
|
|
|
qtwayland_client_code.variable_out = SOURCES
|
2018-06-13 22:53:30 +00:00
|
|
|
qtwayland_client_code.depends += $$QMAKE_QTWAYLANDSCANNER_EXE qwayland-${QMAKE_FILE_BASE}$${first(QMAKE_EXT_H)}
|
2013-07-19 12:35:19 +00:00
|
|
|
qtwayland_client_code.output = qwayland-${QMAKE_FILE_BASE}.cpp
|
2018-06-27 10:21:32 +00:00
|
|
|
qtwayland_client_code.commands = $$QMAKE_QTWAYLANDSCANNER client-code ${QMAKE_FILE_IN} $$WAYLAND_INCLUDE_DIR > ${QMAKE_FILE_OUT}
|
2013-07-19 12:35:19 +00:00
|
|
|
silent:qtwayland_client_code.commands = @echo QtWayland client code ${QMAKE_FILE_IN} && $$qtwayland_client_code.commands
|
|
|
|
QMAKE_EXTRA_COMPILERS += qtwayland_client_code
|
2013-04-10 14:20:48 +00:00
|
|
|
|
2013-07-19 12:35:19 +00:00
|
|
|
qtwayland_server_header.name = qtwayland ${QMAKE_FILE_BASE}
|
2017-02-07 11:02:20 +00:00
|
|
|
qtwayland_server_header.input = WAYLANDSERVERSOURCES WAYLANDSERVERSOURCES_SYSTEM
|
2013-07-19 12:35:19 +00:00
|
|
|
qtwayland_server_header.variable_out = HEADERS
|
2018-06-13 22:53:30 +00:00
|
|
|
qtwayland_server_header.depends += $$QMAKE_QTWAYLANDSCANNER_EXE wayland-${QMAKE_FILE_BASE}-server-protocol$${first(QMAKE_EXT_H)}
|
|
|
|
qtwayland_server_header.output = qwayland-server-${QMAKE_FILE_BASE}$${first(QMAKE_EXT_H)}
|
2018-06-27 10:21:32 +00:00
|
|
|
qtwayland_server_header.commands = $$QMAKE_QTWAYLANDSCANNER server-header ${QMAKE_FILE_IN} $$WAYLAND_INCLUDE_DIR > ${QMAKE_FILE_OUT}
|
2013-07-19 12:35:19 +00:00
|
|
|
silent:qtwayland_server_header.commands = @echo QtWayland server header ${QMAKE_FILE_IN} && $$qtwayland_server_header.commands
|
|
|
|
QMAKE_EXTRA_COMPILERS += qtwayland_server_header
|
2013-04-10 14:20:48 +00:00
|
|
|
|
2013-07-19 12:35:19 +00:00
|
|
|
qtwayland_server_code.name = qtwayland ${QMAKE_FILE_BASE}
|
2017-02-07 11:02:20 +00:00
|
|
|
qtwayland_server_code.input = WAYLANDSERVERSOURCES WAYLANDSERVERSOURCES_SYSTEM
|
2013-07-19 12:35:19 +00:00
|
|
|
qtwayland_server_code.variable_out = SOURCES
|
2018-06-13 22:53:30 +00:00
|
|
|
qtwayland_server_code.depends += $$QMAKE_QTWAYLANDSCANNER_EXE qwayland-server-${QMAKE_FILE_BASE}$${first(QMAKE_EXT_H)}
|
2013-07-19 12:35:19 +00:00
|
|
|
qtwayland_server_code.output = qwayland-server-${QMAKE_FILE_BASE}.cpp
|
2018-06-27 10:21:32 +00:00
|
|
|
qtwayland_server_code.commands = $$QMAKE_QTWAYLANDSCANNER server-code ${QMAKE_FILE_IN} $$WAYLAND_INCLUDE_DIR > ${QMAKE_FILE_OUT}
|
2013-07-19 12:35:19 +00:00
|
|
|
silent:qtwayland_server_code.commands = @echo QtWayland server code ${QMAKE_FILE_IN} && $$qtwayland_server_code.commands
|
|
|
|
QMAKE_EXTRA_COMPILERS += qtwayland_server_code
|