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/buildflag_header.gni") | 5 import("//build/buildflag_header.gni") |
6 import("//build/config/chrome_build.gni") | 6 import("//build/config/chrome_build.gni") |
7 import("//build/config/linux/pkg_config.gni") | 7 import("//build/config/linux/pkg_config.gni") |
8 import("//build/config/ui.gni") | 8 import("//build/config/ui.gni") |
9 import("//ui/ozone/ozone.gni") | 9 import("//ui/ozone/ozone.gni") |
10 import("//testing/test.gni") | 10 import("//testing/test.gni") |
(...skipping 386 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
397 "//ui/gfx", | 397 "//ui/gfx", |
398 "//ui/gfx/geometry", | 398 "//ui/gfx/geometry", |
399 "//ui/gl/init", | 399 "//ui/gl/init", |
400 ] | 400 ] |
401 | 401 |
402 data_deps = [ | 402 data_deps = [ |
403 "//third_party/mesa:osmesa", | 403 "//third_party/mesa:osmesa", |
404 ] | 404 ] |
405 } | 405 } |
406 | 406 |
| 407 # Non-Ozone trybots end up trying to build this when building "all" and failing |
| 408 # when X11 isn't there. |
| 409 if (ozone_platform_x11) { |
| 410 group("gl_unittests_ozonex") { |
| 411 testonly = true |
| 412 data_deps = [ |
| 413 ":gl_unittests", |
| 414 "//tools/xdisplaycheck", |
| 415 ] |
| 416 } |
| 417 |
| 418 # TODO(GYP_GONE): Delete this after we've converted everything to GN. |
| 419 # The _run targets exist only for compatibility w/ GYP. |
| 420 group("gl_unittests_ozonex_run") { |
| 421 testonly = true |
| 422 deps = [ |
| 423 ":gl_unittests_ozonex", |
| 424 ] |
| 425 } |
| 426 } |
| 427 |
407 if (is_android) { | 428 if (is_android) { |
408 generate_jar_jni("surface_jni_headers") { | 429 generate_jar_jni("surface_jni_headers") { |
409 jni_package = "ui/gl" | 430 jni_package = "ui/gl" |
410 classes = [ "android/view/Surface.class" ] | 431 classes = [ "android/view/Surface.class" ] |
411 } | 432 } |
412 | 433 |
413 generate_jni("gl_jni_headers") { | 434 generate_jni("gl_jni_headers") { |
414 sources = [ | 435 sources = [ |
415 "../android/java/src/org/chromium/ui/gl/SurfaceTextureListener.java", | 436 "../android/java/src/org/chromium/ui/gl/SurfaceTextureListener.java", |
416 "../android/java/src/org/chromium/ui/gl/SurfaceTexturePlatformWrapper.java
", | 437 "../android/java/src/org/chromium/ui/gl/SurfaceTexturePlatformWrapper.java
", |
417 ] | 438 ] |
418 public_deps = [ | 439 public_deps = [ |
419 ":surface_jni_headers", | 440 ":surface_jni_headers", |
420 ] | 441 ] |
421 jni_package = "ui/gl" | 442 jni_package = "ui/gl" |
422 } | 443 } |
423 } | 444 } |
OLD | NEW |