| 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("//testing/test.gni") | 6 import("//testing/test.gni") |
| 7 | 7 |
| 8 component("compositor") { | 8 component("compositor") { |
| 9 sources = [ | 9 sources = [ |
| 10 "canvas_painter.cc", | 10 "canvas_painter.cc", |
| (...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 147 } | 147 } |
| 148 | 148 |
| 149 if (use_ozone) { | 149 if (use_ozone) { |
| 150 sources += [ "test/test_compositor_host_ozone.cc" ] | 150 sources += [ "test/test_compositor_host_ozone.cc" ] |
| 151 } else if (use_x11) { | 151 } else if (use_x11) { |
| 152 sources += [ "test/test_compositor_host_x11.cc" ] | 152 sources += [ "test/test_compositor_host_x11.cc" ] |
| 153 } | 153 } |
| 154 } | 154 } |
| 155 | 155 |
| 156 if (!is_android) { | 156 if (!is_android) { |
| 157 # TODO(GYP): Delete this after we've converted everything to GN. |
| 158 # The _run targets exist only for compatibility w/ GYP. |
| 159 group("compositor_unittests_run") { |
| 160 testonly = true |
| 161 deps = [ |
| 162 ":compositor_unittests", |
| 163 ] |
| 164 } |
| 165 |
| 157 test("compositor_unittests") { | 166 test("compositor_unittests") { |
| 158 sources = [ | 167 sources = [ |
| 159 "compositor_unittest.cc", | 168 "compositor_unittest.cc", |
| 160 "layer_animation_element_unittest.cc", | 169 "layer_animation_element_unittest.cc", |
| 161 "layer_animation_sequence_unittest.cc", | 170 "layer_animation_sequence_unittest.cc", |
| 162 "layer_animator_unittest.cc", | 171 "layer_animator_unittest.cc", |
| 163 "layer_owner_unittest.cc", | 172 "layer_owner_unittest.cc", |
| 164 "layer_unittest.cc", | 173 "layer_unittest.cc", |
| 165 "run_all_unittests.cc", | 174 "run_all_unittests.cc", |
| 166 "transform_animation_curve_adapter_unittest.cc", | 175 "transform_animation_curve_adapter_unittest.cc", |
| 167 ] | 176 ] |
| 168 | 177 |
| 178 data = [ |
| 179 "//ui/gfx/test/data/compositor/", |
| 180 ] |
| 181 |
| 169 deps = [ | 182 deps = [ |
| 170 ":compositor", | 183 ":compositor", |
| 171 ":test_support", | 184 ":test_support", |
| 172 "//base", | 185 "//base", |
| 173 "//base/allocator", | 186 "//base/allocator", |
| 174 "//base/test:test_support", | 187 "//base/test:test_support", |
| 175 "//cc", | 188 "//cc", |
| 176 "//cc:test_support", | 189 "//cc:test_support", |
| 177 "//skia", | 190 "//skia", |
| 178 "//testing/gmock", | 191 "//testing/gmock", |
| 179 "//testing/gtest", | 192 "//testing/gtest", |
| 180 "//ui/base", | 193 "//ui/base", |
| 181 "//ui/gfx", | 194 "//ui/gfx", |
| 182 "//ui/gfx/geometry", | 195 "//ui/gfx/geometry", |
| 183 "//ui/gl", | 196 "//ui/gl", |
| 184 "//ui/resources", | 197 "//ui/resources", |
| 185 ] | 198 ] |
| 186 | 199 |
| 187 if (is_linux) { | 200 if (is_linux) { |
| 188 deps += [ "//third_party/mesa:osmesa" ] | 201 deps += [ "//third_party/mesa:osmesa" ] |
| 189 } | 202 } |
| 190 } | 203 } |
| 191 } | 204 } |
| OLD | NEW |