-
Notifications
You must be signed in to change notification settings - Fork 6.6k
/
BUILD.gn
102 lines (93 loc) · 5.4 KB
/
BUILD.gn
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
# Copyright 2020 The Chromium Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import(
"//components/exo/wayland/compatibility_test/wayland_protocol_codegen.gni")
# This is the canonical list of all protocols which are potentially exposed by the server
server_wayland_protocols = [
"//components/exo/wayland/protocol/aura-shell.xml",
"//third_party/wayland/src/protocol/wayland.xml",
"//third_party/wayland-protocols/src/stable/presentation-time/presentation-time.xml",
"//third_party/wayland-protocols/src/stable/viewporter/viewporter.xml",
"//third_party/wayland-protocols/src/stable/xdg-shell/xdg-shell.xml",
"//third_party/wayland-protocols/src/unstable/fullscreen-shell/fullscreen-shell-unstable-v1.xml",
"//third_party/wayland-protocols/src/unstable/input-timestamps/input-timestamps-unstable-v1.xml",
"//third_party/wayland-protocols/src/unstable/linux-dmabuf/linux-dmabuf-unstable-v1.xml",
"//third_party/wayland-protocols/src/unstable/linux-explicit-synchronization/linux-explicit-synchronization-unstable-v1.xml",
"//third_party/wayland-protocols/src/unstable/pointer-constraints/pointer-constraints-unstable-v1.xml",
"//third_party/wayland-protocols/src/unstable/pointer-gestures/pointer-gestures-unstable-v1.xml",
"//third_party/wayland-protocols/src/unstable/relative-pointer/relative-pointer-unstable-v1.xml",
"//third_party/wayland-protocols/src/unstable/text-input/text-input-unstable-v1.xml",
"//third_party/wayland-protocols/src/unstable/xdg-shell/xdg-shell-unstable-v6.xml",
"//third_party/wayland-protocols/unstable/alpha-compositing/alpha-compositing-unstable-v1.xml",
"//third_party/wayland-protocols/unstable/cursor-shapes/cursor-shapes-unstable-v1.xml",
"//third_party/wayland-protocols/unstable/gaming-input/gaming-input-unstable-v2.xml",
"//third_party/wayland-protocols/unstable/keyboard/keyboard-configuration-unstable-v1.xml",
"//third_party/wayland-protocols/unstable/keyboard/keyboard-extension-unstable-v1.xml",
"//third_party/wayland-protocols/unstable/notification-shell/notification-shell-unstable-v1.xml",
"//third_party/wayland-protocols/unstable/remote-shell/remote-shell-unstable-v1.xml",
"//third_party/wayland-protocols/unstable/remote-shell/remote-shell-unstable-v2.xml",
"//third_party/wayland-protocols/unstable/secure-output/secure-output-unstable-v1.xml",
"//third_party/wayland-protocols/unstable/stylus/stylus-unstable-v2.xml",
"//third_party/wayland-protocols/unstable/stylus-tools/stylus-tools-unstable-v1.xml",
"//third_party/wayland-protocols/unstable/vsync-feedback/vsync-feedback-unstable-v1.xml",
]
wayland_protocol_codegen("generated_client_helper_headers") {
template = "//components/exo/wayland/compatibility_test/template_client_helpers.h.tmpl"
sources = server_wayland_protocols
output_pattern =
"$target_gen_dir/generated-{{source_name_part}}-client-helpers.h"
}
wayland_protocol_codegen("generated_client_helper_impl") {
template = "//components/exo/wayland/compatibility_test/template_client_helpers.cc.tmpl"
sources = server_wayland_protocols
output_pattern =
"$target_gen_dir/generated-{{source_name_part}}-client-helpers.cc"
}
wayland_protocol_codegen("generated_client_event_receiver_version_tests") {
testonly = true
reduce = true
template = "//components/exo/wayland/compatibility_test/template_client_event_receiver_version_tests.cc.tmpl"
sources = server_wayland_protocols
output_pattern =
"$target_gen_dir/all_generated_client_event_receiver_version_tests.cc"
}
source_set("compatibility_test") {
testonly = true
sources = get_target_outputs(":generated_client_helper_impl")
sources +=
get_target_outputs(":generated_client_event_receiver_version_tests")
deps = [
":generated_client_event_receiver_version_tests",
":generated_client_helper_headers",
":generated_client_helper_impl",
]
public_deps = [
"//components/exo/wayland/protocol:aura_shell_protocol",
"//testing/gmock",
"//testing/gtest",
"//third_party/wayland:wayland_client",
"//third_party/wayland-protocols:alpha_compositing_protocol",
"//third_party/wayland-protocols:cursor_shapes_protocol",
"//third_party/wayland-protocols:fullscreen_shell_protocol",
"//third_party/wayland-protocols:gaming_input_protocol",
"//third_party/wayland-protocols:input_timestamps_protocol",
"//third_party/wayland-protocols:keyboard_configuration_protocol",
"//third_party/wayland-protocols:keyboard_extension_protocol",
"//third_party/wayland-protocols:linux_dmabuf_protocol",
"//third_party/wayland-protocols:linux_explicit_synchronization_protocol",
"//third_party/wayland-protocols:notification_shell_protocol",
"//third_party/wayland-protocols:pointer_constraints_protocol",
"//third_party/wayland-protocols:pointer_gestures_protocol",
"//third_party/wayland-protocols:presentation_time_protocol",
"//third_party/wayland-protocols:relative_pointer_protocol",
"//third_party/wayland-protocols:remote_shell_protocol",
"//third_party/wayland-protocols:secure_output_protocol",
"//third_party/wayland-protocols:stylus_protocol",
"//third_party/wayland-protocols:stylus_tools_protocol",
"//third_party/wayland-protocols:text_input_protocol",
"//third_party/wayland-protocols:viewporter_protocol",
"//third_party/wayland-protocols:vsync_feedback_protocol",
"//third_party/wayland-protocols:xdg_shell_protocol",
]
}