| Index: ui/gl/BUILD.gn
|
| diff --git a/ui/gl/BUILD.gn b/ui/gl/BUILD.gn
|
| index 04f652d87128aa17bde44d06263b6e6f8f5b7053..4fd99f4f9b56c6d42734c85082ff19bc3edbc000 100644
|
| --- a/ui/gl/BUILD.gn
|
| +++ b/ui/gl/BUILD.gn
|
| @@ -3,6 +3,9 @@
|
| # found in the LICENSE file.
|
|
|
| import("//build/config/ui.gni")
|
| +if (is_android) {
|
| + import("//build/config/android/rules.gni")
|
| +}
|
|
|
| gl_binding_output_dir = target_gen_dir
|
|
|
| @@ -222,6 +225,10 @@ component("gl") {
|
| ]
|
|
|
| libs = [ "android" ]
|
| +
|
| + deps += [
|
| + ":gl_jni_headers",
|
| + ]
|
| }
|
| if (use_ozone) {
|
| sources += [
|
| @@ -293,3 +300,13 @@ action("generate_gl_bindings") {
|
| rebase_path(gl_binding_output_dir, root_build_dir),
|
| ]
|
| }
|
| +
|
| +if (is_android) {
|
| + generate_jni("gl_jni_headers") {
|
| + sources = [
|
| + "../android/java/src/org/chromium/ui/gl/SurfaceTextureListener.java",
|
| + "../android/java/src/org/chromium/ui/gl/SurfaceTexturePlatformWrapper.java",
|
| + ]
|
| + jni_package = "ui/gl"
|
| + }
|
| +}
|
|
|