Avi Drissman | 3e1a26c | 2022-09-15 20:26:03 | [diff] [blame] | 1 | # Copyright 2022 The Chromium Authors |
Hidehiko Abe | f6d06b6 | 2022-04-26 17:42:38 | [diff] [blame] | 2 | # Use of this source code is governed by a BSD-style license that can be |
| 3 | # found in the LICENSE file. |
| 4 | |
Hidehiko Abe | f6d06b6 | 2022-04-26 17:42:38 | [diff] [blame] | 5 | import("//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 Sisov | a524c3b9 | 2024-10-22 20:10:18 | [diff] [blame] | 9 | assert(is_chromeos || ozone_platform_wayland) |
Hidehiko Abe | f6d06b6 | 2022-04-26 17:42:38 | [diff] [blame] | 10 | |
| 11 | source_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 | |
| 20 | source_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 Adegunloye | 7442d9b | 2022-05-01 20:01:41 | [diff] [blame] | 27 | "//third_party/wayland:wayland_client", |
Hidehiko Abe | f6d06b6 | 2022-04-26 17:42:38 | [diff] [blame] | 28 | "//third_party/wayland-protocols:text_input_extension_protocol", |
| 29 | "//third_party/wayland-protocols:text_input_protocol", |
Hidehiko Abe | f6d06b6 | 2022-04-26 17:42:38 | [diff] [blame] | 30 | "//ui/base/ime:text_input_types", |
| 31 | ] |
| 32 | |
| 33 | deps = [ |
| 34 | ":wayland_input_types_impl", |
| 35 | "//base", |
| 36 | ] |
| 37 | } |
| 38 | |
| 39 | source_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 Adegunloye | 7442d9b | 2022-05-01 20:01:41 | [diff] [blame] | 47 | "//third_party/wayland:wayland_server", |
Hidehiko Abe | f6d06b6 | 2022-04-26 17:42:38 | [diff] [blame] | 48 | "//third_party/wayland-protocols:text_input_extension_protocol", |
| 49 | "//third_party/wayland-protocols:text_input_protocol", |
Hidehiko Abe | f6d06b6 | 2022-04-26 17:42:38 | [diff] [blame] | 50 | "//ui/base/ime:text_input_types", |
| 51 | ] |
| 52 | |
Femi Adegunloye | 7442d9b | 2022-05-01 20:01:41 | [diff] [blame] | 53 | deps = [ ":wayland_input_types_impl" ] |
| 54 | } |
| 55 | |
| 56 | source_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 Abe | f6d06b6 | 2022-04-26 17:42:38 | [diff] [blame] | 66 | ] |
| 67 | } |
| 68 | |
Mitsuru Oshima | 0800537 | 2022-11-17 17:14:38 | [diff] [blame] | 69 | source_set("wayland_display_util") { |
| 70 | sources = [ |
| 71 | "wayland_display_util.cc", |
| 72 | "wayland_display_util.h", |
| 73 | ] |
| 74 | } |
| 75 | |
Hidehiko Abe | f6d06b6 | 2022-04-26 17:42:38 | [diff] [blame] | 76 | source_set("unittests") { |
| 77 | testonly = true |
| 78 | |
Mitsuru Oshima | 0800537 | 2022-11-17 17:14:38 | [diff] [blame] | 79 | sources = [ |
| 80 | "wayland_display_util_unittest.cc", |
| 81 | "wayland_input_types_unittest.cc", |
| 82 | ] |
Hidehiko Abe | f6d06b6 | 2022-04-26 17:42:38 | [diff] [blame] | 83 | |
| 84 | deps = [ |
| 85 | ":wayland_client_input_types", |
Mitsuru Oshima | 0800537 | 2022-11-17 17:14:38 | [diff] [blame] | 86 | ":wayland_display_util", |
Hidehiko Abe | f6d06b6 | 2022-04-26 17:42:38 | [diff] [blame] | 87 | ":wayland_server_input_types", |
| 88 | "//testing/gtest", |
| 89 | "//ui/base/ime:text_input_types", |
| 90 | ] |
| 91 | } |