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

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

Issue 1354483004: Re-land: ui: Add GLImage unit test framework. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: deps fix Created 5 years, 2 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 import("//testing/test.gni") 6 import("//testing/test.gni")
7 7
8 if (is_android) { 8 if (is_android) {
9 import("//build/config/android/config.gni") 9 import("//build/config/android/config.gni")
10 import("//build/config/android/rules.gni") 10 import("//build/config/android/rules.gni")
(...skipping 267 matching lines...) Expand 10 before | Expand all | Expand 10 after
278 278
279 configs += [ "//third_party/khronos:khronos_headers" ] 279 configs += [ "//third_party/khronos:khronos_headers" ]
280 280
281 deps = [ 281 deps = [
282 ":gl", 282 ":gl",
283 "//testing/gmock", 283 "//testing/gmock",
284 ] 284 ]
285 } 285 }
286 286
287 source_set("test_support") { 287 source_set("test_support") {
288 testonly = true
288 sources = [ 289 sources = [
290 "test/gl_image_test_support.cc",
291 "test/gl_image_test_support.h",
292 "test/gl_image_test_template.h",
289 "test/gl_surface_test_support.cc", 293 "test/gl_surface_test_support.cc",
290 "test/gl_surface_test_support.h", 294 "test/gl_surface_test_support.h",
295 "test/gl_test_helper.cc",
296 "test/gl_test_helper.h",
291 ] 297 ]
292 298
293 configs += [ "//third_party/khronos:khronos_headers" ] 299 configs += [ "//third_party/khronos:khronos_headers" ]
294 300
295 deps = [ 301 deps = [
302 "//testing/gtest",
296 ":gl", 303 ":gl",
297 ] 304 ]
298 305
299 if (use_x11) { 306 if (use_x11) {
300 configs += [ "//build/config/linux:x11" ] 307 configs += [ "//build/config/linux:x11" ]
301 deps += [ 308 deps += [
302 "//ui/gfx/x", 309 "//ui/gfx/x",
303 "//ui/platform_window/x11", 310 "//ui/platform_window/x11",
304 ] 311 ]
305 } 312 }
306 } 313 }
307 314
308 # TODO(GYP): Delete this after we've converted everything to GN. 315 # TODO(GYP): Delete this after we've converted everything to GN.
309 # The _run targets exist only for compatibility w/ GYP. 316 # The _run targets exist only for compatibility w/ GYP.
310 group("gl_unittests_run") { 317 group("gl_unittests_run") {
311 testonly = true 318 testonly = true
312 deps = [ 319 deps = [
313 ":gl_unittests", 320 ":gl_unittests",
314 ] 321 ]
315 } 322 }
316 323
317 test("gl_unittests") { 324 test("gl_unittests") {
318 sources = [ 325 sources = [
319 "gl_api_unittest.cc", 326 "gl_api_unittest.cc",
327 "gl_image_ref_counted_memory_unittest.cc",
328 "gl_image_shared_memory_unittest.cc",
320 "gpu_timing_unittest.cc", 329 "gpu_timing_unittest.cc",
321 "test/run_all_unittests.cc", 330 "test/run_all_unittests.cc",
322 ] 331 ]
323 332
324 if (is_win || is_android || is_linux) { 333 if (is_win || is_android || is_linux) {
325 sources += [ 334 sources += [
326 "egl_api_unittest.cc", 335 "egl_api_unittest.cc",
327 "test/egl_initialization_displays_unittest.cc", 336 "test/egl_initialization_displays_unittest.cc",
328 ] 337 ]
329 } 338 }
330 339
331 if (use_x11) { 340 if (use_x11) {
332 sources += [ "glx_api_unittest.cc" ] 341 sources += [ "glx_api_unittest.cc" ]
333 } 342 }
334 343
335 include_dirs = [ "//third_party/khronos" ] 344 include_dirs = [ "//third_party/khronos" ]
336 345
337 deps = [ 346 deps = [
338 ":gl", 347 ":gl",
339 ":gl_unittest_utils", 348 ":gl_unittest_utils",
340 ":test_support", 349 ":test_support",
341 "//base", 350 "//base",
342 "//base/test:test_support", 351 "//base/test:test_support",
352 "//skia",
343 "//testing/gmock", 353 "//testing/gmock",
344 "//testing/gtest", 354 "//testing/gtest",
355 "//ui/gfx",
345 ] 356 ]
346 } 357 }
347 358
348 if (is_android) { 359 if (is_android) {
349 generate_jar_jni("surface_jni_headers") { 360 generate_jar_jni("surface_jni_headers") {
350 jni_package = "ui/gl" 361 jni_package = "ui/gl"
351 classes = [ "android/view/Surface.class" ] 362 classes = [ "android/view/Surface.class" ]
352 } 363 }
353 364
354 generate_jni("gl_jni_headers") { 365 generate_jni("gl_jni_headers") {
355 sources = [ 366 sources = [
356 "../android/java/src/org/chromium/ui/gl/SurfaceTextureListener.java", 367 "../android/java/src/org/chromium/ui/gl/SurfaceTextureListener.java",
357 "../android/java/src/org/chromium/ui/gl/SurfaceTexturePlatformWrapper.java ", 368 "../android/java/src/org/chromium/ui/gl/SurfaceTexturePlatformWrapper.java ",
358 ] 369 ]
359 public_deps = [ 370 public_deps = [
360 ":surface_jni_headers", 371 ":surface_jni_headers",
361 ] 372 ]
362 jni_package = "ui/gl" 373 jni_package = "ui/gl"
363 } 374 }
364 } 375 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698