Tom Anderson | 4ee8374 | 2022-07-14 20:58:41 | [diff] [blame] | 1 | # 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 | |
| 5 | import("//build/config/linux/gtk/gtk.gni") |
Tom Anderson | 4ee8374 | 2022-07-14 20:58:41 | [diff] [blame] | 6 | import("//ui/qt/qt.gni") |
| 7 | |
| 8 | component("linux_ui") { |
| 9 | defines = [ "IS_LINUX_UI_IMPL" ] |
| 10 | public = [ |
Tom Anderson | a49b45a | 2022-07-14 22:54:30 | [diff] [blame^] | 11 | "cursor_theme_manager_observer.h", |
Tom Anderson | 4ee8374 | 2022-07-14 20:58:41 | [diff] [blame] | 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", |
Tom Anderson | 4ee8374 | 2022-07-14 20:58:41 | [diff] [blame] | 27 | ] |
Tom Anderson | 4ee8374 | 2022-07-14 20:58:41 | [diff] [blame] | 28 | public_deps = [ |
| 29 | "//printing/buildflags", |
| 30 | "//skia", |
Tom Anderson | 4ee8374 | 2022-07-14 20:58:41 | [diff] [blame] | 31 | ] |
| 32 | } |
| 33 | |
| 34 | source_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 Anderson | a49b45a | 2022-07-14 22:54:30 | [diff] [blame^] | 42 | deps = [ |
| 43 | "//base", |
| 44 | "//ui/base:buildflags", |
| 45 | ] |
Tom Anderson | 4ee8374 | 2022-07-14 20:58:41 | [diff] [blame] | 46 | 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 | } |