blob: 3f1b56289ca7c0950ed1f1832af01b1a7b90e9df [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 = [
11 "device_scale_factor_observer.h",
12 "linux_ui.h",
13 "nav_button_provider.h",
14 "status_icon_linux.h",
15 "window_button_order_observer.h",
16 "window_frame_provider.h",
17 ]
18 sources = [
19 "linux_ui.cc",
20 "status_icon_linux.cc",
21 ]
22 deps = [
23 "//build:chromecast_buildflags",
24 "//ui/base/ime/linux",
25 "//ui/native_theme",
Tom Anderson4ee83742022-07-14 20:58:4126 ]
Tom Anderson4ee83742022-07-14 20:58:4127 public_deps = [
28 "//printing/buildflags",
29 "//skia",
30 "//ui/base/cursor:theme_manager",
31 ]
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
42 deps = [ "//ui/base:buildflags" ]
43 if (use_gtk) {
44 # This is the only component that can interact with gtk.
45 deps += [ "//ui/gtk" ]
46 }
47 if (use_qt) {
48 deps += [ "//ui/qt" ]
49 }
50}