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/screen_android.cc", |
11 "chromeos/apply_content_protection_task.cc", | 11 "chromeos/apply_content_protection_task.cc", |
12 "chromeos/apply_content_protection_task.h", | 12 "chromeos/apply_content_protection_task.h", |
13 "chromeos/configure_displays_task.cc", | 13 "chromeos/configure_displays_task.cc", |
14 "chromeos/configure_displays_task.h", | 14 "chromeos/configure_displays_task.h", |
15 "chromeos/display_configurator.cc", | 15 "chromeos/display_configurator.cc", |
16 "chromeos/display_configurator.h", | 16 "chromeos/display_configurator.h", |
17 "chromeos/display_layout_manager.h", | 17 "chromeos/display_layout_manager.h", |
18 "chromeos/display_snapshot_virtual.cc", | 18 "chromeos/display_snapshot_virtual.cc", |
19 "chromeos/display_snapshot_virtual.h", | 19 "chromeos/display_snapshot_virtual.h", |
20 "chromeos/display_util.cc", | 20 "chromeos/display_util.cc", |
21 "chromeos/display_util.h", | 21 "chromeos/display_util.h", |
22 "chromeos/query_content_protection_task.cc", | 22 "chromeos/query_content_protection_task.cc", |
23 "chromeos/query_content_protection_task.h", | 23 "chromeos/query_content_protection_task.h", |
24 "chromeos/update_display_configuration_task.cc", | 24 "chromeos/update_display_configuration_task.cc", |
25 "chromeos/update_display_configuration_task.h", | 25 "chromeos/update_display_configuration_task.h", |
26 "chromeos/x11/display_mode_x11.cc", | |
27 "chromeos/x11/display_mode_x11.h", | |
28 "chromeos/x11/display_snapshot_x11.cc", | |
29 "chromeos/x11/display_snapshot_x11.h", | |
30 "chromeos/x11/display_util_x11.cc", | |
31 "chromeos/x11/display_util_x11.h", | |
32 "chromeos/x11/native_display_delegate_x11.cc", | |
33 "chromeos/x11/native_display_delegate_x11.h", | |
34 "chromeos/x11/native_display_event_dispatcher_x11.cc", | |
35 "chromeos/x11/native_display_event_dispatcher_x11.h", | |
36 "display.cc", | 26 "display.cc", |
37 "display.h", | 27 "display.h", |
38 "display_change_notifier.cc", | 28 "display_change_notifier.cc", |
39 "display_change_notifier.h", | 29 "display_change_notifier.h", |
40 "display_export.h", | 30 "display_export.h", |
41 "display_finder.cc", | 31 "display_finder.cc", |
42 "display_finder.h", | 32 "display_finder.h", |
43 "display_list.cc", | 33 "display_list.cc", |
44 "display_list.h", | 34 "display_list.h", |
45 "display_observer.cc", | 35 "display_observer.cc", |
46 "display_observer.h", | 36 "display_observer.h", |
47 "display_switches.cc", | 37 "display_switches.cc", |
48 "display_switches.h", | 38 "display_switches.h", |
| 39 "fake_display_delegate.cc", |
| 40 "fake_display_delegate.h", |
| 41 "fake_display_snapshot.cc", |
| 42 "fake_display_snapshot.h", |
49 "ios/screen_ios.mm", | 43 "ios/screen_ios.mm", |
50 "mac/screen_mac.mm", | 44 "mac/screen_mac.mm", |
51 "manager/display_layout.cc", | 45 "manager/display_layout.cc", |
52 "manager/display_layout.h", | 46 "manager/display_layout.h", |
53 "manager/display_layout_builder.cc", | 47 "manager/display_layout_builder.cc", |
54 "manager/display_layout_builder.h", | 48 "manager/display_layout_builder.h", |
55 "manager/display_layout_store.cc", | 49 "manager/display_layout_store.cc", |
56 "manager/display_layout_store.h", | 50 "manager/display_layout_store.h", |
57 "manager/display_manager_utilities.cc", | 51 "manager/display_manager_utilities.cc", |
58 "manager/display_manager_utilities.h", | 52 "manager/display_manager_utilities.h", |
(...skipping 24 matching lines...) Expand all Loading... |
83 | 77 |
84 deps = [ | 78 deps = [ |
85 "//base", | 79 "//base", |
86 "//ui/display/types", | 80 "//ui/display/types", |
87 "//ui/display/util", | 81 "//ui/display/util", |
88 "//ui/gfx", | 82 "//ui/gfx", |
89 "//ui/gfx/geometry", | 83 "//ui/gfx/geometry", |
90 ] | 84 ] |
91 | 85 |
92 if (is_chromeos && use_x11) { | 86 if (is_chromeos && use_x11) { |
93 configs += [ | 87 sources += [ |
94 "//build/config/linux:x11", | |
95 "//build/config/linux:xext", | |
96 "//build/config/linux:xi", | |
97 "//build/config/linux:xrandr", | |
98 ] | |
99 deps += [ "//ui/events/platform" ] | |
100 } | |
101 | |
102 deps += [] | |
103 if (use_x11) { | |
104 deps += [ "//ui/gfx/x" ] | |
105 } | |
106 | |
107 if (is_chromeos && use_ozone) { | |
108 sources -= [ | |
109 "chromeos/x11/display_mode_x11.cc", | 88 "chromeos/x11/display_mode_x11.cc", |
110 "chromeos/x11/display_mode_x11.h", | 89 "chromeos/x11/display_mode_x11.h", |
111 "chromeos/x11/display_snapshot_x11.cc", | 90 "chromeos/x11/display_snapshot_x11.cc", |
112 "chromeos/x11/display_snapshot_x11.h", | 91 "chromeos/x11/display_snapshot_x11.h", |
113 "chromeos/x11/display_util_x11.cc", | 92 "chromeos/x11/display_util_x11.cc", |
114 "chromeos/x11/display_util_x11.h", | 93 "chromeos/x11/display_util_x11.h", |
115 "chromeos/x11/native_display_delegate_x11.cc", | 94 "chromeos/x11/native_display_delegate_x11.cc", |
116 "chromeos/x11/native_display_delegate_x11.h", | 95 "chromeos/x11/native_display_delegate_x11.h", |
117 "chromeos/x11/native_display_event_dispatcher_x11.cc", | 96 "chromeos/x11/native_display_event_dispatcher_x11.cc", |
118 "chromeos/x11/native_display_event_dispatcher_x11.h", | 97 "chromeos/x11/native_display_event_dispatcher_x11.h", |
119 ] | 98 ] |
| 99 |
| 100 configs += [ |
| 101 "//build/config/linux:x11", |
| 102 "//build/config/linux:xext", |
| 103 "//build/config/linux:xi", |
| 104 "//build/config/linux:xrandr", |
| 105 ] |
| 106 |
| 107 deps += [ "//ui/events/platform" ] |
120 } | 108 } |
| 109 |
| 110 if (use_x11) { |
| 111 deps += [ "//ui/gfx/x" ] |
| 112 } |
| 113 |
121 if (!use_aura) { | 114 if (!use_aura) { |
122 sources -= [ "screen_aura.cc" ] | 115 sources -= [ "screen_aura.cc" ] |
123 } | 116 } |
124 if (is_android && use_aura) { | 117 if (is_android && use_aura) { |
125 sources -= [ "android/screen_android.cc" ] | 118 sources -= [ "android/screen_android.cc" ] |
126 } | 119 } |
127 if (is_mac) { | 120 if (is_mac) { |
128 libs = [ | 121 libs = [ |
129 "AppKit.framework", | 122 "AppKit.framework", |
130 "CoreGraphics.framework", | 123 "CoreGraphics.framework", |
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
235 sources -= [ "display_change_notifier_unittest.cc" ] | 228 sources -= [ "display_change_notifier_unittest.cc" ] |
236 } | 229 } |
237 | 230 |
238 if (is_chromeos && use_ozone) { | 231 if (is_chromeos && use_ozone) { |
239 sources -= [ | 232 sources -= [ |
240 "chromeos/x11/display_util_x11_unittest.cc", | 233 "chromeos/x11/display_util_x11_unittest.cc", |
241 "chromeos/x11/native_display_event_dispatcher_x11_unittest.cc", | 234 "chromeos/x11/native_display_event_dispatcher_x11_unittest.cc", |
242 ] | 235 ] |
243 } | 236 } |
244 } | 237 } |
OLD | NEW |