2011-12-12 11:55:23 +00:00
|
|
|
#
|
2013-04-10 14:20:48 +00:00
|
|
|
# Extra-compilers for handling files specified in
|
|
|
|
# the WAYLANDSERVERSOURCES and WAYLANDCLIENTSOURCES variables
|
2011-12-12 11:55:23 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
isEmpty(QMAKE_WAYLAND_SCANNER):error("QMAKE_WAYLAND_SCANNER not defined for this mkspec")
|
|
|
|
|
|
|
|
wayland-server-header.name = wayland ${QMAKE_FILE_BASE}
|
2013-04-10 14:20:48 +00:00
|
|
|
wayland-server-header.input = WAYLANDSERVERSOURCES
|
2011-12-12 11:55:23 +00:00
|
|
|
wayland-server-header.variable_out = HEADERS
|
|
|
|
wayland-server-header.output = wayland-${QMAKE_FILE_BASE}-server-protocol$${first(QMAKE_EXT_H)}
|
|
|
|
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
|
|
|
|
|
|
|
|
wayland-client-header.name = wayland ${QMAKE_FILE_BASE}
|
2013-04-10 14:20:48 +00:00
|
|
|
wayland-client-header.input = WAYLANDCLIENTSOURCES
|
2011-12-12 11:55:23 +00:00
|
|
|
wayland-client-header.variable_out = HEADERS
|
|
|
|
wayland-client-header.output = wayland-${QMAKE_FILE_BASE}-client-protocol$${first(QMAKE_EXT_H)}
|
|
|
|
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
|
|
|
|
|
|
|
|
wayland-code.name = wayland ${QMAKE_FILE_BASE}
|
2013-04-10 14:20:48 +00:00
|
|
|
wayland-code.input = WAYLANDCLIENTSOURCES WAYLANDSERVERSOURCES
|
2011-12-12 11:55:23 +00:00
|
|
|
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)
|
|
|
|
|
|
|
|
qtwayland-client-header.name = qtwayland ${QMAKE_FILE_BASE}
|
|
|
|
qtwayland-client-header.input = WAYLANDCLIENTSOURCES
|
|
|
|
qtwayland-client-header.variable_out = HEADERS
|
|
|
|
qtwayland-client-header.depends = wayland-${QMAKE_FILE_BASE}-client-protocol$${first(QMAKE_EXT_H)}
|
|
|
|
qtwayland-client-header.output = qwayland-${QMAKE_FILE_BASE}$${first(QMAKE_EXT_H)}
|
|
|
|
qtwayland-client-header.commands = $$QMAKE_QTWAYLANDSCANNER client-header ${QMAKE_FILE_IN} > ${QMAKE_FILE_OUT}
|
|
|
|
silent:qtwayland-client-header.commands = @echo QtWayland client header ${QMAKE_FILE_IN} && $$qtwayland-client-header.commands
|
|
|
|
QMAKE_EXTRA_COMPILERS += qtwayland-client-header
|
|
|
|
|
|
|
|
qtwayland-client-code.name = qtwayland ${QMAKE_FILE_BASE}
|
|
|
|
qtwayland-client-code.input = WAYLANDCLIENTSOURCES
|
|
|
|
qtwayland-client-code.variable_out = SOURCES
|
|
|
|
qtwayland-client-code.depends = qwayland-${QMAKE_FILE_BASE}$${first(QMAKE_EXT_H)}
|
|
|
|
qtwayland-client-code.output = qwayland-${QMAKE_FILE_BASE}.cpp
|
|
|
|
qtwayland-client-code.commands = $$QMAKE_QTWAYLANDSCANNER client-code ${QMAKE_FILE_IN} > ${QMAKE_FILE_OUT}
|
|
|
|
silent:qtwayland-client-code.commands = @echo QtWayland client code ${QMAKE_FILE_IN} && $$qtwayland-client-code.commands
|
|
|
|
QMAKE_EXTRA_COMPILERS += qtwayland-client-code
|
|
|
|
|
|
|
|
qtwayland-server-header.name = qtwayland ${QMAKE_FILE_BASE}
|
|
|
|
qtwayland-server-header.input = WAYLANDSERVERSOURCES
|
|
|
|
qtwayland-server-header.variable_out = HEADERS
|
|
|
|
qtwayland-server-header.depends = wayland-${QMAKE_FILE_BASE}-server-protocol$${first(QMAKE_EXT_H)}
|
|
|
|
qtwayland-server-header.output = qwayland-server-${QMAKE_FILE_BASE}$${first(QMAKE_EXT_H)}
|
|
|
|
qtwayland-server-header.commands = $$QMAKE_QTWAYLANDSCANNER server-header ${QMAKE_FILE_IN} > ${QMAKE_FILE_OUT}
|
|
|
|
silent:qtwayland-server-header.commands = @echo QtWayland server header ${QMAKE_FILE_IN} && $$qtwayland-server-header.commands
|
|
|
|
QMAKE_EXTRA_COMPILERS += qtwayland-server-header
|
|
|
|
|
|
|
|
qtwayland-server-code.name = qtwayland ${QMAKE_FILE_BASE}
|
|
|
|
qtwayland-server-code.input = WAYLANDSERVERSOURCES
|
|
|
|
qtwayland-server-code.variable_out = SOURCES
|
|
|
|
qtwayland-server-code.depends = qwayland-server-${QMAKE_FILE_BASE}$${first(QMAKE_EXT_H)}
|
|
|
|
qtwayland-server-code.output = qwayland-server-${QMAKE_FILE_BASE}.cpp
|
|
|
|
qtwayland-server-code.commands = $$QMAKE_QTWAYLANDSCANNER server-code ${QMAKE_FILE_IN} > ${QMAKE_FILE_OUT}
|
|
|
|
silent:qtwayland-server-code.commands = @echo QtWayland server code ${QMAKE_FILE_IN} && $$qtwayland-server-code.commands
|
|
|
|
QMAKE_EXTRA_COMPILERS += qtwayland-server-code
|