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

Side by Side Diff: skia/BUILD.gn

Issue 1961473003: [Mac/GN] Set up the component build. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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
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 480 matching lines...) Expand 10 before | Expand all | Expand 10 after
491 sources += gypi_skia_pdf.sources 491 sources += gypi_skia_pdf.sources
492 } else { 492 } else {
493 sources += [ "//third_party/skia/src/pdf/SkDocument_PDF_None.cpp" ] 493 sources += [ "//third_party/skia/src/pdf/SkDocument_PDF_None.cpp" ]
494 } 494 }
495 495
496 if (is_android && !is_debug) { 496 if (is_android && !is_debug) {
497 configs -= [ "//build/config/compiler:default_optimization" ] 497 configs -= [ "//build/config/compiler:default_optimization" ]
498 configs += [ "//build/config/compiler:optimize_max" ] 498 configs += [ "//build/config/compiler:optimize_max" ]
499 } 499 }
500 500
501 if (is_mac) {
502 libs = [
503 "AppKit.framework",
504 "CoreFoundation.framework",
505 "CoreGraphics.framework",
506 "CoreText.framework",
507 "Foundation.framework",
508 ]
509 }
510
501 if (is_ios) { 511 if (is_ios) {
502 libs = [ "ImageIO.framework" ] 512 libs = [ "ImageIO.framework" ]
503 set_sources_assignment_filter([]) 513 set_sources_assignment_filter([])
504 sources += [ 514 sources += [
505 "//third_party/skia/src/ports/SkFontHost_mac.cpp", 515 "//third_party/skia/src/ports/SkFontHost_mac.cpp",
506 "//third_party/skia/src/utils/mac/SkCreateCGImageRef.cpp", 516 "//third_party/skia/src/utils/mac/SkCreateCGImageRef.cpp",
507 "//third_party/skia/src/utils/mac/SkStream_mac.cpp", 517 "//third_party/skia/src/utils/mac/SkStream_mac.cpp",
508 ] 518 ]
509 set_sources_assignment_filter(sources_assignment_filter) 519 set_sources_assignment_filter(sources_assignment_filter)
510 520
(...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after
718 ] 728 ]
719 729
720 deps = [ 730 deps = [
721 ":skia", 731 ":skia",
722 "//base", 732 "//base",
723 "//base/test:test_support", 733 "//base/test:test_support",
724 "//build/config/sanitizers:deps", 734 "//build/config/sanitizers:deps",
725 ] 735 ]
726 } 736 }
727 } 737 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698