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

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

Issue 2052543004: gl: Test YV12 buffer drm import. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@yv12-pixmap-support
Patch Set: Change patch dependency Created 4 years, 6 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
« no previous file with comments | « no previous file | ui/gl/gl_image_ozone_native_pixmap_drm_unittest.cc » ('j') | 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/linux/pkg_config.gni")
5 import("//build/config/ui.gni") 6 import("//build/config/ui.gni")
6 import("//testing/test.gni") 7 import("//testing/test.gni")
7 8
8 use_egl = is_win || is_android || is_linux 9 use_egl = is_win || is_android || is_linux
9 use_glx = use_x11 10 use_glx = use_x11
10 11
11 if (is_android) { 12 if (is_android) {
12 import("//build/config/android/config.gni") 13 import("//build/config/android/config.gni")
13 import("//build/config/android/rules.gni") 14 import("//build/config/android/rules.gni")
14 } 15 }
15 16
17 if (is_chromeos) {
18 pkg_config("libdrm") {
19 packages = [ "libdrm" ]
20 }
21 }
22
16 config("gl_config") { 23 config("gl_config") {
17 defines = [] 24 defines = []
18 if (use_glx) { 25 if (use_glx) {
19 defines += [ 26 defines += [
20 "GL_GLEXT_PROTOTYPES", 27 "GL_GLEXT_PROTOTYPES",
21 "USE_GLX", 28 "USE_GLX",
22 ] 29 ]
23 } 30 }
24 if (use_egl) { 31 if (use_egl) {
25 defines += [ "USE_EGL" ] 32 defines += [ "USE_EGL" ]
(...skipping 317 matching lines...) Expand 10 before | Expand all | Expand 10 after
343 "test/egl_initialization_displays_unittest.cc", 350 "test/egl_initialization_displays_unittest.cc",
344 ] 351 ]
345 } 352 }
346 353
347 if (use_glx) { 354 if (use_glx) {
348 sources += [ "glx_api_unittest.cc" ] 355 sources += [ "glx_api_unittest.cc" ]
349 } 356 }
350 357
351 if (use_ozone) { 358 if (use_ozone) {
352 sources += [ "gl_image_ozone_native_pixmap_unittest.cc" ] 359 sources += [ "gl_image_ozone_native_pixmap_unittest.cc" ]
360 if (is_chromeos && target_cpu != "arm") {
361 sources += [ "gl_image_ozone_native_pixmap_drm_unittest.cc" ]
362 }
353 } 363 }
354 364
355 if (is_mac) { 365 if (is_mac) {
356 sources += [ "gl_image_io_surface_unittest.cc" ] 366 sources += [ "gl_image_io_surface_unittest.cc" ]
357 libs = [ "IOSurface.framework" ] 367 libs = [ "IOSurface.framework" ]
358 } 368 }
359 369
360 if (is_win) { 370 if (is_win) {
361 sources += [ "wgl_api_unittest.cc" ] 371 sources += [ "wgl_api_unittest.cc" ]
362 } 372 }
363 373
364 include_dirs = [ "//third_party/khronos" ] 374 include_dirs = [ "//third_party/khronos" ]
365 375
366 deps = [ 376 deps = [
367 ":gl", 377 ":gl",
368 ":gl_unittest_utils", 378 ":gl_unittest_utils",
369 ":test_support", 379 ":test_support",
370 "//base", 380 "//base",
371 "//base/test:test_support", 381 "//base/test:test_support",
372 "//testing/gmock", 382 "//testing/gmock",
373 "//testing/gtest", 383 "//testing/gtest",
374 "//ui/gfx", 384 "//ui/gfx",
375 "//ui/gfx/geometry", 385 "//ui/gfx/geometry",
376 "//ui/gl/init", 386 "//ui/gl/init",
377 ] 387 ]
378 388
389 if (is_chromeos) {
390 configs += [ ":libdrm" ]
391 }
392
379 data_deps = [ 393 data_deps = [
380 "//third_party/mesa:osmesa", 394 "//third_party/mesa:osmesa",
381 ] 395 ]
382 396
383 if (use_ozone) { 397 if (use_ozone) {
384 deps += [ "//ui/ozone" ] 398 deps += [ "//ui/ozone" ]
385 } 399 }
386 } 400 }
387 401
388 if (is_android) { 402 if (is_android) {
389 generate_jar_jni("surface_jni_headers") { 403 generate_jar_jni("surface_jni_headers") {
390 jni_package = "ui/gl" 404 jni_package = "ui/gl"
391 classes = [ "android/view/Surface.class" ] 405 classes = [ "android/view/Surface.class" ]
392 } 406 }
393 407
394 generate_jni("gl_jni_headers") { 408 generate_jni("gl_jni_headers") {
395 sources = [ 409 sources = [
396 "../android/java/src/org/chromium/ui/gl/SurfaceTextureListener.java", 410 "../android/java/src/org/chromium/ui/gl/SurfaceTextureListener.java",
397 "../android/java/src/org/chromium/ui/gl/SurfaceTexturePlatformWrapper.java ", 411 "../android/java/src/org/chromium/ui/gl/SurfaceTexturePlatformWrapper.java ",
398 ] 412 ]
399 public_deps = [ 413 public_deps = [
400 ":surface_jni_headers", 414 ":surface_jni_headers",
401 ] 415 ]
402 jni_package = "ui/gl" 416 jni_package = "ui/gl"
403 } 417 }
404 } 418 }
OLDNEW
« no previous file with comments | « no previous file | ui/gl/gl_image_ozone_native_pixmap_drm_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698