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

Side by Side Diff: skia/BUILD.gn

Issue 2335803002: [Merge to 2840] Optimize skia for performance, rather than size on all platforms. (Closed)
Patch Set: Created 4 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
« 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 497 matching lines...) Expand 10 before | Expand all | Expand 10 after
508 if (skia_support_pdf) { 508 if (skia_support_pdf) {
509 deps += [ 509 deps += [
510 "//third_party/sfntly", 510 "//third_party/sfntly",
511 "//third_party/zlib", 511 "//third_party/zlib",
512 ] 512 ]
513 sources += gypi_skia_pdf.sources 513 sources += gypi_skia_pdf.sources
514 } else { 514 } else {
515 sources += [ "//third_party/skia/src/pdf/SkDocument_PDF_None.cpp" ] 515 sources += [ "//third_party/skia/src/pdf/SkDocument_PDF_None.cpp" ]
516 } 516 }
517 517
518 if ((is_android || is_win) && !is_debug) { 518 if (!is_debug) {
519 configs -= [ "//build/config/compiler:default_optimization" ] 519 configs -= [ "//build/config/compiler:default_optimization" ]
520 configs += [ "//build/config/compiler:optimize_max" ] 520 configs += [ "//build/config/compiler:optimize_max" ]
521 } 521 }
522 522
523 if (is_mac) { 523 if (is_mac) {
524 libs = [ 524 libs = [
525 "AppKit.framework", 525 "AppKit.framework",
526 "CoreFoundation.framework", 526 "CoreFoundation.framework",
527 "CoreGraphics.framework", 527 "CoreGraphics.framework",
528 "CoreText.framework", 528 "CoreText.framework",
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after
694 } else { 694 } else {
695 sources = gypi_skia_opts.none_sources 695 sources = gypi_skia_opts.none_sources
696 } 696 }
697 } else if (current_cpu == "mips64el") { 697 } else if (current_cpu == "mips64el") {
698 cflags += [ "-fomit-frame-pointer" ] 698 cflags += [ "-fomit-frame-pointer" ]
699 sources = gypi_skia_opts.none_sources 699 sources = gypi_skia_opts.none_sources
700 } else { 700 } else {
701 assert(false, "Need to port cpu specific stuff from skia_library_opts.gyp") 701 assert(false, "Need to port cpu specific stuff from skia_library_opts.gyp")
702 } 702 }
703 703
704 if ((is_android || is_win) && !is_debug) { 704 if (!is_debug) {
705 configs -= [ "//build/config/compiler:default_optimization" ] 705 configs -= [ "//build/config/compiler:default_optimization" ]
706 configs += [ "//build/config/compiler:optimize_max" ] 706 configs += [ "//build/config/compiler:optimize_max" ]
707 } 707 }
708 708
709 configs -= [ "//build/config/compiler:chromium_code" ] 709 configs -= [ "//build/config/compiler:chromium_code" ]
710 configs += [ 710 configs += [
711 ":skia_config", 711 ":skia_config",
712 ":skia_library_config", 712 ":skia_library_config",
713 "//build/config/compiler:no_chromium_code", 713 "//build/config/compiler:no_chromium_code",
714 ] 714 ]
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
775 775
776 deps = [ 776 deps = [
777 ":skia", 777 ":skia",
778 "//base", 778 "//base",
779 "//base/test:test_support", 779 "//base/test:test_support",
780 "//build/config/sanitizers:deps", 780 "//build/config/sanitizers:deps",
781 "//build/win:default_exe_manifest", 781 "//build/win:default_exe_manifest",
782 ] 782 ]
783 } 783 }
784 } 784 }
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