| 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 20 matching lines...) Expand all Loading... |
| 79 | 73 |
| 80 deps = [ | 74 deps = [ |
| 81 "//base", | 75 "//base", |
| 82 "//ui/display/types", | 76 "//ui/display/types", |
| 83 "//ui/display/util", | 77 "//ui/display/util", |
| 84 "//ui/gfx", | 78 "//ui/gfx", |
| 85 "//ui/gfx/geometry", | 79 "//ui/gfx/geometry", |
| 86 ] | 80 ] |
| 87 | 81 |
| 88 if (is_chromeos && use_x11) { | 82 if (is_chromeos && use_x11) { |
| 89 configs += [ | 83 sources += [ |
| 90 "//build/config/linux:x11", | |
| 91 "//build/config/linux:xext", | |
| 92 "//build/config/linux:xi", | |
| 93 "//build/config/linux:xrandr", | |
| 94 ] | |
| 95 deps += [ "//ui/events/platform" ] | |
| 96 } | |
| 97 | |
| 98 deps += [] | |
| 99 if (use_x11) { | |
| 100 deps += [ "//ui/gfx/x" ] | |
| 101 } | |
| 102 | |
| 103 if (is_chromeos && use_ozone) { | |
| 104 sources -= [ | |
| 105 "chromeos/x11/display_mode_x11.cc", | 84 "chromeos/x11/display_mode_x11.cc", |
| 106 "chromeos/x11/display_mode_x11.h", | 85 "chromeos/x11/display_mode_x11.h", |
| 107 "chromeos/x11/display_snapshot_x11.cc", | 86 "chromeos/x11/display_snapshot_x11.cc", |
| 108 "chromeos/x11/display_snapshot_x11.h", | 87 "chromeos/x11/display_snapshot_x11.h", |
| 109 "chromeos/x11/display_util_x11.cc", | 88 "chromeos/x11/display_util_x11.cc", |
| 110 "chromeos/x11/display_util_x11.h", | 89 "chromeos/x11/display_util_x11.h", |
| 111 "chromeos/x11/native_display_delegate_x11.cc", | 90 "chromeos/x11/native_display_delegate_x11.cc", |
| 112 "chromeos/x11/native_display_delegate_x11.h", | 91 "chromeos/x11/native_display_delegate_x11.h", |
| 113 "chromeos/x11/native_display_event_dispatcher_x11.cc", | 92 "chromeos/x11/native_display_event_dispatcher_x11.cc", |
| 114 "chromeos/x11/native_display_event_dispatcher_x11.h", | 93 "chromeos/x11/native_display_event_dispatcher_x11.h", |
| 115 ] | 94 ] |
| 95 |
| 96 configs += [ |
| 97 "//build/config/linux:x11", |
| 98 "//build/config/linux:xext", |
| 99 "//build/config/linux:xi", |
| 100 "//build/config/linux:xrandr", |
| 101 ] |
| 102 |
| 103 deps += [ "//ui/events/platform" ] |
| 116 } | 104 } |
| 105 |
| 106 if (use_x11) { |
| 107 deps += [ "//ui/gfx/x" ] |
| 108 } |
| 109 |
| 117 if (!use_aura) { | 110 if (!use_aura) { |
| 118 sources -= [ "screen_aura.cc" ] | 111 sources -= [ "screen_aura.cc" ] |
| 119 } | 112 } |
| 120 if (is_android && use_aura) { | 113 if (is_android && use_aura) { |
| 121 sources -= [ "android/screen_android.cc" ] | 114 sources -= [ "android/screen_android.cc" ] |
| 122 } | 115 } |
| 123 if (is_mac) { | 116 if (is_mac) { |
| 124 libs = [ | 117 libs = [ |
| 125 "AppKit.framework", | 118 "AppKit.framework", |
| 126 "CoreGraphics.framework", | 119 "CoreGraphics.framework", |
| (...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 231 sources -= [ "display_change_notifier_unittest.cc" ] | 224 sources -= [ "display_change_notifier_unittest.cc" ] |
| 232 } | 225 } |
| 233 | 226 |
| 234 if (is_chromeos && use_ozone) { | 227 if (is_chromeos && use_ozone) { |
| 235 sources -= [ | 228 sources -= [ |
| 236 "chromeos/x11/display_util_x11_unittest.cc", | 229 "chromeos/x11/display_util_x11_unittest.cc", |
| 237 "chromeos/x11/native_display_event_dispatcher_x11_unittest.cc", | 230 "chromeos/x11/native_display_event_dispatcher_x11_unittest.cc", |
| 238 ] | 231 ] |
| 239 } | 232 } |
| 240 } | 233 } |
| OLD | NEW |