| 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 if (is_android) { | 8 if (is_android) { |
| 9 import("//build/config/android/config.gni") | 9 import("//build/config/android/config.gni") |
| 10 import("//build/config/android/rules.gni") | 10 import("//build/config/android/rules.gni") |
| (...skipping 283 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 294 | 294 |
| 295 if (use_x11) { | 295 if (use_x11) { |
| 296 configs += [ "//build/config/linux:x11" ] | 296 configs += [ "//build/config/linux:x11" ] |
| 297 deps += [ | 297 deps += [ |
| 298 "//ui/gfx/x", | 298 "//ui/gfx/x", |
| 299 "//ui/platform_window/x11", | 299 "//ui/platform_window/x11", |
| 300 ] | 300 ] |
| 301 } | 301 } |
| 302 } | 302 } |
| 303 | 303 |
| 304 # TODO(GYP): Delete this after we've converted everything to GN. |
| 305 # The _run targets exist only for compatibility w/ GYP. |
| 306 group("gl_unittests_run") { |
| 307 testonly = true |
| 308 deps = [ |
| 309 ":gl_unittests", |
| 310 ] |
| 311 } |
| 312 |
| 304 test("gl_unittests") { | 313 test("gl_unittests") { |
| 305 sources = [ | 314 sources = [ |
| 306 "gl_api_unittest.cc", | 315 "gl_api_unittest.cc", |
| 307 "gpu_timing_unittest.cc", | 316 "gpu_timing_unittest.cc", |
| 308 "test/run_all_unittests.cc", | 317 "test/run_all_unittests.cc", |
| 309 ] | 318 ] |
| 310 | 319 |
| 311 if (is_win || is_android || is_linux) { | 320 if (is_win || is_android || is_linux) { |
| 312 sources += [ | 321 sources += [ |
| 313 "egl_api_unittest.cc", | 322 "egl_api_unittest.cc", |
| (...skipping 24 matching lines...) Expand all Loading... |
| 338 deps = [ | 347 deps = [ |
| 339 ":surface_jni_headers", | 348 ":surface_jni_headers", |
| 340 ] | 349 ] |
| 341 sources = [ | 350 sources = [ |
| 342 "../android/java/src/org/chromium/ui/gl/SurfaceTextureListener.java", | 351 "../android/java/src/org/chromium/ui/gl/SurfaceTextureListener.java", |
| 343 "../android/java/src/org/chromium/ui/gl/SurfaceTexturePlatformWrapper.java
", | 352 "../android/java/src/org/chromium/ui/gl/SurfaceTexturePlatformWrapper.java
", |
| 344 ] | 353 ] |
| 345 jni_package = "ui/gl" | 354 jni_package = "ui/gl" |
| 346 } | 355 } |
| 347 } | 356 } |
| OLD | NEW |