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 245 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
256 action("generate_gl_bindings") { | 256 action("generate_gl_bindings") { |
257 visibility = ":*" # Only targets in this file can see this. | 257 visibility = ":*" # Only targets in this file can see this. |
258 | 258 |
259 script = "generate_bindings.py" | 259 script = "generate_bindings.py" |
260 | 260 |
261 # TODO(brettw) make this dynamic. The GYP version calls "generate_bindings.py | 261 # TODO(brettw) make this dynamic. The GYP version calls "generate_bindings.py |
262 # --inputs" to get the list here. What should happen is that the script | 262 # --inputs" to get the list here. What should happen is that the script |
263 # should generate a .d file, which we should declare here. That will | 263 # should generate a .d file, which we should declare here. That will |
264 # eliminate the need bot both hardcoding the list here or calling the script | 264 # eliminate the need bot both hardcoding the list here or calling the script |
265 # during GN-time. | 265 # during GN-time. |
266 source_prereqs = [ | 266 inputs = [ |
267 "EGL/eglextchromium.h", | 267 "EGL/eglextchromium.h", |
268 "GL/glextchromium.h", | 268 "GL/glextchromium.h", |
269 "//third_party/mesa/src/include/GL/glext.h", | 269 "//third_party/mesa/src/include/GL/glext.h", |
270 "//third_party/khronos/GLES2/gl2ext.h", | 270 "//third_party/khronos/GLES2/gl2ext.h", |
271 "//gpu/GLES2/gl2chromium.h", | 271 "//gpu/GLES2/gl2chromium.h", |
272 "//gpu/GLES2/gl2extchromium.h", | 272 "//gpu/GLES2/gl2extchromium.h", |
273 "//third_party/khronos/EGL/eglext.h", | 273 "//third_party/khronos/EGL/eglext.h", |
274 "//third_party/mesa/src/include/GL/wglext.h", | 274 "//third_party/mesa/src/include/GL/wglext.h", |
275 "//third_party/mesa/src/include/GL/glx.h", | 275 "//third_party/mesa/src/include/GL/glx.h", |
276 "//third_party/mesa/src/include/GL/glxext.h", | 276 "//third_party/mesa/src/include/GL/glxext.h", |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
338 generate_jni("gl_jni_headers") { | 338 generate_jni("gl_jni_headers") { |
339 deps = [ ":surface_jni_headers" ] | 339 deps = [ ":surface_jni_headers" ] |
340 forward_dependent_configs_from = [ ":surface_jni_headers" ] | 340 forward_dependent_configs_from = [ ":surface_jni_headers" ] |
341 sources = [ | 341 sources = [ |
342 "../android/java/src/org/chromium/ui/gl/SurfaceTextureListener.java", | 342 "../android/java/src/org/chromium/ui/gl/SurfaceTextureListener.java", |
343 "../android/java/src/org/chromium/ui/gl/SurfaceTexturePlatformWrapper.java
", | 343 "../android/java/src/org/chromium/ui/gl/SurfaceTexturePlatformWrapper.java
", |
344 ] | 344 ] |
345 jni_package = "ui/gl" | 345 jni_package = "ui/gl" |
346 } | 346 } |
347 } | 347 } |
OLD | NEW |