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

Side by Side Diff: skia/BUILD.gn

Issue 589753005: gn: Fix build issues blocking gfx from being built (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: reverted target.cc change 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
« no previous file with comments | « chrome/common/BUILD.gn ('k') | third_party/libpng/BUILD.gn » ('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 160 matching lines...) Expand 10 before | Expand all | Expand 10 after
171 "IGNORE_ROT_AA_RECT_OPT", 171 "IGNORE_ROT_AA_RECT_OPT",
172 172
173 "SK_IGNORE_BLURRED_RRECT_OPT", 173 "SK_IGNORE_BLURRED_RRECT_OPT",
174 174
175 # this flag forces Skia not to use typographic metrics with GDI. 175 # this flag forces Skia not to use typographic metrics with GDI.
176 "SK_GDI_ALWAYS_USE_TEXTMETRICS_FOR_FONT_METRICS", 176 "SK_GDI_ALWAYS_USE_TEXTMETRICS_FOR_FONT_METRICS",
177 177
178 "SK_USE_DISCARDABLE_SCALEDIMAGECACHE", 178 "SK_USE_DISCARDABLE_SCALEDIMAGECACHE",
179 ] 179 ]
180 180
181 if (component_mode == "shared_library") {
182 defines += [ "SKIA_IMPLEMENTATION=1" ]
183 }
184
181 if (cpu_arch == "arm") { 185 if (cpu_arch == "arm") {
182 if (arm_use_neon) { 186 if (arm_use_neon) {
183 defines += [ "SK_ARM_HAS_NEON" ] 187 defines += [ "SK_ARM_HAS_NEON" ]
184 } 188 }
185 if (arm_optionally_use_neon) { 189 if (arm_optionally_use_neon) {
186 defines += [ "SK_ARM_HAS_OPTIONAL_NEON" ] 190 defines += [ "SK_ARM_HAS_OPTIONAL_NEON" ]
187 } 191 }
188 } 192 }
189 193
190 # Settings for text blitting, chosen to approximate the system browser. 194 # Settings for text blitting, chosen to approximate the system browser.
(...skipping 315 matching lines...) Expand 10 before | Expand all | Expand 10 after
506 ] 510 ]
507 direct_dependent_configs = [ ":skia_config" ] 511 direct_dependent_configs = [ ":skia_config" ]
508 512
509 deps = [ 513 deps = [
510 ":skia_opts", 514 ":skia_opts",
511 "//base", 515 "//base",
512 "//base/third_party/dynamic_annotations", 516 "//base/third_party/dynamic_annotations",
513 "//third_party/zlib", 517 "//third_party/zlib",
514 ] 518 ]
515 519
516 if (component_mode == "shared_library") {
517 defines = [ "SKIA_IMPLEMENTATION=1" ]
518 }
519
520 if (is_win) { 520 if (is_win) {
521 configs -= [ 521 configs -= [
522 # Some files define WIN32_LEAN_AND_MEAN and we want to avoid a duplicate 522 # Some files define WIN32_LEAN_AND_MEAN and we want to avoid a duplicate
523 # definition warning. 523 # definition warning.
524 "//build/config/win:lean_and_mean", 524 "//build/config/win:lean_and_mean",
525 ] 525 ]
526 } 526 }
527 527
528 if (is_linux) { 528 if (is_linux) {
529 configs += [ 529 configs += [
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after
695 } 695 }
696 696
697 if (is_android && !is_debug) { 697 if (is_android && !is_debug) {
698 configs -= [ "//build/config/compiler:optimize" ] 698 configs -= [ "//build/config/compiler:optimize" ]
699 configs += [ "//build/config/compiler:optimize_max" ] 699 configs += [ "//build/config/compiler:optimize_max" ]
700 } 700 }
701 701
702 configs -= [ "//build/config/compiler:chromium_code" ] 702 configs -= [ "//build/config/compiler:chromium_code" ]
703 configs += [ 703 configs += [
704 ":skia_config", 704 ":skia_config",
705 ":skia_library_config",
705 "//build/config/compiler:no_chromium_code" 706 "//build/config/compiler:no_chromium_code"
706 ] 707 ]
707 708
708 deps = [ 709 deps = [
709 "//base", 710 "//base",
710 ] 711 ]
711 712
712 visibility = [ ":skia" ] 713 visibility = [ ":skia" ]
713 } 714 }
OLDNEW
« no previous file with comments | « chrome/common/BUILD.gn ('k') | third_party/libpng/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698