| OLD | NEW |
| (Empty) |
| 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 | |
| 3 # found in the LICENSE file. | |
| 4 | |
| 5 { | |
| 6 'variables': { | |
| 7 'chromium_code': 1, | |
| 8 }, | |
| 9 'targets': [ | |
| 10 { | |
| 11 # GN version: //ui/display/types | |
| 12 'target_name': 'display_types', | |
| 13 'type': '<(component)', | |
| 14 'dependencies': [ | |
| 15 '../../base/base.gyp:base', | |
| 16 '../../ui/gfx/gfx.gyp:gfx_geometry', | |
| 17 ], | |
| 18 'defines': [ | |
| 19 'DISPLAY_TYPES_IMPLEMENTATION', | |
| 20 ], | |
| 21 'sources': [ | |
| 22 # Note: file list duplicated in GN build. | |
| 23 'types/display_constants.h', | |
| 24 'types/display_mode.cc', | |
| 25 'types/display_mode.h', | |
| 26 'types/display_snapshot.cc', | |
| 27 'types/display_snapshot.h', | |
| 28 'types/display_types_export.h', | |
| 29 'types/gamma_ramp_rgb_entry.h', | |
| 30 'types/native_display_delegate.h', | |
| 31 'types/native_display_observer.h', | |
| 32 ], | |
| 33 }, | |
| 34 { | |
| 35 # GN version: //ui/display | |
| 36 'target_name': 'display', | |
| 37 'type': '<(component)', | |
| 38 'dependencies': [ | |
| 39 '../../base/base.gyp:base', | |
| 40 '../../ui/gfx/gfx.gyp:gfx', | |
| 41 '../../ui/gfx/gfx.gyp:gfx_geometry', | |
| 42 'display_util', | |
| 43 ], | |
| 44 'defines': [ | |
| 45 'DISPLAY_IMPLEMENTATION', | |
| 46 ], | |
| 47 'sources': [ | |
| 48 # Note: file list duplicated in GN build. | |
| 49 'android/screen_android.cc', | |
| 50 'chromeos/apply_content_protection_task.cc', | |
| 51 'chromeos/apply_content_protection_task.h', | |
| 52 'chromeos/configure_displays_task.cc', | |
| 53 'chromeos/configure_displays_task.h', | |
| 54 'chromeos/display_configurator.cc', | |
| 55 'chromeos/display_configurator.h', | |
| 56 'chromeos/display_layout_manager.h', | |
| 57 'chromeos/display_snapshot_virtual.cc', | |
| 58 'chromeos/display_snapshot_virtual.h', | |
| 59 'chromeos/display_util.cc', | |
| 60 'chromeos/display_util.h', | |
| 61 'chromeos/query_content_protection_task.cc', | |
| 62 'chromeos/query_content_protection_task.h', | |
| 63 'chromeos/update_display_configuration_task.cc', | |
| 64 'chromeos/update_display_configuration_task.h', | |
| 65 'chromeos/x11/display_mode_x11.cc', | |
| 66 'chromeos/x11/display_mode_x11.h', | |
| 67 'chromeos/x11/display_snapshot_x11.cc', | |
| 68 'chromeos/x11/display_snapshot_x11.h', | |
| 69 'chromeos/x11/display_util_x11.cc', | |
| 70 'chromeos/x11/display_util_x11.h', | |
| 71 'chromeos/x11/native_display_delegate_x11.cc', | |
| 72 'chromeos/x11/native_display_delegate_x11.h', | |
| 73 'chromeos/x11/native_display_event_dispatcher_x11.cc', | |
| 74 'chromeos/x11/native_display_event_dispatcher_x11.h', | |
| 75 'display.cc', | |
| 76 'display.h', | |
| 77 'display_change_notifier.cc', | |
| 78 'display_change_notifier.h', | |
| 79 'display_export.h', | |
| 80 'display_finder.cc', | |
| 81 'display_finder.h', | |
| 82 'display_observer.cc', | |
| 83 'display_observer.h', | |
| 84 'display_switches.cc', | |
| 85 'display_switches.h', | |
| 86 'ios/screen_ios.mm', | |
| 87 'mac/screen_mac.mm', | |
| 88 'manager/display_layout.cc', | |
| 89 'manager/display_layout.h', | |
| 90 'manager/display_layout_builder.cc', | |
| 91 'manager/display_layout_builder.h', | |
| 92 'screen.cc', | |
| 93 'screen.h', | |
| 94 'screen_aura.cc', | |
| 95 'win/display_info.cc', | |
| 96 'win/display_info.h', | |
| 97 'win/dpi.cc', | |
| 98 'win/dpi.h', | |
| 99 'win/scaling_util.cc', | |
| 100 'win/scaling_util.h', | |
| 101 'win/screen_win.cc', | |
| 102 'win/screen_win.h', | |
| 103 'win/screen_win_display.cc', | |
| 104 'win/screen_win_display.h', | |
| 105 ], | |
| 106 'conditions': [ | |
| 107 ['use_x11 == 1', { | |
| 108 'dependencies': [ | |
| 109 '../../build/linux/system.gyp:x11', | |
| 110 '../../build/linux/system.gyp:xext', | |
| 111 '../../build/linux/system.gyp:xi', | |
| 112 '../../build/linux/system.gyp:xrandr', | |
| 113 '../../ui/events/platform/events_platform.gyp:events_platform', | |
| 114 ], | |
| 115 }], | |
| 116 ['chromeos == 1', { | |
| 117 'dependencies': [ | |
| 118 'display_types', | |
| 119 ], | |
| 120 }], | |
| 121 ['chromeos == 1 and use_x11 == 1', { | |
| 122 'dependencies': [ | |
| 123 '../gfx/x/gfx_x11.gyp:gfx_x11', | |
| 124 ], | |
| 125 }], | |
| 126 ['OS=="android" and use_aura==1', { | |
| 127 'sources!': [ | |
| 128 'android/screen_android.cc', | |
| 129 ], | |
| 130 }], | |
| 131 ], | |
| 132 }, | |
| 133 { | |
| 134 # GN version: //ui/display/util | |
| 135 'target_name': 'display_util', | |
| 136 'type': '<(component)', | |
| 137 'dependencies': [ | |
| 138 '../../base/base.gyp:base', | |
| 139 '../../ui/gfx/gfx.gyp:gfx_geometry', | |
| 140 ], | |
| 141 'defines': [ | |
| 142 'DISPLAY_UTIL_IMPLEMENTATION', | |
| 143 ], | |
| 144 'sources': [ | |
| 145 # Note: file list shared with GN build. | |
| 146 'util/display_util.cc', | |
| 147 'util/display_util.h', | |
| 148 'util/display_util_export.h', | |
| 149 'util/edid_parser.cc', | |
| 150 'util/edid_parser.h', | |
| 151 'util/x11/edid_parser_x11.cc', | |
| 152 'util/x11/edid_parser_x11.h', | |
| 153 ], | |
| 154 'conditions': [ | |
| 155 ['use_x11 == 1', { | |
| 156 'dependencies': [ | |
| 157 '../../build/linux/system.gyp:x11', | |
| 158 '../../build/linux/system.gyp:xrandr', | |
| 159 '../../ui/gfx/x/gfx_x11.gyp:gfx_x11', | |
| 160 ], | |
| 161 }], | |
| 162 ['chromeos == 1', { | |
| 163 'dependencies': [ | |
| 164 'display_types', | |
| 165 ], | |
| 166 }], | |
| 167 ], | |
| 168 }, | |
| 169 { | |
| 170 # Used to share stubs with code outside ui/display | |
| 171 # | |
| 172 # GN version: //ui/display:test_util | |
| 173 'target_name': 'display_test_util', | |
| 174 'type': '<(component)', | |
| 175 'dependencies': [ | |
| 176 '../../base/base.gyp:base', | |
| 177 '../../ui/gfx/gfx.gyp:gfx', | |
| 178 '../../ui/gfx/gfx.gyp:gfx_geometry', | |
| 179 ], | |
| 180 'defines': [ | |
| 181 'DISPLAY_IMPLEMENTATION', | |
| 182 ], | |
| 183 'sources': [ | |
| 184 # Note: file list duplicated in GN build. | |
| 185 'chromeos/test/test_display_snapshot.cc', | |
| 186 'chromeos/test/test_display_snapshot.h', | |
| 187 ], | |
| 188 'conditions': [ | |
| 189 ['chromeos == 1', { | |
| 190 'dependencies': [ | |
| 191 'display_types', | |
| 192 ], | |
| 193 }], | |
| 194 ], | |
| 195 }, | |
| 196 # Internal utilities used by display_unittests | |
| 197 { | |
| 198 'target_name': 'display_test_support', | |
| 199 'type': 'static_library', | |
| 200 'dependencies': [ | |
| 201 '../../base/base.gyp:base', | |
| 202 '../../ui/gfx/gfx.gyp:gfx', | |
| 203 '../../ui/gfx/gfx.gyp:gfx_geometry', | |
| 204 ], | |
| 205 'sources': [ | |
| 206 'chromeos/test/action_logger.cc', | |
| 207 'chromeos/test/action_logger.h', | |
| 208 'chromeos/test/action_logger_util.cc', | |
| 209 'chromeos/test/action_logger_util.h', | |
| 210 'chromeos/test/test_display_layout_manager.cc', | |
| 211 'chromeos/test/test_display_layout_manager.h', | |
| 212 'chromeos/test/test_native_display_delegate.cc', | |
| 213 'chromeos/test/test_native_display_delegate.h', | |
| 214 'test/display_test_util.h', | |
| 215 'test/test_screen.cc', | |
| 216 'test/test_screen.h', | |
| 217 'win/test/screen_util_win.h', | |
| 218 'win/test/screen_util_win.cc', | |
| 219 ], | |
| 220 }, | |
| 221 { | |
| 222 # GN version: //ui/display:display_unittests | |
| 223 'target_name': 'display_unittests', | |
| 224 'type': 'executable', | |
| 225 'dependencies': [ | |
| 226 '../../base/base.gyp:run_all_unittests', | |
| 227 '../../testing/gtest.gyp:gtest', | |
| 228 '../../ui/gfx/gfx.gyp:gfx_geometry', | |
| 229 '../../ui/gfx/gfx.gyp:gfx_test_support', | |
| 230 'display', | |
| 231 'display_util', | |
| 232 ], | |
| 233 'include_dirs': [ | |
| 234 '../..', | |
| 235 ], | |
| 236 'sources': [ | |
| 237 'chromeos/apply_content_protection_task_unittest.cc', | |
| 238 'chromeos/configure_displays_task_unittest.cc', | |
| 239 'chromeos/display_configurator_unittest.cc', | |
| 240 'chromeos/query_content_protection_task_unittest.cc', | |
| 241 'chromeos/update_display_configuration_task_unittest.cc', | |
| 242 'chromeos/x11/display_util_x11_unittest.cc', | |
| 243 'chromeos/x11/native_display_event_dispatcher_x11_unittest.cc', | |
| 244 'display_change_notifier_unittest.cc', | |
| 245 'display_unittest.cc', | |
| 246 'manager/display_layout_builder_unittest.cc', | |
| 247 'manager/display_layout_unittest.cc', | |
| 248 'screen_unittest.cc', | |
| 249 'util/display_util_unittest.cc', | |
| 250 'util/edid_parser_unittest.cc', | |
| 251 'win/scaling_util_unittest.cc', | |
| 252 'win/screen_win_unittest.cc', | |
| 253 ], | |
| 254 'conditions': [ | |
| 255 ['chromeos == 1', { | |
| 256 'dependencies': [ | |
| 257 'display_test_support', | |
| 258 'display_test_util', | |
| 259 'display_types', | |
| 260 ], | |
| 261 }], | |
| 262 ['use_aura==1', { | |
| 263 'sources!': [ | |
| 264 'screen_unittest.cc', | |
| 265 ], | |
| 266 }], | |
| 267 ['OS=="win"', { | |
| 268 'dependencies': [ | |
| 269 'display_test_support', | |
| 270 ] | |
| 271 }], | |
| 272 ], | |
| 273 }, | |
| 274 ], | |
| 275 'conditions': [ | |
| 276 ['test_isolation_mode != "noop"', { | |
| 277 'targets': [ | |
| 278 { | |
| 279 'target_name': 'display_unittests_run', | |
| 280 'type': 'none', | |
| 281 'dependencies': [ | |
| 282 'display_unittests', | |
| 283 ], | |
| 284 'includes': [ | |
| 285 '../../build/isolate.gypi', | |
| 286 ], | |
| 287 'sources': [ | |
| 288 'display_unittests.isolate', | |
| 289 ], | |
| 290 }, | |
| 291 ], | |
| 292 }], | |
| 293 ], | |
| 294 } | |
| OLD | NEW |