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 import("//build/config/ui.gni") |
| 6 |
| 7 component("display") { |
| 8 sources = [ |
| 9 "chromeos/display_configurator.cc", |
| 10 "chromeos/display_configurator.h", |
| 11 "chromeos/touchscreen_delegate_impl.cc", |
| 12 "chromeos/touchscreen_delegate_impl.h", |
| 13 "chromeos/ozone/display_configurator_ozone.cc", |
| 14 "chromeos/x11/display_configurator_x11.cc", |
| 15 "chromeos/x11/display_mode_x11.cc", |
| 16 "chromeos/x11/display_mode_x11.h", |
| 17 "chromeos/x11/display_snapshot_x11.cc", |
| 18 "chromeos/x11/display_snapshot_x11.h", |
| 19 "chromeos/x11/display_util_x11.cc", |
| 20 "chromeos/x11/display_util_x11.h", |
| 21 "chromeos/x11/native_display_delegate_x11.cc", |
| 22 "chromeos/x11/native_display_delegate_x11.h", |
| 23 "chromeos/x11/native_display_event_dispatcher_x11.cc", |
| 24 "chromeos/x11/native_display_event_dispatcher_x11.h", |
| 25 "chromeos/x11/touchscreen_device_manager_x11.cc", |
| 26 "chromeos/x11/touchscreen_device_manager_x11.h", |
| 27 "display_export.h", |
| 28 "display_switches.cc", |
| 29 "display_switches.h", |
| 30 ] |
| 31 |
| 32 defines = [ "DISPLAY_IMPLEMENTATION" ] |
| 33 |
| 34 deps = [ |
| 35 "//base", |
| 36 "//ui/display/util", |
| 37 "//ui/gfx", |
| 38 "//ui/gfx/geometry", |
| 39 ] |
| 40 |
| 41 if (use_x11) { |
| 42 configs += [ |
| 43 "//build/config/linux:x11", |
| 44 "//build/config/linux:xext", |
| 45 "//build/config/linux:xi", |
| 46 "//build/config/linux:xrandr", |
| 47 ] |
| 48 deps += [ |
| 49 "//ui/events/platform", |
| 50 ] |
| 51 } |
| 52 |
| 53 if (is_chromeos) { |
| 54 deps += [ "//ui/display/types" ] |
| 55 } |
| 56 |
| 57 if (use_ozone) { |
| 58 deps += [ "//ui/ozone" ] |
| 59 } |
| 60 } |
| 61 |
| 62 component("test_util") { |
| 63 output_name = "display_test_util" |
| 64 sources = [ |
| 65 "chromeos/test/test_display_snapshot.cc", |
| 66 "chromeos/test/test_display_snapshot.h", |
| 67 ] |
| 68 |
| 69 defines = [ "DISPLAY_IMPLEMENTATION" ] |
| 70 |
| 71 deps = [ |
| 72 "//base", |
| 73 "//ui/gfx", |
| 74 "//ui/gfx/geometry", |
| 75 ] |
| 76 |
| 77 if (is_chromeos) { |
| 78 deps += [ "//ui/display/types" ] |
| 79 } |
| 80 } |
| 81 |
| 82 test("display_unittests") { |
| 83 sources = [ |
| 84 "chromeos/display_configurator_unittest.cc", |
| 85 "chromeos/touchscreen_delegate_impl_unittest.cc", |
| 86 "chromeos/x11/display_util_x11_unittest.cc", |
| 87 "chromeos/x11/native_display_event_dispatcher_x11_unittest.cc", |
| 88 "util/display_util_unittest.cc", |
| 89 "util/edid_parser_unittest.cc", |
| 90 ] |
| 91 |
| 92 deps = [ |
| 93 "//base/test:run_all_unittests", |
| 94 "//testing/gtest", |
| 95 "//ui/display/util", |
| 96 "//ui/gfx/geometry", |
| 97 ] |
| 98 |
| 99 if (is_chromeos) { |
| 100 deps += [ |
| 101 ":display", |
| 102 ":test_util", |
| 103 "//ui/display/types", |
| 104 ] |
| 105 } |
| 106 } |
OLD | NEW |