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

Side by Side Diff: skia/BUILD.gn

Issue 1001833005: Update from https://crrev.com/320343 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Supress Created 5 years, 9 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 | « sdch/win/config.h ('k') | skia/config/SkUserConfig.h » ('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 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 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 "//third_party/skia/include/config", 109 "//third_party/skia/include/config",
110 "//third_party/skia/include/core", 110 "//third_party/skia/include/core",
111 "//third_party/skia/include/effects", 111 "//third_party/skia/include/effects",
112 "//third_party/skia/include/images", 112 "//third_party/skia/include/images",
113 "//third_party/skia/include/lazy", 113 "//third_party/skia/include/lazy",
114 "//third_party/skia/include/pathops", 114 "//third_party/skia/include/pathops",
115 "//third_party/skia/include/pdf", 115 "//third_party/skia/include/pdf",
116 "//third_party/skia/include/pipe", 116 "//third_party/skia/include/pipe",
117 "//third_party/skia/include/ports", 117 "//third_party/skia/include/ports",
118 "//third_party/skia/include/utils", 118 "//third_party/skia/include/utils",
119
120 # need to move this to internal. see crbug.com/457691
121 "//third_party/skia/src/core",
122 ] 119 ]
123 120
124 defines = gypi_skia_defines.skia_for_chromium_defines 121 defines = gypi_skia_defines.skia_for_chromium_defines
125 122
126 defines += [] 123 defines += []
127 124
128 if (component_mode == "shared_library") { 125 if (component_mode == "shared_library") {
129 defines += [ "SKIA_DLL" ] 126 defines += [
127 "SKIA_DLL",
128 "GR_GL_IGNORE_ES3_MSAA=0",
129 ]
130 } 130 }
131 131
132 if (skia_support_gpu) { 132 if (skia_support_gpu) {
133 include_dirs += [ 133 include_dirs += [
134 "//third_party/skia/include/gpu", 134 "//third_party/skia/include/gpu",
135 "//third_party/skia/src/gpu", 135 "//third_party/skia/src/gpu",
136 ] 136 ]
137 defines += [ "SK_SUPPORT_GPU=1" ] 137 defines += [ "SK_SUPPORT_GPU=1" ]
138 } else { 138 } else {
139 defines += [ "SK_SUPPORT_GPU=0" ] 139 defines += [ "SK_SUPPORT_GPU=0" ]
(...skipping 10 matching lines...) Expand all
150 defines += [ "SK_BUILD_FOR_MAC" ] 150 defines += [ "SK_BUILD_FOR_MAC" ]
151 } 151 }
152 } 152 }
153 153
154 # Internal-facing config for Skia library code. 154 # Internal-facing config for Skia library code.
155 config("skia_library_config") { 155 config("skia_library_config") {
156 # These include directories are only included for Skia code and are not 156 # These include directories are only included for Skia code and are not
157 # exported to dependents. It's not clear if this is on purpose, but this 157 # exported to dependents. It's not clear if this is on purpose, but this
158 # matches the GYP build. 158 # matches the GYP build.
159 include_dirs = [ 159 include_dirs = [
160 "//third_party/skia/src/core",
160 "//third_party/skia/src/image", 161 "//third_party/skia/src/image",
161 "//third_party/skia/src/opts", 162 "//third_party/skia/src/opts",
162 "//third_party/skia/src/pdf", 163 "//third_party/skia/src/pdf",
163 "//third_party/skia/src/ports", 164 "//third_party/skia/src/ports",
164 "//third_party/skia/src/sfnt", 165 "//third_party/skia/src/sfnt",
165 "//third_party/skia/src/utils", 166 "//third_party/skia/src/utils",
166 "//third_party/skia/src/lazy", 167 "//third_party/skia/src/lazy",
167 ] 168 ]
168 if (is_mac || is_ios) { 169 if (is_mac || is_ios) {
169 include_dirs += [ "//third_party/skia/include/utils/mac" ] 170 include_dirs += [ "//third_party/skia/include/utils/mac" ]
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
224 } else { 225 } else {
225 defines += [ "SK_DEFAULT_FONT_CACHE_LIMIT=20971520" ] # 20 * 1024 * 1024 226 defines += [ "SK_DEFAULT_FONT_CACHE_LIMIT=20971520" ] # 20 * 1024 * 1024
226 } 227 }
227 228
228 if (is_win) { 229 if (is_win) {
229 include_dirs += [ 230 include_dirs += [
230 "//third_party/skia/include/utils/win", 231 "//third_party/skia/include/utils/win",
231 "//third_party/skia/src/utils/win", 232 "//third_party/skia/src/utils/win",
232 ] 233 ]
233 234
234 defines += [ "SK_FONTHOST_USES_FONTMGR" ] 235 defines += [
236 # On windows, GDI handles are a scarse system-wide resource so we have to
237 # keep the glyph cache, which holds up to 4 GDI handles per entry, to a
238 # fairly small size. http://crbug.com/314387
239 "SK_DEFAULT_FONT_CACHE_COUNT_LIMIT=256",
240 ]
235 241
236 cflags = [ 242 cflags = [
237 "/wd4244", # conversion from 'type1( __int64)' to 'type2 (unsigned int)' 243 "/wd4244", # conversion from 'type1( __int64)' to 'type2 (unsigned int)'
238 "/wd4267", # conversion from 'size_t' (64 bit) to 'type'(32 bit). 244 "/wd4267", # conversion from 'size_t' (64 bit) to 'type'(32 bit).
239 "/wd4341", # signed value is out of range for enum constant. 245 "/wd4341", # signed value is out of range for enum constant.
240 "/wd4345", # Object is default-initialized if initialization is omitted. 246 "/wd4345", # Object is default-initialized if initialization is omitted.
241 "/wd4390", # ';'empty statement found in looping;is it what was intended? 247 "/wd4390", # ';'empty statement found in looping;is it what was intended?
242 "/wd4554", # 'operator' : check operator precedence for possible error 248 "/wd4554", # 'operator' : check operator precedence for possible error
243 "/wd4748", # compiler will disable optimizations if a function has inline 249 "/wd4748", # compiler will disable optimizations if a function has inline
244 # assembly code contains flow control(jmp or jcc) statements. 250 # assembly code contains flow control(jmp or jcc) statements.
251
245 "/wd4800", # forcing value to bool 'true/false'(assigning int to bool). 252 "/wd4800", # forcing value to bool 'true/false'(assigning int to bool).
246 ] 253 ]
247 } 254 }
248 } 255 }
249 256
250 component("skia") { 257 component("skia") {
251 sources = [ 258 sources = [
252 # Chrome sources. 259 # Chrome sources.
253 "config/SkUserConfig.h", 260 "config/SkUserConfig.h",
254 "ext/SkDiscardableMemory_chrome.cc", 261 "ext/SkDiscardableMemory_chrome.cc",
(...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after
479 ] 486 ]
480 public_configs = [ ":skia_config" ] 487 public_configs = [ ":skia_config" ]
481 488
482 deps = [ 489 deps = [
483 ":skia_opts", 490 ":skia_opts",
484 "//base", 491 "//base",
485 "//base/third_party/dynamic_annotations", 492 "//base/third_party/dynamic_annotations",
486 "//third_party/zlib", 493 "//third_party/zlib",
487 ] 494 ]
488 495
489 if (is_win) {
490 configs -= [
491 # Some files define WIN32_LEAN_AND_MEAN and we want to avoid a duplicate
492 # definition warning.
493 "//build/config/win:lean_and_mean",
494 ]
495 }
496
497 if (is_linux) { 496 if (is_linux) {
498 configs += [ 497 configs += [
499 "//build/config/linux:fontconfig", 498 "//build/config/linux:fontconfig",
500 "//build/config/linux:freetype2", 499 "//build/config/linux:freetype2",
501 ] 500 ]
502 if (use_pango) { 501 if (use_pango) {
503 configs += [ "//build/config/linux:pangocairo" ] 502 configs += [ "//build/config/linux:pangocairo" ]
504 } 503 }
505 deps += [ "//third_party/icu:icuuc" ] 504 deps += [ "//third_party/icu:icuuc" ]
506 } 505 }
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
610 deps = [ 609 deps = [
611 ":skia", 610 ":skia",
612 "//base", 611 "//base",
613 "//base/test:run_all_unittests", 612 "//base/test:run_all_unittests",
614 "//cc:test_support", # TODO: Fix this test to not depend on cc. 613 "//cc:test_support", # TODO: Fix this test to not depend on cc.
615 "//testing/gtest", 614 "//testing/gtest",
616 "//ui/gfx", 615 "//ui/gfx",
617 "//ui/gfx/geometry", 616 "//ui/gfx/geometry",
618 ] 617 ]
619 } 618 }
619
620 if (is_linux && !is_chromeos) {
621 # TODO(GYP): Figure out which of these work and are needed on other platforms.
622 executable("image_operations_bench") {
623 sources = [
624 "ext/image_operations_bench.cc",
625 ]
626
627 deps = [
628 ":skia",
629 "//base",
630 ]
631 }
632
633 executable("filter_fuzz_stub") {
634 sources = [
635 "tools/filter_fuzz_stub/filter_fuzz_stub.cc",
636 ]
637
638 deps = [
639 ":skia",
640 "//base",
641 ]
642 }
643 }
OLDNEW
« no previous file with comments | « sdch/win/config.h ('k') | skia/config/SkUserConfig.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698