Chromium Code Reviews| 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("//build/config/android/rules.gni") | |
| 6 import("//testing/test.gni") | 7 import("//testing/test.gni") |
| 7 | 8 |
| 8 component("display") { | 9 component("display") { |
| 9 sources = [ | 10 sources = [ |
| 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", |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 62 "win/dpi.cc", | 62 "win/dpi.cc", |
| 63 "win/dpi.h", | 63 "win/dpi.h", |
| 64 "win/scaling_util.cc", | 64 "win/scaling_util.cc", |
| 65 "win/scaling_util.h", | 65 "win/scaling_util.h", |
| 66 "win/screen_win.cc", | 66 "win/screen_win.cc", |
| 67 "win/screen_win.h", | 67 "win/screen_win.h", |
| 68 "win/screen_win_display.cc", | 68 "win/screen_win_display.cc", |
| 69 "win/screen_win_display.h", | 69 "win/screen_win_display.h", |
| 70 ] | 70 ] |
| 71 | 71 |
| 72 if (is_android && !use_aura) { | |
|
boliu
2016/10/27 22:17:49
aura + android isn't a thing anymore, and android
Tima Vaisburd
2016/10/31 23:36:15
display_android_manager.{cc,h} are included uncond
| |
| 73 sources += [ | |
| 74 "android/display_android_manager.cc", | |
| 75 "android/display_android_manager.h", | |
| 76 "android/jni_registrar.cc", | |
| 77 "android/jni_registrar.h", | |
| 78 ] | |
| 79 } | |
| 80 | |
| 72 defines = [ "DISPLAY_IMPLEMENTATION" ] | 81 defines = [ "DISPLAY_IMPLEMENTATION" ] |
| 73 | 82 |
| 74 public_deps = [ | 83 public_deps = [ |
| 75 "//ui/gfx:gfx", | 84 "//ui/gfx:gfx", |
| 76 ] | 85 ] |
| 77 | 86 |
| 78 deps = [ | 87 deps = [ |
| 79 "//base", | 88 "//base", |
| 80 "//third_party/re2", | 89 "//third_party/re2", |
| 81 "//ui/display/types", | 90 "//ui/display/types", |
| 82 "//ui/display/util", | 91 "//ui/display/util", |
| 83 "//ui/gfx", | 92 "//ui/gfx", |
| 84 "//ui/gfx/geometry", | 93 "//ui/gfx/geometry", |
| 85 ] | 94 ] |
| 86 | 95 |
| 96 if (is_android) { | |
| 97 deps += [ ":display_jni_headers" ] | |
| 98 } | |
| 99 | |
| 87 if (is_chromeos && use_x11) { | 100 if (is_chromeos && use_x11) { |
| 88 sources += [ | 101 sources += [ |
| 89 "chromeos/x11/display_mode_x11.cc", | 102 "chromeos/x11/display_mode_x11.cc", |
| 90 "chromeos/x11/display_mode_x11.h", | 103 "chromeos/x11/display_mode_x11.h", |
| 91 "chromeos/x11/display_snapshot_x11.cc", | 104 "chromeos/x11/display_snapshot_x11.cc", |
| 92 "chromeos/x11/display_snapshot_x11.h", | 105 "chromeos/x11/display_snapshot_x11.h", |
| 93 "chromeos/x11/display_util_x11.cc", | 106 "chromeos/x11/display_util_x11.cc", |
| 94 "chromeos/x11/display_util_x11.h", | 107 "chromeos/x11/display_util_x11.h", |
| 95 "chromeos/x11/native_display_delegate_x11.cc", | 108 "chromeos/x11/native_display_delegate_x11.cc", |
| 96 "chromeos/x11/native_display_delegate_x11.h", | 109 "chromeos/x11/native_display_delegate_x11.h", |
| (...skipping 11 matching lines...) Expand all Loading... | |
| 108 deps += [ "//ui/events/platform" ] | 121 deps += [ "//ui/events/platform" ] |
| 109 } | 122 } |
| 110 | 123 |
| 111 if (use_x11) { | 124 if (use_x11) { |
| 112 deps += [ "//ui/gfx/x" ] | 125 deps += [ "//ui/gfx/x" ] |
| 113 } | 126 } |
| 114 | 127 |
| 115 if (!use_aura) { | 128 if (!use_aura) { |
| 116 sources -= [ "screen_aura.cc" ] | 129 sources -= [ "screen_aura.cc" ] |
| 117 } | 130 } |
| 118 if (is_android && use_aura) { | 131 |
| 119 sources -= [ "android/screen_android.cc" ] | |
| 120 } | |
| 121 if (is_mac) { | 132 if (is_mac) { |
| 122 libs = [ | 133 libs = [ |
| 123 "AppKit.framework", | 134 "AppKit.framework", |
| 124 "CoreGraphics.framework", | 135 "CoreGraphics.framework", |
| 125 ] | 136 ] |
| 126 } | 137 } |
| 127 } | 138 } |
| 128 | 139 |
| 140 generate_jni("display_jni_headers") { | |
| 141 sources = [ | |
| 142 "../../ui/android/java/src/org/chromium/ui/display/DisplayAndroidManager.jav a", | |
|
Tima Vaisburd
2016/10/27 07:55:58
The path that start with ".." is probably bad, sha
mthiesse
2016/10/27 14:30:30
Do you mean to ui/display/android/java/src/org/chr
Tima Vaisburd
2016/10/27 17:56:24
I guess we could repeat the hierarchy under this u
| |
| 143 ] | |
| 144 jni_package = "display" | |
| 145 } | |
| 146 | |
| 129 static_library("test_support") { | 147 static_library("test_support") { |
| 130 testonly = true | 148 testonly = true |
| 131 sources = [ | 149 sources = [ |
| 132 "chromeos/test/action_logger.cc", | 150 "chromeos/test/action_logger.cc", |
| 133 "chromeos/test/action_logger.h", | 151 "chromeos/test/action_logger.h", |
| 134 "chromeos/test/action_logger_util.cc", | 152 "chromeos/test/action_logger_util.cc", |
| 135 "chromeos/test/action_logger_util.h", | 153 "chromeos/test/action_logger_util.h", |
| 136 "chromeos/test/test_display_layout_manager.cc", | 154 "chromeos/test/test_display_layout_manager.cc", |
| 137 "chromeos/test/test_display_layout_manager.h", | 155 "chromeos/test/test_display_layout_manager.h", |
| 138 "chromeos/test/test_native_display_delegate.cc", | 156 "chromeos/test/test_native_display_delegate.cc", |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 208 sources -= [ "display_change_notifier_unittest.cc" ] | 226 sources -= [ "display_change_notifier_unittest.cc" ] |
| 209 } | 227 } |
| 210 | 228 |
| 211 if (is_chromeos && use_ozone) { | 229 if (is_chromeos && use_ozone) { |
| 212 sources -= [ | 230 sources -= [ |
| 213 "chromeos/x11/display_util_x11_unittest.cc", | 231 "chromeos/x11/display_util_x11_unittest.cc", |
| 214 "chromeos/x11/native_display_event_dispatcher_x11_unittest.cc", | 232 "chromeos/x11/native_display_event_dispatcher_x11_unittest.cc", |
| 215 ] | 233 ] |
| 216 } | 234 } |
| 217 } | 235 } |
| OLD | NEW |