tests: Move Wayland protocols to dedicated directory

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2810>
This commit is contained in:
Jonas Ådahl 2023-01-27 11:41:26 +01:00 committed by Marge Bot
parent 056a65bb01
commit 99a0dd447b
4 changed files with 33 additions and 32 deletions

View File

@ -123,6 +123,7 @@ if have_clutter_tests
subdir('clutter') subdir('clutter')
endif endif
subdir('protocol')
subdir('wayland-test-clients') subdir('wayland-test-clients')
if have_installed_tests if have_installed_tests

View File

@ -0,0 +1,32 @@
test_driver_server_header = custom_target(
'test-driver server header',
input: 'test-driver.xml',
output: 'test-driver-server-protocol.h',
command: [
wayland_scanner,
'server-header',
'@INPUT@', '@OUTPUT@',
]
)
test_driver_client_header = custom_target(
'test-driver client header',
input: 'test-driver.xml',
output: 'test-driver-client-protocol.h',
command: [
wayland_scanner,
'client-header',
'@INPUT@', '@OUTPUT@',
]
)
test_driver_protocol_code = custom_target(
'test-driver source',
input: 'test-driver.xml',
output: 'test-driver-protocol.c',
command: [
wayland_scanner,
'private-code',
'@INPUT@', '@OUTPUT@',
]
)

View File

@ -3,38 +3,6 @@ wayland_test_client_installed_tests_libexecdir = join_paths(
'wayland-test-clients', 'wayland-test-clients',
) )
test_driver_server_header = custom_target(
'test-driver server header',
input: 'test-driver.xml',
output: 'test-driver-server-protocol.h',
command: [
wayland_scanner,
'server-header',
'@INPUT@', '@OUTPUT@',
]
)
test_driver_client_header = custom_target(
'test-driver client header',
input: 'test-driver.xml',
output: 'test-driver-client-protocol.h',
command: [
wayland_scanner,
'client-header',
'@INPUT@', '@OUTPUT@',
]
)
test_driver_protocol_code = custom_target(
'test-driver source',
input: 'test-driver.xml',
output: 'test-driver-protocol.c',
command: [
wayland_scanner,
'private-code',
'@INPUT@', '@OUTPUT@',
]
)
common_sources = [ common_sources = [
'wayland-test-client-utils.c', 'wayland-test-client-utils.c',