Chromium Code Reviews| Index: Source/platform/BUILD.gn |
| diff --git a/Source/platform/BUILD.gn b/Source/platform/BUILD.gn |
| index 180f26d108993c90427f3aae19e309d3126ef773..4bc71c098dd07bc2afe448788741133117d87e70 100644 |
| --- a/Source/platform/BUILD.gn |
| +++ b/Source/platform/BUILD.gn |
| @@ -11,6 +11,11 @@ platform_gypi = exec_script( |
| [ rebase_path("blink_platform.gypi") ], |
| "scope", |
| [ "blink_platform.gypi" ]) |
| +heap_gypi = exec_script( |
| + "//build/gypi_to_gn.py", |
| + [ rebase_path("heap/blink_heap.gypi") ], |
| + "scope", |
| + [ "blink_heap.gypi" ]) |
|
brettw
2014/06/04 05:01:15
This should match the other one (so "heap/blink_he
jamesr
2014/06/04 05:27:00
oooh, that's what that line does. fixed
|
| blink_platform_neon_files = [ |
| "graphics/cpu/arm/WebGLImageConversionNEON.h", |
| "graphics/cpu/arm/filters/FEBlendNEON.h", |
| @@ -332,6 +337,98 @@ component("platform") { |
| } |
| } |
| +source_set("heap_run_all_tests") { |
| + sources = [ |
| + "heap/RunAllTests.cpp" |
| + ] |
| + |
| + configs += [ |
| + "//third_party/WebKit/Source/wtf:wtf_config", |
| + "//third_party/WebKit/Source:config", |
| + "//third_party/WebKit/Source:non_test_config", |
| + ] |
| + |
| + deps = [ |
| + "//base/test:test_support", |
| + "//testing/gmock", |
| + "//testing/gtest", |
| + "//third_party/WebKit/Source/wtf", |
| + ] |
| +} |
| + |
| +test("heap_unittests") { |
| + output_name = "blink_heap_unittests" |
| + |
| + sources = rebase_path(heap_gypi.platform_heap_test_files, ".", "heap") |
| + |
| + configs += [ |
| + "//third_party/WebKit/Source:config", |
| + ] |
| + |
| + deps = [ |
| + ":platform", |
| + ":heap_run_all_tests", |
| + "//third_party/WebKit/Source/wtf", |
|
brettw
2014/06/04 05:01:15
Can you alphabetize these (colon ones at the top).
jamesr
2014/06/04 05:27:00
Done.
|
| + "//third_party/WebKit/Source/wtf:unittest_helpers", |
| + "//base", |
| + "//base/allocator", |
| + "//testing/gmock", |
| + "//testing/gtest", |
| + ] |
| +} |
| + |
| +source_set("platform_run_all_tests") { |
| + sources = [ |
| + "testing/RunAllTests.cpp" |
| + ] |
| + |
| + configs += [ |
| + "//third_party/WebKit/Source/wtf:wtf_config", |
| + "//third_party/WebKit/Source:config", |
| + "//third_party/WebKit/Source:non_test_config", |
| + ] |
| + |
| + deps = [ |
| + "//base/test:test_support", |
| + "//testing/gmock", |
| + "//testing/gtest", |
| + "//third_party/WebKit/Source/wtf", |
| + ] |
| +} |
| + |
| +test("platform_unittests") { |
| + output_name = "blink_platform_unittests" |
| + |
| + sources = platform_gypi.platform_test_files |
| + |
| + configs += [ |
| + "//third_party/WebKit/Source:config", |
| + ] |
| + |
| + deps = [ |
| + "//base", |
| + "//base/allocator", |
| + "//skia", |
| + "//testing/gmock", |
| + "//testing/gtest", |
| + "//third_party/WebKit/Source/wtf", |
| + "//third_party/WebKit/Source/wtf:unittest_helpers", |
| + "//url", |
| + ":blink_common", |
|
brettw
2014/06/04 05:01:15
Can you put the colon ones at the top?
jamesr
2014/06/04 05:27:00
Done.
|
| + ":heap_run_all_tests", |
| + ":platform", |
| + ] |
| + |
| + defines = [ |
| + "INSIDE_BLINK", |
| + ] |
| + |
| + include_dirs = [ |
| + "$root_gen_dir/blink", |
| + ] |
| +} |
| + |
| + |
| if (cpu_arch == "arm") { |
| source_set("blink_arm_neon") { |
| sources = blink_platform_neon_files |