blob: 096c9889c12109c1c41bc742185dd5ff617f0d0c [file] [log] [blame]
Avi Drissman3e1a26c2022-09-15 20:26:031# Copyright 2022 The Chromium Authors
Hidehiko Abef6d06b62022-04-26 17:42:382# Use of this source code is governed by a BSD-style license that can be
3# found in the LICENSE file.
4
Hidehiko Abef6d06b62022-04-26 17:42:385import("//build/config/ozone.gni")
6
7# ash-chrome depends on wayland, since components/exo is wayland compositor.
8# If platform supports wayland (as a client), it also depends on wayland.
Maksim Sisova524c3b92024-10-22 20:10:189assert(is_chromeos || ozone_platform_wayland)
Hidehiko Abef6d06b62022-04-26 17:42:3810
11source_set("wayland_input_types_impl") {
12 sources = [ "wayland_input_types_impl.h" ]
13
14 visibility = [
15 ":wayland_client_input_types",
16 ":wayland_server_input_types",
17 ]
18}
19
20source_set("wayland_client_input_types") {
21 sources = [
22 "wayland_client_input_types.cc",
23 "wayland_client_input_types.h",
24 ]
25
26 public_deps = [
Femi Adegunloye7442d9b2022-05-01 20:01:4127 "//third_party/wayland:wayland_client",
Hidehiko Abef6d06b62022-04-26 17:42:3828 "//third_party/wayland-protocols:text_input_extension_protocol",
29 "//third_party/wayland-protocols:text_input_protocol",
Hidehiko Abef6d06b62022-04-26 17:42:3830 "//ui/base/ime:text_input_types",
31 ]
32
33 deps = [
34 ":wayland_input_types_impl",
35 "//base",
36 ]
37}
38
39source_set("wayland_server_input_types") {
40 sources = [
41 "wayland_server_input_types.cc",
42 "wayland_server_input_types.h",
43 ]
44
45 public_deps = [
46 "//third_party/abseil-cpp:absl",
Femi Adegunloye7442d9b2022-05-01 20:01:4147 "//third_party/wayland:wayland_server",
Hidehiko Abef6d06b62022-04-26 17:42:3848 "//third_party/wayland-protocols:text_input_extension_protocol",
49 "//third_party/wayland-protocols:text_input_protocol",
Hidehiko Abef6d06b62022-04-26 17:42:3850 "//ui/base/ime:text_input_types",
51 ]
52
Femi Adegunloye7442d9b2022-05-01 20:01:4153 deps = [ ":wayland_input_types_impl" ]
54}
55
56source_set("color_manager_util") {
57 sources = [
58 "color_manager_util.cc",
59 "color_manager_util.h",
60 ]
61 public_deps = [
62 "//base",
63 "//components/exo/wayland/protocol:chrome_color_management_protocol",
64 "//third_party/wayland:wayland_server",
65 "//ui/gfx:color_space",
Hidehiko Abef6d06b62022-04-26 17:42:3866 ]
67}
68
Mitsuru Oshima08005372022-11-17 17:14:3869source_set("wayland_display_util") {
70 sources = [
71 "wayland_display_util.cc",
72 "wayland_display_util.h",
73 ]
74}
75
Hidehiko Abef6d06b62022-04-26 17:42:3876source_set("unittests") {
77 testonly = true
78
Mitsuru Oshima08005372022-11-17 17:14:3879 sources = [
80 "wayland_display_util_unittest.cc",
81 "wayland_input_types_unittest.cc",
82 ]
Hidehiko Abef6d06b62022-04-26 17:42:3883
84 deps = [
85 ":wayland_client_input_types",
Mitsuru Oshima08005372022-11-17 17:14:3886 ":wayland_display_util",
Hidehiko Abef6d06b62022-04-26 17:42:3887 ":wayland_server_input_types",
88 "//testing/gtest",
89 "//ui/base/ime:text_input_types",
90 ]
91}