OLD | NEW |
1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 The Chromium Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 import("//build/config/ui.gni") | 5 import("//build/config/ui.gni") |
6 import("//testing/test.gni") | 6 import("//testing/test.gni") |
7 | 7 |
8 component("display") { | 8 component("display") { |
9 sources = [ | 9 sources = [ |
10 "android/screen_android.cc", | 10 "android/display_android_manager.cc", |
| 11 "android/display_android_manager.h", |
11 "chromeos/apply_content_protection_task.cc", | 12 "chromeos/apply_content_protection_task.cc", |
12 "chromeos/apply_content_protection_task.h", | 13 "chromeos/apply_content_protection_task.h", |
13 "chromeos/configure_displays_task.cc", | 14 "chromeos/configure_displays_task.cc", |
14 "chromeos/configure_displays_task.h", | 15 "chromeos/configure_displays_task.h", |
15 "chromeos/display_configurator.cc", | 16 "chromeos/display_configurator.cc", |
16 "chromeos/display_configurator.h", | 17 "chromeos/display_configurator.h", |
17 "chromeos/display_layout_manager.h", | 18 "chromeos/display_layout_manager.h", |
18 "chromeos/display_snapshot_virtual.cc", | 19 "chromeos/display_snapshot_virtual.cc", |
19 "chromeos/display_snapshot_virtual.h", | 20 "chromeos/display_snapshot_virtual.h", |
20 "chromeos/display_util.cc", | 21 "chromeos/display_util.cc", |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
79 | 80 |
80 deps = [ | 81 deps = [ |
81 "//base", | 82 "//base", |
82 "//third_party/re2", | 83 "//third_party/re2", |
83 "//ui/display/types", | 84 "//ui/display/types", |
84 "//ui/display/util", | 85 "//ui/display/util", |
85 "//ui/gfx", | 86 "//ui/gfx", |
86 "//ui/gfx/geometry", | 87 "//ui/gfx/geometry", |
87 ] | 88 ] |
88 | 89 |
| 90 if (is_android) { |
| 91 deps += [ "//ui//android:ui_android_jni_headers" ] |
| 92 } |
| 93 |
89 if (is_chromeos && use_x11) { | 94 if (is_chromeos && use_x11) { |
90 sources += [ | 95 sources += [ |
91 "chromeos/x11/display_mode_x11.cc", | 96 "chromeos/x11/display_mode_x11.cc", |
92 "chromeos/x11/display_mode_x11.h", | 97 "chromeos/x11/display_mode_x11.h", |
93 "chromeos/x11/display_snapshot_x11.cc", | 98 "chromeos/x11/display_snapshot_x11.cc", |
94 "chromeos/x11/display_snapshot_x11.h", | 99 "chromeos/x11/display_snapshot_x11.h", |
95 "chromeos/x11/display_util_x11.cc", | 100 "chromeos/x11/display_util_x11.cc", |
96 "chromeos/x11/display_util_x11.h", | 101 "chromeos/x11/display_util_x11.h", |
97 "chromeos/x11/native_display_delegate_x11.cc", | 102 "chromeos/x11/native_display_delegate_x11.cc", |
98 "chromeos/x11/native_display_delegate_x11.h", | 103 "chromeos/x11/native_display_delegate_x11.h", |
(...skipping 11 matching lines...) Expand all Loading... |
110 deps += [ "//ui/events/platform" ] | 115 deps += [ "//ui/events/platform" ] |
111 } | 116 } |
112 | 117 |
113 if (use_x11) { | 118 if (use_x11) { |
114 deps += [ "//ui/gfx/x" ] | 119 deps += [ "//ui/gfx/x" ] |
115 } | 120 } |
116 | 121 |
117 if (!use_aura) { | 122 if (!use_aura) { |
118 sources -= [ "screen_aura.cc" ] | 123 sources -= [ "screen_aura.cc" ] |
119 } | 124 } |
120 if (is_android && use_aura) { | 125 |
121 sources -= [ "android/screen_android.cc" ] | |
122 } | |
123 if (is_mac) { | 126 if (is_mac) { |
124 libs = [ | 127 libs = [ |
125 "AppKit.framework", | 128 "AppKit.framework", |
126 "CoreGraphics.framework", | 129 "CoreGraphics.framework", |
127 ] | 130 ] |
128 } | 131 } |
129 } | 132 } |
130 | 133 |
131 component("display_manager_test_api") { | 134 component("display_manager_test_api") { |
132 testonly = true | 135 testonly = true |
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
230 sources -= [ "display_change_notifier_unittest.cc" ] | 233 sources -= [ "display_change_notifier_unittest.cc" ] |
231 } | 234 } |
232 | 235 |
233 if (is_chromeos && use_ozone) { | 236 if (is_chromeos && use_ozone) { |
234 sources -= [ | 237 sources -= [ |
235 "chromeos/x11/display_util_x11_unittest.cc", | 238 "chromeos/x11/display_util_x11_unittest.cc", |
236 "chromeos/x11/native_display_event_dispatcher_x11_unittest.cc", | 239 "chromeos/x11/native_display_event_dispatcher_x11_unittest.cc", |
237 ] | 240 ] |
238 } | 241 } |
239 } | 242 } |
OLD | NEW |