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

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

Issue 1653003006: Move gn _run target generation into test(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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 | « testing/test.gni ('k') | third_party/WebKit/Source/web/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("//testing/test.gni") 6 import("//testing/test.gni")
7 import("//third_party/WebKit/Source/build/scripts/scripts.gni") 7 import("//third_party/WebKit/Source/build/scripts/scripts.gni")
8 import("//third_party/WebKit/Source/config.gni") 8 import("//third_party/WebKit/Source/config.gni")
9 import("//third_party/WebKit/Source/platform/platform.gni") 9 import("//third_party/WebKit/Source/platform/platform.gni")
10 import("//third_party/WebKit/Source/platform/platform_generated.gni") 10 import("//third_party/WebKit/Source/platform/platform_generated.gni")
(...skipping 341 matching lines...) Expand 10 before | Expand all | Expand 10 after
352 352
353 deps = [ 353 deps = [
354 ":platform", 354 ":platform",
355 ] 355 ]
356 356
357 if (is_win) { 357 if (is_win) {
358 cflags = [ "/wd4267" ] # Truncation from size_t to int. 358 cflags = [ "/wd4267" ] # Truncation from size_t to int.
359 } 359 }
360 } 360 }
361 361
362 # TODO(GYP): Delete this after we've converted everything to GN.
363 # The _run targets exist only for compatibility w/ GYP.
364 group("blink_heap_unittests_run") {
365 testonly = true
366 deps = [
367 ":blink_heap_unittests",
368 ]
369 }
370
371 # GYP: blink_heap_unittests 362 # GYP: blink_heap_unittests
372 test("blink_heap_unittests") { 363 test("blink_heap_unittests") {
373 visibility = [] # Allow re-assignment of list. 364 visibility = [] # Allow re-assignment of list.
374 visibility = [ "*" ] 365 visibility = [ "*" ]
375 366
376 sources = rebase_path(heap_gypi.platform_heap_test_files, ".", "heap") 367 sources = rebase_path(heap_gypi.platform_heap_test_files, ".", "heap")
377 sources += [ "heap/RunAllTests.cpp" ] 368 sources += [ "heap/RunAllTests.cpp" ]
378 369
379 configs += [ 370 configs += [
380 "//third_party/WebKit/Source/wtf:wtf_config", 371 "//third_party/WebKit/Source/wtf:wtf_config",
(...skipping 14 matching lines...) Expand all
395 ] 386 ]
396 if (is_android) { 387 if (is_android) {
397 deps += [ 388 deps += [
398 "//base:base_java", 389 "//base:base_java",
399 "//content/shell/android:content_shell_assets", 390 "//content/shell/android:content_shell_assets",
400 "//net/android:net_java", 391 "//net/android:net_java",
401 ] 392 ]
402 } 393 }
403 } 394 }
404 395
405 # TODO(GYP): Delete this after we've converted everything to GN.
406 # The _run targets exist only for compatibility w/ GYP.
407 group("blink_platform_unittests_run") {
408 testonly = true
409 deps = [
410 ":blink_platform_unittests",
411 ]
412 }
413
414 test("blink_platform_unittests") { 396 test("blink_platform_unittests") {
415 visibility = [] # Allow re-assignment of list. 397 visibility = [] # Allow re-assignment of list.
416 visibility = [ "*" ] 398 visibility = [ "*" ]
417 399
418 sources = platform_test_files 400 sources = platform_test_files
419 401
420 if (is_win) { 402 if (is_win) {
421 sources += [ "text/LocaleWinTest.cpp" ] 403 sources += [ "text/LocaleWinTest.cpp" ]
422 } else if (is_mac) { 404 } else if (is_mac) {
423 sources += [ "text/LocaleMacTest.cpp" ] 405 sources += [ "text/LocaleMacTest.cpp" ]
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
483 } 465 }
484 466
485 if (current_cpu == "x86" || current_cpu == "x64") { 467 if (current_cpu == "x86" || current_cpu == "x64") {
486 source_set("blink_x86_sse") { 468 source_set("blink_x86_sse") {
487 sources = blink_platform_sse_files 469 sources = blink_platform_sse_files
488 deps = [ 470 deps = [
489 ":blink_common", 471 ":blink_common",
490 ] 472 ]
491 } 473 }
492 } 474 }
OLDNEW
« no previous file with comments | « testing/test.gni ('k') | third_party/WebKit/Source/web/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698