Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(532)

Unified Diff: ui/gl/BUILD.gn

Issue 297793004: Work on the Android GN build. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/events/BUILD.gn ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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"
+ }
+}
« no previous file with comments | « ui/events/BUILD.gn ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698