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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ui/events/BUILD.gn ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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) {
7 import("//build/config/android/rules.gni")
8 }
6 9
7 gl_binding_output_dir = target_gen_dir 10 gl_binding_output_dir = target_gen_dir
8 11
9 config("gl_config") { 12 config("gl_config") {
10 if (use_x11) { 13 if (use_x11) {
11 defines = [ "GL_GLEXT_PROTOTYPES" ] 14 defines = [ "GL_GLEXT_PROTOTYPES" ]
12 } 15 }
13 16
14 # TODO(brettw) this should be removed and the the files using the generated 17 # TODO(brettw) this should be removed and the the files using the generated
15 # GL bindings should use the path inside the gen directory. 18 # GL bindings should use the path inside the gen directory.
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after
215 "gl_image_surface_texture.cc", 218 "gl_image_surface_texture.cc",
216 "gl_image_surface_texture.h", 219 "gl_image_surface_texture.h",
217 ] 220 ]
218 221
219 defines += [ 222 defines += [
220 "GL_GLEXT_PROTOTYPES", 223 "GL_GLEXT_PROTOTYPES",
221 "EGL_EGLEXT_PROTOTYPES", 224 "EGL_EGLEXT_PROTOTYPES",
222 ] 225 ]
223 226
224 libs = [ "android" ] 227 libs = [ "android" ]
228
229 deps += [
230 ":gl_jni_headers",
231 ]
225 } 232 }
226 if (use_ozone) { 233 if (use_ozone) {
227 sources += [ 234 sources += [
228 "gl_context_ozone.cc", 235 "gl_context_ozone.cc",
229 "gl_image_ozone.cc", 236 "gl_image_ozone.cc",
230 "gl_implementation_ozone.cc", 237 "gl_implementation_ozone.cc",
231 "gl_surface_ozone.cc", 238 "gl_surface_ozone.cc",
232 ] 239 ]
233 deps += [ 240 deps += [
234 "//ui/gfx/ozone", 241 "//ui/gfx/ozone",
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
286 "$gl_binding_output_dir/gl_mock_autogen_gl.h", 293 "$gl_binding_output_dir/gl_mock_autogen_gl.h",
287 ] 294 ]
288 295
289 args = [ 296 args = [
290 "--header-paths=" + 297 "--header-paths=" +
291 rebase_path("//third_party/khronos", root_build_dir) + ":" + 298 rebase_path("//third_party/khronos", root_build_dir) + ":" +
292 rebase_path("//third_party/mesa/src/include", root_build_dir), 299 rebase_path("//third_party/mesa/src/include", root_build_dir),
293 rebase_path(gl_binding_output_dir, root_build_dir), 300 rebase_path(gl_binding_output_dir, root_build_dir),
294 ] 301 ]
295 } 302 }
303
304 if (is_android) {
305 generate_jni("gl_jni_headers") {
306 sources = [
307 "../android/java/src/org/chromium/ui/gl/SurfaceTextureListener.java",
308 "../android/java/src/org/chromium/ui/gl/SurfaceTexturePlatformWrapper.java ",
309 ]
310 jni_package = "ui/gl"
311 }
312 }
OLDNEW
« 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