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

Side by Side Diff: skia/BUILD.gn

Issue 555373004: Compile specific parts of the Android build with -O2. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Review comments Created 6 years, 3 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
« cc/BUILD.gn ('K') | « gpu/gpu.gyp ('k') | skia/skia.gyp » ('j') | 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 if (cpu_arch == "arm") { 7 if (cpu_arch == "arm") {
8 import("//build/config/arm.gni") 8 import("//build/config/arm.gni")
9 } 9 }
10 10
(...skipping 534 matching lines...) Expand 10 before | Expand all | Expand 10 after
545 deps += [ 545 deps += [
546 "//third_party/expat", 546 "//third_party/expat",
547 "//third_party/freetype", 547 "//third_party/freetype",
548 "//third_party/android_tools:cpu_features", 548 "//third_party/android_tools:cpu_features",
549 ] 549 ]
550 } 550 }
551 551
552 if (skia_support_pdf) { 552 if (skia_support_pdf) {
553 deps += [ "//third_party/sfntly" ] 553 deps += [ "//third_party/sfntly" ]
554 } 554 }
555
556 if (is_android && !is_debug) {
557 configs -= [ "//build/config/compiler:optimize" ]
558 configs += [ "//build/config/compiler:optimize_max" ]
559 }
555 } 560 }
556 561
557 # Separated out so it can be compiled with different flags for SSE. 562 # Separated out so it can be compiled with different flags for SSE.
558 source_set("skia_opts") { 563 source_set("skia_opts") {
559 cflags = [] 564 cflags = []
560 defines = [] 565 defines = []
561 566
562 if (cpu_arch == "x86" || cpu_arch == "x64") { 567 if (cpu_arch == "x86" || cpu_arch == "x64") {
563 sources = [ 568 sources = [
564 "//third_party/skia/src/opts/SkTextureCompression_opts_none.cpp", 569 "//third_party/skia/src/opts/SkTextureCompression_opts_none.cpp",
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
682 "//third_party/skia/src/opts/SkBlurImage_opts_none.cpp", 687 "//third_party/skia/src/opts/SkBlurImage_opts_none.cpp",
683 "//third_party/skia/src/opts/SkMorphology_opts_none.cpp", 688 "//third_party/skia/src/opts/SkMorphology_opts_none.cpp",
684 "//third_party/skia/src/opts/SkTextureCompression_opts_none.cpp", 689 "//third_party/skia/src/opts/SkTextureCompression_opts_none.cpp",
685 "//third_party/skia/src/opts/SkUtils_opts_none.cpp", 690 "//third_party/skia/src/opts/SkUtils_opts_none.cpp",
686 "//third_party/skia/src/opts/SkXfermode_opts_none.cpp", 691 "//third_party/skia/src/opts/SkXfermode_opts_none.cpp",
687 ] 692 ]
688 } else { 693 } else {
689 assert(false, "Need to port cpu specific stuff from skia_library_opts.gyp") 694 assert(false, "Need to port cpu specific stuff from skia_library_opts.gyp")
690 } 695 }
691 696
697 if (is_android && !is_debug) {
698 configs -= [ "//build/config/compiler:optimize" ]
699 configs += [ "//build/config/compiler:optimize_max" ]
700 }
701
692 configs -= [ "//build/config/compiler:chromium_code" ] 702 configs -= [ "//build/config/compiler:chromium_code" ]
693 configs += [ 703 configs += [
694 ":skia_config", 704 ":skia_config",
695 "//build/config/compiler:no_chromium_code" 705 "//build/config/compiler:no_chromium_code"
696 ] 706 ]
697 707
698 deps = [ 708 deps = [
699 "//base", 709 "//base",
700 ] 710 ]
701 711
702 visibility = [ ":skia" ] 712 visibility = [ ":skia" ]
703 } 713 }
OLDNEW
« cc/BUILD.gn ('K') | « gpu/gpu.gyp ('k') | skia/skia.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698