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

Side by Side Diff: Source/platform/BUILD.gn

Issue 353943003: GN: Re-enable platform unit test targets (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | public/BUILD.gn » ('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/ui.gni") 5 import("//build/config/ui.gni")
6 import("//third_party/WebKit/Source/build/scripts/scripts.gni") 6 import("//third_party/WebKit/Source/build/scripts/scripts.gni")
7 import("//third_party/WebKit/Source/config.gni") 7 import("//third_party/WebKit/Source/config.gni")
8 import("//third_party/WebKit/Source/platform/platform.gni") 8 import("//third_party/WebKit/Source/platform/platform.gni")
9 import("//third_party/WebKit/Source/platform/platform_generated.gni") 9 import("//third_party/WebKit/Source/platform/platform_generated.gni")
10 import("//third_party/yasm/yasm_assemble.gni") 10 import("//third_party/yasm/yasm_assemble.gni")
11 11
12 # TODO(GYP) Remove when test targets link (depends on ffmpeg)
13 enable_blink_platform_test_targets = false
14
15 # Most targets in this file are private actions so use that as the default. 12 # Most targets in this file are private actions so use that as the default.
16 visibility = ":*" 13 visibility = ":*"
17 14
18 if (enable_blink_platform_test_targets) { 15 heap_gypi = exec_script(
19 heap_gypi = exec_script( 16 "//build/gypi_to_gn.py",
20 "//build/gypi_to_gn.py", 17 [ rebase_path("heap/blink_heap.gypi") ],
21 [ rebase_path("heap/blink_heap.gypi") ], 18 "scope",
22 "scope", 19 [ "heap/blink_heap.gypi" ])
23 [ "heap/blink_heap.gypi" ])
24 }
25 20
26 blink_platform_neon_files = [ 21 blink_platform_neon_files = [
27 "graphics/cpu/arm/WebGLImageConversionNEON.h", 22 "graphics/cpu/arm/WebGLImageConversionNEON.h",
28 "graphics/cpu/arm/filters/FEBlendNEON.h", 23 "graphics/cpu/arm/filters/FEBlendNEON.h",
29 "graphics/cpu/arm/filters/FECompositeArithmeticNEON.h", 24 "graphics/cpu/arm/filters/FECompositeArithmeticNEON.h",
30 "graphics/cpu/arm/filters/FEGaussianBlurNEON.h", 25 "graphics/cpu/arm/filters/FEGaussianBlurNEON.h",
31 "graphics/cpu/arm/filters/NEONHelpers.h", 26 "graphics/cpu/arm/filters/NEONHelpers.h",
32 ] 27 ]
33 28
34 # blink_common in blink_platform.gyp 29 # blink_common in blink_platform.gyp
(...skipping 288 matching lines...) Expand 10 before | Expand all | Expand 10 after
323 "scroll/ScrollbarThemeAura.h", 318 "scroll/ScrollbarThemeAura.h",
324 ] 319 ]
325 } 320 }
326 321
327 if (cpu_arch == "arm") { 322 if (cpu_arch == "arm") {
328 deps += [ ":blink_arm_neon" ] 323 deps += [ ":blink_arm_neon" ]
329 } 324 }
330 325
331 if (use_webaudio_ffmpeg) { 326 if (use_webaudio_ffmpeg) {
332 include_dirs += [ "//third_party/ffmpeg" ] 327 include_dirs += [ "//third_party/ffmpeg" ]
333 # TODO(GYP) 328 deps += [ "//third_party/ffmpeg" ]
334 #deps += [ "//third_party/ffmpeg" ]
335 } 329 }
336 if (use_openmax_dl_fft) { 330 if (use_openmax_dl_fft) {
337 include_dirs += [ "//third_party/openmax_dl" ] 331 include_dirs += [ "//third_party/openmax_dl" ]
338 # TODO(GYP) 332 # TODO(GYP)
339 # deps += [ "//third_party/openmax_dl/dl" ] 333 # deps += [ "//third_party/openmax_dl/dl" ]
340 } 334 }
341 } 335 }
342 336
343 yasm_assemble("heap_asm_stubs") { 337 yasm_assemble("heap_asm_stubs") {
344 if (cpu_arch == "x86" || cpu_arch == "x64") { 338 if (cpu_arch == "x86" || cpu_arch == "x64") {
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
382 ] 376 ]
383 377
384 deps = [ 378 deps = [
385 "//base/test:test_support", 379 "//base/test:test_support",
386 "//testing/gmock", 380 "//testing/gmock",
387 "//testing/gtest", 381 "//testing/gtest",
388 "//third_party/WebKit/Source/wtf", 382 "//third_party/WebKit/Source/wtf",
389 ] 383 ]
390 } 384 }
391 385
392 if (enable_blink_platform_test_targets) { 386 test("heap_unittests") {
393 test("heap_unittests") { 387 visibility = "//third_party/WebKit/*"
394 visibility = "//third_party/WebKit/*" 388 output_name = "blink_heap_unittests"
395 output_name = "blink_heap_unittests" 389
396 390 sources = rebase_path(heap_gypi.platform_heap_test_files, ".", "heap")
397 sources = rebase_path(heap_gypi.platform_heap_test_files, ".", "heap") 391
398 392 configs += [
399 configs += [ 393 "//third_party/WebKit/Source:config",
400 "//third_party/WebKit/Source:config", 394 ]
401 ] 395
402 396 deps = [
403 deps = [ 397 ":heap_run_all_tests",
404 ":heap_run_all_tests", 398 ":platform",
405 ":platform", 399 "//base",
406 "//base", 400 "//base/allocator",
407 "//base/allocator", 401 "//testing/gmock",
408 "//testing/gmock", 402 "//testing/gtest",
409 "//testing/gtest", 403 "//third_party/WebKit/Source/wtf",
410 "//third_party/WebKit/Source/wtf", 404 "//third_party/WebKit/Source/wtf:unittest_helpers",
411 "//third_party/WebKit/Source/wtf:unittest_helpers", 405 ]
412 ]
413 }
414 } 406 }
415 407
416 source_set("platform_run_all_tests") { 408 source_set("platform_run_all_tests") {
417 sources = [ 409 sources = [
418 "testing/RunAllTests.cpp" 410 "testing/RunAllTests.cpp"
419 ] 411 ]
420 412
421 configs += [ 413 configs += [
422 "//third_party/WebKit/Source/wtf:wtf_config", 414 "//third_party/WebKit/Source/wtf:wtf_config",
423 "//third_party/WebKit/Source:config", 415 "//third_party/WebKit/Source:config",
424 "//third_party/WebKit/Source:non_test_config", 416 "//third_party/WebKit/Source:non_test_config",
425 ] 417 ]
426 418
427 deps = [ 419 deps = [
428 "//base/test:test_support", 420 "//base/test:test_support",
429 "//testing/gmock", 421 "//testing/gmock",
430 "//testing/gtest", 422 "//testing/gtest",
431 "//third_party/WebKit/Source/wtf", 423 "//third_party/WebKit/Source/wtf",
432 ] 424 ]
433 } 425 }
434 426
435 if (enable_blink_platform_test_targets) { 427 test("platform_unittests") {
436 test("platform_unittests") { 428 visibility = "//third_party/WebKit/*"
437 visibility = "//third_party/WebKit/*" 429 output_name = "blink_platform_unittests"
438 output_name = "blink_platform_unittests" 430
439 431 sources = platform_test_files
440 sources = platform_test_files 432
441 433 configs += [
442 configs += [ 434 "//third_party/WebKit/Source:config",
443 "//third_party/WebKit/Source:config", 435 ]
444 ] 436
445 437 deps = [
446 deps = [ 438 ":blink_common",
447 ":blink_common", 439 ":platform_run_all_tests",
448 ":platform_run_all_tests", 440 ":platform",
449 ":platform", 441 "//base",
450 "//base", 442 "//base/allocator",
451 "//base/allocator", 443 "//skia",
452 "//skia", 444 "//testing/gmock",
453 "//testing/gmock", 445 "//testing/gtest",
454 "//testing/gtest", 446 "//third_party/WebKit/Source/wtf",
455 "//third_party/WebKit/Source/wtf", 447 "//third_party/WebKit/Source/wtf:unittest_helpers",
456 "//third_party/WebKit/Source/wtf:unittest_helpers", 448 "//url",
457 "//url", 449 ]
458 ] 450
459 451 defines = [
460 defines = [ 452 "INSIDE_BLINK",
461 "INSIDE_BLINK", 453 ]
462 ] 454
463 455 include_dirs = [
464 include_dirs = [ 456 "$root_gen_dir/blink",
465 "$root_gen_dir/blink", 457 ]
466 ]
467 }
468 } 458 }
469 459
460
470 if (cpu_arch == "arm") { 461 if (cpu_arch == "arm") {
471 source_set("blink_arm_neon") { 462 source_set("blink_arm_neon") {
472 sources = blink_platform_neon_files 463 sources = blink_platform_neon_files
473 464
474 # The *NEON.cpp files fail to compile when -mthumb is passed. Force 465 # The *NEON.cpp files fail to compile when -mthumb is passed. Force
475 # them to build in ARM mode. 466 # them to build in ARM mode.
476 # See https://bugs.webkit.org/show_bug.cgi?id=62916. 467 # See https://bugs.webkit.org/show_bug.cgi?id=62916.
477 # TODO(GYP) 468 # TODO(GYP)
478 #'cflags': ['-marm'], 469 #'cflags': ['-marm'],
479 # 'conditions': [ 470 # 'conditions': [
480 # ['OS=="android"', { 471 # ['OS=="android"', {
481 # 'cflags!': ['-mthumb'], 472 # 'cflags!': ['-mthumb'],
482 # }], 473 # }],
483 # ], 474 # ],
484 475
485 deps = [ ":blink_common" ] 476 deps = [ ":blink_common" ]
486 } 477 }
487 } 478 }
OLDNEW
« no previous file with comments | « no previous file | public/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698