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

Side by Side Diff: ui/gl/BUILD.gn

Issue 513313002: Fix most of the "gn check" errors in ui/* (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix Android GN build Created 6 years, 3 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 unified diff | Download patch
OLDNEW
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/config.gni")
7 import("//build/config/android/rules.gni") 8 import("//build/config/android/rules.gni")
8 } 9 }
9 10
10 gl_binding_output_dir = target_gen_dir 11 gl_binding_output_dir = target_gen_dir
11 12
12 config("gl_config") { 13 config("gl_config") {
13 if (use_x11) { 14 if (use_x11) {
14 defines = [ "GL_GLEXT_PROTOTYPES" ] 15 defines = [ "GL_GLEXT_PROTOTYPES" ]
15 } 16 }
16 17
(...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after
239 } 240 }
240 if (use_ozone) { 241 if (use_ozone) {
241 sources += [ 242 sources += [
242 "gl_context_ozone.cc", 243 "gl_context_ozone.cc",
243 "gl_egl_api_implementation.cc", 244 "gl_egl_api_implementation.cc",
244 "gl_egl_api_implementation.h", 245 "gl_egl_api_implementation.h",
245 "gl_implementation_ozone.cc", 246 "gl_implementation_ozone.cc",
246 "gl_surface_ozone.cc", 247 "gl_surface_ozone.cc",
247 ] 248 ]
248 deps += [ 249 deps += [
249 #"//ui/gfx/ozone",
250 "//ui/ozone", 250 "//ui/ozone",
251 "//ui/ozone:ozone_base",
251 ] 252 ]
252 } 253 }
253 254
254 # TODO(GYP) enable this dependency once its written. 255 if (is_android && !is_android_webview_build) {
255 #if (is_android && !android_webview_build) { 256 deps += [ "//ui/android:ui_java" ]
256 # deps += [ "//ui/android:ui_java" ] 257 }
257 #}
258 } 258 }
259 259
260 action("generate_gl_bindings") { 260 action("generate_gl_bindings") {
261 visibility = ":*" # Only targets in this file can see this. 261 visibility = ":*" # Only targets in this file can see this.
262 262
263 script = "generate_bindings.py" 263 script = "generate_bindings.py"
264 264
265 # TODO(brettw) make this dynamic. The GYP version calls "generate_bindings.py 265 # TODO(brettw) make this dynamic. The GYP version calls "generate_bindings.py
266 # --inputs" to get the list here. What should happen is that the script 266 # --inputs" to get the list here. What should happen is that the script
267 # should generate a .d file, which we should declare here. That will 267 # should generate a .d file, which we should declare here. That will
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
342 generate_jni("gl_jni_headers") { 342 generate_jni("gl_jni_headers") {
343 deps = [ ":surface_jni_headers" ] 343 deps = [ ":surface_jni_headers" ]
344 forward_dependent_configs_from = [ ":surface_jni_headers" ] 344 forward_dependent_configs_from = [ ":surface_jni_headers" ]
345 sources = [ 345 sources = [
346 "../android/java/src/org/chromium/ui/gl/SurfaceTextureListener.java", 346 "../android/java/src/org/chromium/ui/gl/SurfaceTextureListener.java",
347 "../android/java/src/org/chromium/ui/gl/SurfaceTexturePlatformWrapper.java ", 347 "../android/java/src/org/chromium/ui/gl/SurfaceTexturePlatformWrapper.java ",
348 ] 348 ]
349 jni_package = "ui/gl" 349 jni_package = "ui/gl"
350 } 350 }
351 } 351 }
OLDNEW
« ui/events/BUILD.gn ('K') | « ui/gfx/x/BUILD.gn ('k') | ui/keyboard/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698