blob: b2d3f8cdd0e8d7c5a562fbef57c7d8a1b7a02520 [file] [log] [blame]
Hidehiko Abef6d06b62022-04-26 17:42:381# Copyright 2022 The Chromium Authors. All rights reserved.
2# Use of this source code is governed by a BSD-style license that can be
3# found in the LICENSE file.
4
5import("//build/config/chromeos/ui_mode.gni")
6import("//build/config/ozone.gni")
7
8# ash-chrome depends on wayland, since components/exo is wayland compositor.
9# If platform supports wayland (as a client), it also depends on wayland.
10assert(is_chromeos_ash || ozone_platform_wayland)
11
12source_set("wayland_input_types_impl") {
13 sources = [ "wayland_input_types_impl.h" ]
14
15 visibility = [
16 ":wayland_client_input_types",
17 ":wayland_server_input_types",
18 ]
19}
20
21source_set("wayland_client_input_types") {
22 sources = [
23 "wayland_client_input_types.cc",
24 "wayland_client_input_types.h",
25 ]
26
27 public_deps = [
28 "//third_party/wayland-protocols:text_input_extension_protocol",
29 "//third_party/wayland-protocols:text_input_protocol",
30 "//third_party/wayland:wayland_client",
31 "//ui/base/ime:text_input_types",
32 ]
33
34 deps = [
35 ":wayland_input_types_impl",
36 "//base",
37 ]
38}
39
40source_set("wayland_server_input_types") {
41 sources = [
42 "wayland_server_input_types.cc",
43 "wayland_server_input_types.h",
44 ]
45
46 public_deps = [
47 "//third_party/abseil-cpp:absl",
48 "//third_party/wayland-protocols:text_input_extension_protocol",
49 "//third_party/wayland-protocols:text_input_protocol",
50 "//third_party/wayland:wayland_server",
51 "//ui/base/ime:text_input_types",
52 ]
53
54 deps = [
55 ":wayland_input_types_impl",
56 ]
57}
58
59source_set("unittests") {
60 testonly = true
61
62 sources = [ "wayland_input_types_unittest.cc" ]
63
64 deps = [
65 ":wayland_client_input_types",
66 ":wayland_server_input_types",
67 "//testing/gtest",
68 "//ui/base/ime:text_input_types",
69 ]
70}