blob: ca135e1a966d22b47669bcc2208b325a8b74a5dc [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")
6import("//printing/buildflags/buildflags.gni")
7import("//ui/qt/qt.gni")
8
9component("linux_ui") {
10 defines = [ "IS_LINUX_UI_IMPL" ]
11 public = [
12 "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",
27 "//ui/shell_dialogs",
28 ]
29 if (enable_basic_printing) {
30 deps += [ "//printing" ]
31 }
32 public_deps = [
33 "//printing/buildflags",
34 "//skia",
35 "//ui/base/cursor:theme_manager",
36 ]
37}
38
39source_set("linux_ui_factory") {
40 sources = [
41 "linux_ui_factory.cc",
42 "linux_ui_factory.h",
43 ]
44
45 public_deps = [ ":linux_ui" ]
46
47 deps = [ "//ui/base:buildflags" ]
48 if (use_gtk) {
49 # This is the only component that can interact with gtk.
50 deps += [ "//ui/gtk" ]
51 }
52 if (use_qt) {
53 deps += [ "//ui/qt" ]
54 }
55}