blob: 0b231581f9c137b04b50bc79501e593df89b31af [file] [log] [blame]
Tom Anderson4ee83742022-07-14 20:58:411# 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/linux/gtk/gtk.gni")
Tom Anderson4ee83742022-07-14 20:58:416import("//ui/qt/qt.gni")
7
8component("linux_ui") {
9 defines = [ "IS_LINUX_UI_IMPL" ]
10 public = [
Tom Andersona49b45a2022-07-14 22:54:3011 "cursor_theme_manager_observer.h",
Tom Anderson4ee83742022-07-14 20:58:4112 "device_scale_factor_observer.h",
13 "linux_ui.h",
14 "nav_button_provider.h",
15 "status_icon_linux.h",
16 "window_button_order_observer.h",
17 "window_frame_provider.h",
18 ]
19 sources = [
20 "linux_ui.cc",
21 "status_icon_linux.cc",
22 ]
23 deps = [
24 "//build:chromecast_buildflags",
25 "//ui/base/ime/linux",
26 "//ui/native_theme",
Tom Anderson4ee83742022-07-14 20:58:4127 ]
Tom Anderson4ee83742022-07-14 20:58:4128 public_deps = [
29 "//printing/buildflags",
30 "//skia",
Tom Anderson4ee83742022-07-14 20:58:4131 ]
32}
33
34source_set("linux_ui_factory") {
35 sources = [
36 "linux_ui_factory.cc",
37 "linux_ui_factory.h",
38 ]
39
40 public_deps = [ ":linux_ui" ]
41
Tom Andersona49b45a2022-07-14 22:54:3042 deps = [
43 "//base",
44 "//ui/base:buildflags",
45 ]
Tom Anderson4ee83742022-07-14 20:58:4146 if (use_gtk) {
47 # This is the only component that can interact with gtk.
48 deps += [ "//ui/gtk" ]
49 }
50 if (use_qt) {
51 deps += [ "//ui/qt" ]
52 }
53}