OLD | NEW |
(Empty) | |
| 1 # Copyright 2015 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("//testing/test.gni") |
| 6 |
| 7 source_set("exo") { |
| 8 sources = [ |
| 9 "buffer.cc", |
| 10 "buffer.h", |
| 11 "display.cc", |
| 12 "display.h", |
| 13 "shared_memory.cc", |
| 14 "shared_memory.h", |
| 15 "shell_surface.cc", |
| 16 "shell_surface.h", |
| 17 "surface.cc", |
| 18 "surface.h", |
| 19 "surface_delegate.h", |
| 20 ] |
| 21 |
| 22 defines = [ "EXO_IMPLEMENTATION" ] |
| 23 |
| 24 deps = [ |
| 25 "//ash", |
| 26 "//base", |
| 27 "//cc", |
| 28 "//gpu", |
| 29 "//skia", |
| 30 "//ui/aura", |
| 31 "//ui/compositor", |
| 32 "//ui/gfx", |
| 33 "//ui/gfx/geometry", |
| 34 "//ui/gl", |
| 35 "//ui/views", |
| 36 ] |
| 37 } |
| 38 |
| 39 source_set("test_support") { |
| 40 testonly = true |
| 41 |
| 42 sources = [ |
| 43 "test/exo_test_base.cc", |
| 44 "test/exo_test_base.h", |
| 45 "test/exo_test_helper.cc", |
| 46 "test/exo_test_helper.h", |
| 47 ] |
| 48 |
| 49 deps = [ |
| 50 "//ash:test_support", |
| 51 "//base", |
| 52 "//skia", |
| 53 "//testing/gtest", |
| 54 ] |
| 55 } |
| 56 |
| 57 source_set("unit_tests") { |
| 58 testonly = true |
| 59 |
| 60 sources = [ |
| 61 "buffer_unittest.cc", |
| 62 "display_unittest.cc", |
| 63 "shared_memory_unittest.cc", |
| 64 "shell_surface_unittest.cc", |
| 65 "surface_unittest.cc", |
| 66 ] |
| 67 |
| 68 deps = [ |
| 69 "//components/user_manager", |
| 70 "//skia", |
| 71 "//testing/gtest", |
| 72 "//ui/keyboard", |
| 73 "//ui/message_center", |
| 74 ":exo", |
| 75 ":test_support", |
| 76 ] |
| 77 } |
| 78 |
| 79 test("exo_unittests") { |
| 80 sources = [ |
| 81 "test/run_all_unittests.cc", |
| 82 ] |
| 83 deps = [ |
| 84 "//ash:test_support", |
| 85 ":unit_tests", |
| 86 ] |
| 87 if (is_linux) { |
| 88 deps += [ "//components/exo/wayland:unit_tests" ] |
| 89 } |
| 90 } |
OLD | NEW |