| 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("//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_generated.gni") | 8 import("//third_party/WebKit/Source/platform/platform_generated.gni") |
| 9 | 9 |
| 10 # TODO(GYP) Remove when heap targets work |
| 11 enable_blink_platform_heap_targets = false |
| 12 |
| 13 |
| 14 if (enable_blink_platform_heap_targets) { |
| 15 import("//third_party/yasm/yasm_assemble.gni") |
| 16 } |
| 17 |
| 10 platform_gypi = exec_script( | 18 platform_gypi = exec_script( |
| 11 "//build/gypi_to_gn.py", | 19 "//build/gypi_to_gn.py", |
| 12 [ rebase_path("blink_platform.gypi") ], | 20 [ rebase_path("blink_platform.gypi") ], |
| 13 "scope", | 21 "scope", |
| 14 [ "blink_platform.gypi" ]) | 22 [ "blink_platform.gypi" ]) |
| 15 # TODO(GYP) Uncomment when the targets below that need this value are enabled. | 23 |
| 16 #heap_gypi = exec_script( | 24 if (enable_blink_platform_heap_targets) { |
| 17 # "//build/gypi_to_gn.py", | 25 heap_gypi = exec_script( |
| 18 # [ rebase_path("heap/blink_heap.gypi") ], | 26 "//build/gypi_to_gn.py", |
| 19 # "scope", | 27 [ rebase_path("heap/blink_heap.gypi") ], |
| 20 # [ "heap/blink_heap.gypi" ]) | 28 "scope", |
| 29 [ "heap/blink_heap.gypi" ]) |
| 30 } |
| 31 |
| 21 blink_platform_neon_files = [ | 32 blink_platform_neon_files = [ |
| 22 "graphics/cpu/arm/WebGLImageConversionNEON.h", | 33 "graphics/cpu/arm/WebGLImageConversionNEON.h", |
| 23 "graphics/cpu/arm/filters/FEBlendNEON.h", | 34 "graphics/cpu/arm/filters/FEBlendNEON.h", |
| 24 "graphics/cpu/arm/filters/FECompositeArithmeticNEON.h", | 35 "graphics/cpu/arm/filters/FECompositeArithmeticNEON.h", |
| 25 "graphics/cpu/arm/filters/FEGaussianBlurNEON.h", | 36 "graphics/cpu/arm/filters/FEGaussianBlurNEON.h", |
| 26 "graphics/cpu/arm/filters/FELightingNEON.h", | 37 "graphics/cpu/arm/filters/FELightingNEON.h", |
| 27 "graphics/cpu/arm/filters/NEONHelpers.h", | 38 "graphics/cpu/arm/filters/NEONHelpers.h", |
| 28 ] | 39 ] |
| 29 | 40 |
| 30 # blink_common in blink_platform.gyp | 41 # blink_common in blink_platform.gyp |
| (...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 195 "//third_party/harfbuzz-ng", | 206 "//third_party/harfbuzz-ng", |
| 196 "//third_party/iccjpeg", | 207 "//third_party/iccjpeg", |
| 197 "//third_party/icu", | 208 "//third_party/icu", |
| 198 "//third_party/libpng", | 209 "//third_party/libpng", |
| 199 "//third_party/libwebp", | 210 "//third_party/libwebp", |
| 200 "//third_party/ots", | 211 "//third_party/ots", |
| 201 "//third_party/qcms", | 212 "//third_party/qcms", |
| 202 "//third_party/WebKit/Source/wtf", | 213 "//third_party/WebKit/Source/wtf", |
| 203 "//third_party/WebKit/Source/platform/heap", | 214 "//third_party/WebKit/Source/platform/heap", |
| 204 "//url", | 215 "//url", |
| 205 #'blink_heap_asm_stubs', | |
| 206 "//v8", | 216 "//v8", |
| 207 ] | 217 ] |
| 208 | 218 |
| 219 if (enable_blink_platform_heap_targets) { |
| 220 deps += [ ":heap_asm_stubs" ] |
| 221 } |
| 222 |
| 209 forward_dependent_configs_from = [ | 223 forward_dependent_configs_from = [ |
| 210 "//gpu/command_buffer/client:gles2_c_lib", | 224 "//gpu/command_buffer/client:gles2_c_lib", |
| 211 "//skia", | 225 "//skia", |
| 212 "//third_party:jpeg", | 226 "//third_party:jpeg", |
| 213 "//third_party/iccjpeg", | 227 "//third_party/iccjpeg", |
| 214 "//third_party/libpng", | 228 "//third_party/libpng", |
| 215 "//third_party/libwebp", | 229 "//third_party/libwebp", |
| 216 "//third_party/ots", | 230 "//third_party/ots", |
| 217 "//third_party/qcms", | 231 "//third_party/qcms", |
| 218 "//url", | 232 "//url", |
| (...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 326 # TODO(GYP) | 340 # TODO(GYP) |
| 327 #deps += [ "//third_party/ffmpeg" ] | 341 #deps += [ "//third_party/ffmpeg" ] |
| 328 } | 342 } |
| 329 if (use_openmax_dl_fft) { | 343 if (use_openmax_dl_fft) { |
| 330 include_dirs += [ "//third_party/openmax_dl" ] | 344 include_dirs += [ "//third_party/openmax_dl" ] |
| 331 # TODO(GYP) | 345 # TODO(GYP) |
| 332 # deps += [ "//third_party/openmax_dl/dl" ] | 346 # deps += [ "//third_party/openmax_dl/dl" ] |
| 333 } | 347 } |
| 334 } | 348 } |
| 335 | 349 |
| 350 |
| 351 if (enable_blink_platform_heap_targets) { |
| 352 |
| 353 yasm_assemble("heap_asm_stubs") { |
| 354 if (cpu_arch == "x86" || cpu_arch == "x64") { |
| 355 sources = [ "heap/asm/SaveRegisters_x86.asm" ] |
| 356 } else if (cpu_arch == "arm") { |
| 357 sources = [ "heap/asm/SaveRegisters_arm.S" ] |
| 358 } else if (cpu_arch == "arm64") { |
| 359 sources = [ "heap/asm/SaveRegisters_arm64.S" ] |
| 360 } else if (cpu_arch == "mipsel") { |
| 361 sources = [ "heap/asm/SaveRegisters_mips.S" ] |
| 362 } |
| 363 |
| 364 yasm_flags = [] |
| 365 if (is_mac) { |
| 366 # Necessary to ensure symbols end up with a _ prefix; added by |
| 367 # yasm_compile.gypi for Windows, but not Mac. |
| 368 yasm_flags += [ "-DPREFIX" ] |
| 369 } |
| 370 if (cpu_arch == "x64") { |
| 371 if (is_win) { |
| 372 yasm_flags += [ "-DX64WIN=1" ] |
| 373 } else { |
| 374 yasm_flags += [ "-DX64POSIX=1" ] |
| 375 } |
| 376 } else if (cpu_arch == "x86") { |
| 377 yasm_flags += [ "-DIA32=1" ] |
| 378 } else if (cpu_arch == "arm") { |
| 379 yasm_flags += [ "-DARM=1" ] |
| 380 } |
| 381 } |
| 382 |
| 383 } |
| 384 |
| 336 source_set("heap_run_all_tests") { | 385 source_set("heap_run_all_tests") { |
| 337 sources = [ | 386 sources = [ |
| 338 "heap/RunAllTests.cpp" | 387 "heap/RunAllTests.cpp" |
| 339 ] | 388 ] |
| 340 | 389 |
| 341 configs += [ | 390 configs += [ |
| 342 "//third_party/WebKit/Source/wtf:wtf_config", | 391 "//third_party/WebKit/Source/wtf:wtf_config", |
| 343 "//third_party/WebKit/Source:config", | 392 "//third_party/WebKit/Source:config", |
| 344 "//third_party/WebKit/Source:non_test_config", | 393 "//third_party/WebKit/Source:non_test_config", |
| 345 ] | 394 ] |
| 346 | 395 |
| 347 deps = [ | 396 deps = [ |
| 348 "//base/test:test_support", | 397 "//base/test:test_support", |
| 349 "//testing/gmock", | 398 "//testing/gmock", |
| 350 "//testing/gtest", | 399 "//testing/gtest", |
| 351 "//third_party/WebKit/Source/wtf", | 400 "//third_party/WebKit/Source/wtf", |
| 352 ] | 401 ] |
| 353 } | 402 } |
| 354 | 403 |
| 355 # TODO(GYP) enable this target when it links (blocked on WebP symbols). | 404 if (enable_blink_platform_heap_targets) { |
| 356 if (false) { | |
| 357 | 405 |
| 358 test("heap_unittests") { | 406 test("heap_unittests") { |
| 359 output_name = "blink_heap_unittests" | 407 output_name = "blink_heap_unittests" |
| 360 | 408 |
| 361 sources = rebase_path(heap_gypi.platform_heap_test_files, ".", "heap") | 409 sources = rebase_path(heap_gypi.platform_heap_test_files, ".", "heap") |
| 362 | 410 |
| 363 configs += [ | 411 configs += [ |
| 364 "//third_party/WebKit/Source:config", | 412 "//third_party/WebKit/Source:config", |
| 365 ] | 413 ] |
| 366 | 414 |
| 367 deps = [ | 415 deps = [ |
| 368 ":heap_run_all_tests", | 416 ":heap_run_all_tests", |
| 369 ":platform", | 417 ":platform", |
| 370 "//base", | 418 "//base", |
| 371 "//base/allocator", | 419 "//base/allocator", |
| 372 "//testing/gmock", | 420 "//testing/gmock", |
| 373 "//testing/gtest", | 421 "//testing/gtest", |
| 374 "//third_party/WebKit/Source/wtf", | 422 "//third_party/WebKit/Source/wtf", |
| 375 "//third_party/WebKit/Source/wtf:unittest_helpers", | 423 "//third_party/WebKit/Source/wtf:unittest_helpers", |
| 376 ] | 424 ] |
| 377 } | 425 } |
| 378 | 426 |
| 379 } # TODO(GYP) | 427 } |
| 380 | 428 |
| 381 source_set("platform_run_all_tests") { | 429 source_set("platform_run_all_tests") { |
| 382 sources = [ | 430 sources = [ |
| 383 "testing/RunAllTests.cpp" | 431 "testing/RunAllTests.cpp" |
| 384 ] | 432 ] |
| 385 | 433 |
| 386 configs += [ | 434 configs += [ |
| 387 "//third_party/WebKit/Source/wtf:wtf_config", | 435 "//third_party/WebKit/Source/wtf:wtf_config", |
| 388 "//third_party/WebKit/Source:config", | 436 "//third_party/WebKit/Source:config", |
| 389 "//third_party/WebKit/Source:non_test_config", | 437 "//third_party/WebKit/Source:non_test_config", |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 446 #'cflags': ['-marm'], | 494 #'cflags': ['-marm'], |
| 447 # 'conditions': [ | 495 # 'conditions': [ |
| 448 # ['OS=="android"', { | 496 # ['OS=="android"', { |
| 449 # 'cflags!': ['-mthumb'], | 497 # 'cflags!': ['-mthumb'], |
| 450 # }], | 498 # }], |
| 451 # ], | 499 # ], |
| 452 | 500 |
| 453 deps = [ ":blink_common" ] | 501 deps = [ ":blink_common" ] |
| 454 } | 502 } |
| 455 } | 503 } |
| OLD | NEW |