| 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 | 6 |
| 7 component("display") { | 7 component("display") { |
| 8 sources = [ | 8 sources = [ |
| 9 "chromeos/display_configurator.cc", | 9 "chromeos/display_configurator.cc", |
| 10 "chromeos/display_configurator.h", | 10 "chromeos/display_configurator.h", |
| 11 "chromeos/ozone/display_configurator_ozone.cc", | |
| 12 "chromeos/x11/display_configurator_x11.cc", | 11 "chromeos/x11/display_configurator_x11.cc", |
| 13 "chromeos/x11/display_mode_x11.cc", | 12 "chromeos/x11/display_mode_x11.cc", |
| 14 "chromeos/x11/display_mode_x11.h", | 13 "chromeos/x11/display_mode_x11.h", |
| 15 "chromeos/x11/display_snapshot_x11.cc", | 14 "chromeos/x11/display_snapshot_x11.cc", |
| 16 "chromeos/x11/display_snapshot_x11.h", | 15 "chromeos/x11/display_snapshot_x11.h", |
| 17 "chromeos/x11/display_util_x11.cc", | 16 "chromeos/x11/display_util_x11.cc", |
| 18 "chromeos/x11/display_util_x11.h", | 17 "chromeos/x11/display_util_x11.h", |
| 19 "chromeos/x11/native_display_delegate_x11.cc", | 18 "chromeos/x11/native_display_delegate_x11.cc", |
| 20 "chromeos/x11/native_display_delegate_x11.h", | 19 "chromeos/x11/native_display_delegate_x11.h", |
| 21 "chromeos/x11/native_display_event_dispatcher_x11.cc", | 20 "chromeos/x11/native_display_event_dispatcher_x11.cc", |
| (...skipping 13 matching lines...) Expand all Loading... |
| 35 ] | 34 ] |
| 36 | 35 |
| 37 if (use_x11) { | 36 if (use_x11) { |
| 38 configs += [ | 37 configs += [ |
| 39 "//build/config/linux:x11", | 38 "//build/config/linux:x11", |
| 40 "//build/config/linux:xext", | 39 "//build/config/linux:xext", |
| 41 "//build/config/linux:xi", | 40 "//build/config/linux:xi", |
| 42 "//build/config/linux:xrandr", | 41 "//build/config/linux:xrandr", |
| 43 ] | 42 ] |
| 44 deps += [ "//ui/events/platform" ] | 43 deps += [ "//ui/events/platform" ] |
| 45 if (is_chromeos) { | |
| 46 sources -= [ "chromeos/ozone/display_configurator_ozone.cc" ] | |
| 47 } | |
| 48 } | 44 } |
| 49 | 45 |
| 50 if (is_chromeos) { | 46 if (is_chromeos) { |
| 51 deps += [ "//ui/display/types" ] | 47 deps += [ "//ui/display/types" ] |
| 52 } | 48 } |
| 53 | |
| 54 if (use_ozone) { | |
| 55 deps += [ "//ui/ozone" ] | |
| 56 sources -= [ | |
| 57 "chromeos/x11/display_configurator_x11.cc", | |
| 58 "chromeos/x11/display_mode_x11.cc", | |
| 59 "chromeos/x11/display_mode_x11.h", | |
| 60 "chromeos/x11/display_snapshot_x11.cc", | |
| 61 "chromeos/x11/display_snapshot_x11.h", | |
| 62 "chromeos/x11/display_util_x11.cc", | |
| 63 "chromeos/x11/display_util_x11.h", | |
| 64 "chromeos/x11/native_display_delegate_x11.cc", | |
| 65 "chromeos/x11/native_display_delegate_x11.h", | |
| 66 "chromeos/x11/native_display_event_dispatcher_x11.cc", | |
| 67 "chromeos/x11/native_display_event_dispatcher_x11.h", | |
| 68 ] | |
| 69 } | |
| 70 } | 49 } |
| 71 | 50 |
| 72 component("test_util") { | 51 component("test_util") { |
| 73 output_name = "display_test_util" | 52 output_name = "display_test_util" |
| 74 sources = [ | 53 sources = [ |
| 75 "chromeos/test/test_display_snapshot.cc", | 54 "chromeos/test/test_display_snapshot.cc", |
| 76 "chromeos/test/test_display_snapshot.h", | 55 "chromeos/test/test_display_snapshot.h", |
| 77 ] | 56 ] |
| 78 | 57 |
| 79 defines = [ "DISPLAY_IMPLEMENTATION" ] | 58 defines = [ "DISPLAY_IMPLEMENTATION" ] |
| (...skipping 30 matching lines...) Expand all Loading... |
| 110 "//ui/gfx/geometry", | 89 "//ui/gfx/geometry", |
| 111 ] | 90 ] |
| 112 | 91 |
| 113 if (is_chromeos) { | 92 if (is_chromeos) { |
| 114 deps += [ | 93 deps += [ |
| 115 ":display", | 94 ":display", |
| 116 "//ui/display/types", | 95 "//ui/display/types", |
| 117 ] | 96 ] |
| 118 } | 97 } |
| 119 } | 98 } |
| OLD | NEW |