| OLD | NEW |
| 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") |
| 11 | 11 |
| 12 # 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. |
| 13 visibility = [ ":*" ] | 13 visibility = [ ":*" ] |
| 14 | 14 |
| 15 if (!is_mac) { | 15 heap_gypi = exec_script("//build/gypi_to_gn.py", |
| 16 # TODO(GYP): can't link Blink binaries yet on mac. | 16 [ rebase_path("heap/blink_heap.gypi") ], |
| 17 heap_gypi = exec_script("//build/gypi_to_gn.py", | 17 "scope", |
| 18 [ rebase_path("heap/blink_heap.gypi") ], | 18 [ "heap/blink_heap.gypi" ]) |
| 19 "scope", | |
| 20 [ "heap/blink_heap.gypi" ]) | |
| 21 } | |
| 22 | 19 |
| 23 blink_platform_neon_files = [ "graphics/cpu/arm/WebGLImageConversionNEON.h" ] | 20 blink_platform_neon_files = [ "graphics/cpu/arm/WebGLImageConversionNEON.h" ] |
| 24 | 21 |
| 25 blink_platform_sse_files = [ "graphics/cpu/x86/WebGLImageConversionSSE.h" ] | 22 blink_platform_sse_files = [ "graphics/cpu/x86/WebGLImageConversionSSE.h" ] |
| 26 | 23 |
| 27 # blink_common in blink_platform.gyp | 24 # blink_common in blink_platform.gyp |
| 28 component("blink_common") { | 25 component("blink_common") { |
| 29 visibility = [] # Allow re-assignment of list. | 26 visibility = [] # Allow re-assignment of list. |
| 30 visibility = [ "//third_party/WebKit/*" ] | 27 visibility = [ "//third_party/WebKit/*" ] |
| 31 sources = [ | 28 sources = [ |
| (...skipping 292 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 324 "//third_party/WebKit/Source:config", | 321 "//third_party/WebKit/Source:config", |
| 325 "//third_party/WebKit/Source:inside_blink", | 322 "//third_party/WebKit/Source:inside_blink", |
| 326 "//third_party/WebKit/Source:non_test_config", | 323 "//third_party/WebKit/Source:non_test_config", |
| 327 ] | 324 ] |
| 328 | 325 |
| 329 deps = [ | 326 deps = [ |
| 330 ":platform", | 327 ":platform", |
| 331 ] | 328 ] |
| 332 } | 329 } |
| 333 | 330 |
| 334 if (!is_mac) { | 331 test("heap_unittests") { |
| 335 # TODO(GYP): Can't link Blink binaries yet. | 332 visibility = [] # Allow re-assignment of list. |
| 336 test("heap_unittests") { | 333 visibility = [ "*" ] |
| 337 visibility = [] # Allow re-assignment of list. | 334 output_name = "blink_heap_unittests" |
| 338 visibility = [ "*" ] | |
| 339 output_name = "blink_heap_unittests" | |
| 340 | 335 |
| 341 sources = rebase_path(heap_gypi.platform_heap_test_files, ".", "heap") | 336 sources = rebase_path(heap_gypi.platform_heap_test_files, ".", "heap") |
| 342 sources += [ "heap/RunAllTests.cpp" ] | 337 sources += [ "heap/RunAllTests.cpp" ] |
| 343 | 338 |
| 344 configs += [ | 339 configs += [ |
| 345 "//third_party/WebKit/Source/wtf:wtf_config", | 340 "//third_party/WebKit/Source/wtf:wtf_config", |
| 346 "//third_party/WebKit/Source:config", | 341 "//third_party/WebKit/Source:config", |
| 347 ] | 342 ] |
| 348 | 343 |
| 349 defines = [ "INSIDE_BLINK" ] | 344 defines = [ "INSIDE_BLINK" ] |
| 350 | 345 |
| 351 deps = [ | 346 deps = [ |
| 352 ":platform", | 347 ":platform", |
| 353 "//base", | 348 "//base", |
| 354 "//base/allocator", | 349 "//base/allocator", |
| 355 "//base/test:test_support", | 350 "//base/test:test_support", |
| 356 "//testing/gmock", | 351 "//testing/gmock", |
| 357 "//testing/gtest", | 352 "//testing/gtest", |
| 358 "//third_party/WebKit/Source/wtf", | 353 "//third_party/WebKit/Source/wtf", |
| 359 "//third_party/WebKit/Source/wtf:test_support", | 354 "//third_party/WebKit/Source/wtf:test_support", |
| 360 "//content/test:test_support", | 355 "//content/test:test_support", |
| 361 ] | 356 ] |
| 357 } |
| 358 |
| 359 test("platform_unittests") { |
| 360 visibility = [] # Allow re-assignment of list. |
| 361 visibility = [ "*" ] |
| 362 output_name = "blink_platform_unittests" |
| 363 |
| 364 sources = platform_test_files |
| 365 |
| 366 if (is_win) { |
| 367 sources += [ "text/LocaleWinTest.cpp" ] |
| 368 } else if (is_mac) { |
| 369 sources += [ "text/LocaleMacTest.cpp" ] |
| 370 } else if (is_posix) { |
| 371 sources += [ "text/LocaleICUTest.cpp" ] |
| 362 } | 372 } |
| 363 | 373 |
| 364 test("platform_unittests") { | 374 sources += [ "testing/RunAllTests.cpp" ] |
| 365 visibility = [] # Allow re-assignment of list. | |
| 366 visibility = [ "*" ] | |
| 367 output_name = "blink_platform_unittests" | |
| 368 | 375 |
| 369 sources = platform_test_files | 376 configs += [ |
| 377 "//third_party/WebKit/Source/wtf:wtf_config", |
| 378 "//third_party/WebKit/Source:config", |
| 379 ] |
| 370 | 380 |
| 371 if (is_win) { | 381 deps = [ |
| 372 sources += [ "text/LocaleWinTest.cpp" ] | 382 ":blink_common", |
| 373 } else if (is_mac) { | 383 ":platform", |
| 374 sources += [ "text/LocaleMacTest.cpp" ] | 384 ":test_support", |
| 375 } else if (is_posix) { | 385 "//base", |
| 376 sources += [ "text/LocaleICUTest.cpp" ] | 386 "//base/allocator", |
| 377 } | 387 "//base/test:test_support", |
| 388 "//skia", |
| 389 "//testing/gmock", |
| 390 "//testing/gtest", |
| 391 "//third_party/harfbuzz-ng", |
| 392 "//third_party/WebKit/Source/wtf", |
| 393 "//third_party/WebKit/Source/wtf:test_support", |
| 394 "//url", |
| 395 ] |
| 378 | 396 |
| 379 sources += [ "testing/RunAllTests.cpp" ] | 397 defines = [ "INSIDE_BLINK" ] |
| 380 | 398 |
| 381 configs += [ | 399 include_dirs = [ "$root_gen_dir/blink" ] |
| 382 "//third_party/WebKit/Source/wtf:wtf_config", | |
| 383 "//third_party/WebKit/Source:config", | |
| 384 ] | |
| 385 | |
| 386 deps = [ | |
| 387 ":blink_common", | |
| 388 ":platform", | |
| 389 ":test_support", | |
| 390 "//base", | |
| 391 "//base/allocator", | |
| 392 "//base/test:test_support", | |
| 393 "//skia", | |
| 394 "//testing/gmock", | |
| 395 "//testing/gtest", | |
| 396 "//third_party/harfbuzz-ng", | |
| 397 "//third_party/WebKit/Source/wtf", | |
| 398 "//third_party/WebKit/Source/wtf:test_support", | |
| 399 "//url", | |
| 400 ] | |
| 401 | |
| 402 defines = [ "INSIDE_BLINK" ] | |
| 403 | |
| 404 include_dirs = [ "$root_gen_dir/blink" ] | |
| 405 } | |
| 406 } | 400 } |
| 407 | 401 |
| 408 if (current_cpu == "arm") { | 402 if (current_cpu == "arm") { |
| 409 source_set("blink_arm_neon") { | 403 source_set("blink_arm_neon") { |
| 410 sources = blink_platform_neon_files | 404 sources = blink_platform_neon_files |
| 411 | 405 |
| 412 # The *NEON.cpp files fail to compile when -mthumb is passed. Force | 406 # The *NEON.cpp files fail to compile when -mthumb is passed. Force |
| 413 # them to build in ARM mode. | 407 # them to build in ARM mode. |
| 414 # See https://bugs.webkit.org/show_bug.cgi?id=62916. | 408 # See https://bugs.webkit.org/show_bug.cgi?id=62916. |
| 415 # TODO(GYP) | 409 # TODO(GYP) |
| (...skipping 11 matching lines...) Expand all Loading... |
| 427 } | 421 } |
| 428 | 422 |
| 429 if (current_cpu == "x86" || current_cpu == "x64") { | 423 if (current_cpu == "x86" || current_cpu == "x64") { |
| 430 source_set("blink_x86_sse") { | 424 source_set("blink_x86_sse") { |
| 431 sources = blink_platform_sse_files | 425 sources = blink_platform_sse_files |
| 432 deps = [ | 426 deps = [ |
| 433 ":blink_common", | 427 ":blink_common", |
| 434 ] | 428 ] |
| 435 } | 429 } |
| 436 } | 430 } |
| OLD | NEW |