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