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/config/ui.gni") | 5 import("//build/config/ui.gni") |
6 if (is_android) { | 6 if (is_android) { |
7 import("//build/config/android/rules.gni") | 7 import("//build/config/android/rules.gni") |
8 } | 8 } |
9 | 9 |
10 gl_binding_output_dir = target_gen_dir | 10 gl_binding_output_dir = target_gen_dir |
(...skipping 304 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
315 configs += [ "//third_party/khronos:khronos_headers" ] | 315 configs += [ "//third_party/khronos:khronos_headers" ] |
316 direct_dependent_configs = [ ":gl_unittest_utils_config" ] | 316 direct_dependent_configs = [ ":gl_unittest_utils_config" ] |
317 | 317 |
318 deps = [ | 318 deps = [ |
319 ":gl", | 319 ":gl", |
320 "//testing/gmock", | 320 "//testing/gmock", |
321 ] | 321 ] |
322 } | 322 } |
323 | 323 |
324 if (is_android) { | 324 if (is_android) { |
| 325 generate_jar_jni("surface_jni_headers") { |
| 326 jni_package = "ui/gl" |
| 327 classes = [ "android/view/Surface.class" ] |
| 328 } |
| 329 |
325 generate_jni("gl_jni_headers") { | 330 generate_jni("gl_jni_headers") { |
| 331 deps = [ ":surface_jni_headers" ] |
| 332 forward_dependent_configs_from = [ ":surface_jni_headers" ] |
326 sources = [ | 333 sources = [ |
327 "../android/java/src/org/chromium/ui/gl/SurfaceTextureListener.java", | 334 "../android/java/src/org/chromium/ui/gl/SurfaceTextureListener.java", |
328 "../android/java/src/org/chromium/ui/gl/SurfaceTexturePlatformWrapper.java
", | 335 "../android/java/src/org/chromium/ui/gl/SurfaceTexturePlatformWrapper.java
", |
329 ] | 336 ] |
330 jni_package = "ui/gl" | 337 jni_package = "ui/gl" |
331 } | 338 } |
332 } | 339 } |
OLD | NEW |