summaryrefslogtreecommitdiffstats
path: root/ui/gl
diff options
context:
space:
mode:
authorbrettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-05-23 19:01:46 +0000
committerbrettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-05-23 19:01:46 +0000
commit1ea01750384b69722d1e3017cef97923d61dc130 (patch)
tree5cf9150087e674912207e9a4f13d60c8fceb18ee /ui/gl
parentd22a2ab72962b788ea23e172a36bb2acac55f29e (diff)
downloadchromium_src-1ea01750384b69722d1e3017cef97923d61dc130.zip
chromium_src-1ea01750384b69722d1e3017cef97923d61dc130.tar.gz
chromium_src-1ea01750384b69722d1e3017cef97923d61dc130.tar.bz2
Work on the Android GN build.
Fills out more targets in the Android build. BUG= R=cjhopman@chromium.org Review URL: https://codereview.chromium.org/297793004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@272574 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ui/gl')
-rw-r--r--ui/gl/BUILD.gn17
1 files changed, 17 insertions, 0 deletions
diff --git a/ui/gl/BUILD.gn b/ui/gl/BUILD.gn
index 04f652d..4fd99f4 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"
+ }
+}