OLD | NEW |
---|---|
1 # Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2013 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/features.gni") | 5 import("//build/config/features.gni") |
6 import("//build/config/ui.gni") | 6 import("//build/config/ui.gni") |
7 import("//testing/test.gni") | 7 import("//testing/test.gni") |
8 if (current_cpu == "arm" || current_cpu == "arm64") { | 8 if (current_cpu == "arm" || current_cpu == "arm64") { |
9 import("//build/config/arm.gni") | 9 import("//build/config/arm.gni") |
10 } | 10 } |
(...skipping 375 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
386 "//third_party/skia/src/ports/SkFontMgr_android_factory.cpp", | 386 "//third_party/skia/src/ports/SkFontMgr_android_factory.cpp", |
387 "//third_party/skia/src/ports/SkFontMgr_android_parser.cpp", | 387 "//third_party/skia/src/ports/SkFontMgr_android_parser.cpp", |
388 ] | 388 ] |
389 } | 389 } |
390 if (!is_mac && !is_ios) { | 390 if (!is_mac && !is_ios) { |
391 sources -= [ "//third_party/skia/src/ports/SkFontHost_mac.cpp" ] | 391 sources -= [ "//third_party/skia/src/ports/SkFontHost_mac.cpp" ] |
392 } | 392 } |
393 | 393 |
394 # On "Linux" (i.e., not Android), we use our a custom SkFontMgr. | 394 # On "Linux" (i.e., not Android), we use our a custom SkFontMgr. |
395 # TODO(vtl): We should probably do the same on Android. | 395 # TODO(vtl): We should probably do the same on Android. |
396 if (is_linux) { | 396 if (is_linux || is_nacl) { |
397 sources += [ | 397 sources += [ |
398 "//third_party/skia/src/ports/SkFontMgr_custom.cpp", | 398 "//third_party/skia/src/ports/SkFontMgr_custom.cpp", |
399 "ports/font_mgr_factory.cc", | 399 "ports/font_mgr_factory.cc", |
400 ] | 400 ] |
401 } | 401 } |
402 | 402 |
403 if (!is_linux && !is_android) { | 403 if (!is_linux && !is_android && !is_nacl) { |
404 sources -= [ | 404 sources -= [ |
405 "//third_party/skia/src/ports/SkFontHost_FreeType.cpp", | 405 "//third_party/skia/src/ports/SkFontHost_FreeType.cpp", |
406 "//third_party/skia/src/ports/SkFontHost_FreeType_common.cpp", | 406 "//third_party/skia/src/ports/SkFontHost_FreeType_common.cpp", |
407 ] | 407 ] |
408 } | 408 } |
409 | 409 |
410 # Select the right BitmapPlatformDevice. | 410 # Select the right BitmapPlatformDevice. |
411 if (is_mac || is_ios) { | 411 if (is_mac || is_ios) { |
412 sources += [ | 412 sources += [ |
413 "ext/bitmap_platform_device_mac.cc", | 413 "ext/bitmap_platform_device_mac.cc", |
(...skipping 20 matching lines...) Expand all Loading... | |
434 ] | 434 ] |
435 public_configs = [ ":skia_config" ] | 435 public_configs = [ ":skia_config" ] |
436 | 436 |
437 deps = [ | 437 deps = [ |
438 ":skia_opts", | 438 ":skia_opts", |
439 "//base", | 439 "//base", |
440 "//base/third_party/dynamic_annotations", | 440 "//base/third_party/dynamic_annotations", |
441 "//third_party/zlib", | 441 "//third_party/zlib", |
442 ] | 442 ] |
443 | 443 |
444 if (is_linux) { | 444 if (is_linux || is_nacl) { |
445 deps += [ | 445 deps += [ |
446 "//third_party/freetype2", | 446 "//third_party/freetype2", |
447 "//third_party/icu:icuuc", | 447 "//third_party/icu:icuuc", |
448 ] | 448 ] |
449 } | 449 } |
450 | 450 |
451 if (is_android) { | 451 if (is_android) { |
452 set_sources_assignment_filter([]) | 452 set_sources_assignment_filter([]) |
453 sources += [ "ext/platform_device_linux.cc" ] | 453 sources += [ "ext/platform_device_linux.cc" ] |
454 set_sources_assignment_filter(sources_assignment_filter) | 454 set_sources_assignment_filter(sources_assignment_filter) |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
495 } else { | 495 } else { |
496 sources = gypi_skia_opts.none_sources | 496 sources = gypi_skia_opts.none_sources |
497 } | 497 } |
498 } else if (current_cpu == "arm64") { | 498 } else if (current_cpu == "arm64") { |
499 # TODO(1841): NEON sources are not currently used on arm64. | 499 # TODO(1841): NEON sources are not currently used on arm64. |
500 sources = gypi_skia_opts.none_sources | 500 sources = gypi_skia_opts.none_sources |
501 } else if (current_cpu == "mipsel") { | 501 } else if (current_cpu == "mipsel") { |
502 cflags += [ "-fomit-frame-pointer" ] | 502 cflags += [ "-fomit-frame-pointer" ] |
503 | 503 |
504 sources = gypi_skia_opts.none_sources | 504 sources = gypi_skia_opts.none_sources |
505 } else if (current_cpu == "pnacl") { | |
506 cflags += [ "-fomit-frame-pointer" ] | |
Mark Seaborn
2015/12/16 21:20:37
Why this option? I'm certain you don't need it be
Sean Klein
2015/12/16 22:34:03
Removed. I naively figured it would improve perfor
| |
507 sources = gypi_skia_opts.none_sources | |
505 } else { | 508 } else { |
506 assert(false, "Need to port cpu specific stuff from skia_library_opts.gyp") | 509 assert(false, "Need to port cpu specific stuff from skia_library_opts.gyp") |
507 } | 510 } |
508 | 511 |
509 if (is_android && !is_debug) { | 512 if (is_android && !is_debug) { |
510 configs -= [ "//build/config/compiler:optimize" ] | 513 configs -= [ "//build/config/compiler:optimize" ] |
511 configs += [ "//build/config/compiler:optimize_max" ] | 514 configs += [ "//build/config/compiler:optimize_max" ] |
512 } | 515 } |
513 | 516 |
514 configs -= [ "//build/config/compiler:chromium_code" ] | 517 configs -= [ "//build/config/compiler:chromium_code" ] |
(...skipping 26 matching lines...) Expand all Loading... | |
541 deps = [ | 544 deps = [ |
542 ":skia", | 545 ":skia", |
543 "//base", | 546 "//base", |
544 "//base/test:run_all_unittests", | 547 "//base/test:run_all_unittests", |
545 "//cc:test_support", # TODO: Fix this test to not depend on cc. | 548 "//cc:test_support", # TODO: Fix this test to not depend on cc. |
546 "//testing/gtest", | 549 "//testing/gtest", |
547 "//ui/gfx", | 550 "//ui/gfx", |
548 "//ui/gfx/geometry", | 551 "//ui/gfx/geometry", |
549 ] | 552 ] |
550 } | 553 } |
OLD | NEW |