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

Side by Side Diff: skia/BUILD.gn

Issue 2260073005: Skia: plug ARMv8 CRC32 opts into Chrome. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: : Created 4 years, 4 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 | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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") { 8 if (current_cpu == "arm") {
9 import("//build/config/arm.gni") 9 import("//build/config/arm.gni")
10 } 10 }
(...skipping 527 matching lines...) Expand 10 before | Expand all | Expand 10 after
538 ] 538 ]
539 set_sources_assignment_filter(sources_assignment_filter) 539 set_sources_assignment_filter(sources_assignment_filter)
540 540
541 # SkFontHost_mac.cpp uses API deprecated in iOS 7, crbug.com/408571 541 # SkFontHost_mac.cpp uses API deprecated in iOS 7, crbug.com/408571
542 cflags = [ "-Wno-deprecated-declarations" ] 542 cflags = [ "-Wno-deprecated-declarations" ]
543 } 543 }
544 } 544 }
545 545
546 # Separated out so it can be compiled with different flags for SSE. 546 # Separated out so it can be compiled with different flags for SSE.
547 if (!skia_build_no_opts) { 547 if (!skia_build_no_opts) {
548 if (current_cpu == "arm64") {
549 source_set("skia_opts_crc32") {
550 sources = gypi_skia_opts.crc32_sources
551 cflags = [ "-march=armv8-a+crc" ]
552 visibility = [ ":skia_opts" ]
553 configs -= [ "//build/config/compiler:chromium_code" ]
554 configs += [
555 ":skia_config",
556 ":skia_library_config",
557 "//build/config/compiler:no_chromium_code",
558 ]
559 }
560 }
548 if (current_cpu == "x86" || current_cpu == "x64") { 561 if (current_cpu == "x86" || current_cpu == "x64") {
549 source_set("skia_opts_sse3") { 562 source_set("skia_opts_sse3") {
550 sources = gypi_skia_opts.ssse3_sources 563 sources = gypi_skia_opts.ssse3_sources
551 if (!is_win || is_clang) { 564 if (!is_win || is_clang) {
552 cflags = [ "-mssse3" ] 565 cflags = [ "-mssse3" ]
553 } 566 }
554 if (is_win) { 567 if (is_win) {
555 defines = [ "SK_CPU_SSE_LEVEL=31" ] 568 defines = [ "SK_CPU_SSE_LEVEL=31" ]
556 } 569 }
557 visibility = [ ":skia_opts" ] 570 visibility = [ ":skia_opts" ]
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
663 if (!arm_use_neon) { 676 if (!arm_use_neon) {
664 configs -= [ "//build/config/compiler:compiler_arm_fpu" ] 677 configs -= [ "//build/config/compiler:compiler_arm_fpu" ]
665 cflags += [ "-mfpu=neon" ] 678 cflags += [ "-mfpu=neon" ]
666 } 679 }
667 } 680 }
668 } else { 681 } else {
669 sources = gypi_skia_opts.none_sources 682 sources = gypi_skia_opts.none_sources
670 } 683 }
671 } else if (current_cpu == "arm64") { 684 } else if (current_cpu == "arm64") {
672 sources = gypi_skia_opts.arm64_sources 685 sources = gypi_skia_opts.arm64_sources
686 deps += [ ":skia_opts_crc32" ]
673 } else if (current_cpu == "mipsel") { 687 } else if (current_cpu == "mipsel") {
674 cflags += [ "-fomit-frame-pointer" ] 688 cflags += [ "-fomit-frame-pointer" ]
675 689
676 if (mips_dsp_rev >= 1) { 690 if (mips_dsp_rev >= 1) {
677 sources = gypi_skia_opts.mips_dsp_sources 691 sources = gypi_skia_opts.mips_dsp_sources
678 } else { 692 } else {
679 sources = gypi_skia_opts.none_sources 693 sources = gypi_skia_opts.none_sources
680 } 694 }
681 } else if (current_cpu == "mips64el") { 695 } else if (current_cpu == "mips64el") {
682 cflags += [ "-fomit-frame-pointer" ] 696 cflags += [ "-fomit-frame-pointer" ]
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
759 773
760 deps = [ 774 deps = [
761 ":skia", 775 ":skia",
762 "//base", 776 "//base",
763 "//base/test:test_support", 777 "//base/test:test_support",
764 "//build/config/sanitizers:deps", 778 "//build/config/sanitizers:deps",
765 "//build/win:default_exe_manifest", 779 "//build/win:default_exe_manifest",
766 ] 780 ]
767 } 781 }
768 } 782 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698