Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 132 # need to move this to internal. see crbug.com/457691 | 132 # need to move this to internal. see crbug.com/457691 |
| 133 "//third_party/skia/src/core", | 133 "//third_party/skia/src/core", |
| 134 ] | 134 ] |
| 135 | 135 |
| 136 defines = gypi_blink_skia_defines.blink_skia_defines | 136 defines = gypi_blink_skia_defines.blink_skia_defines |
| 137 defines += gypi_skia_defines.skia_for_chromium_defines | 137 defines += gypi_skia_defines.skia_for_chromium_defines |
| 138 | 138 |
| 139 defines += [] | 139 defines += [] |
| 140 | 140 |
| 141 if (component_mode == "shared_library") { | 141 if (component_mode == "shared_library") { |
| 142 defines += [ "SKIA_DLL" ] | 142 defines += [ |
| 143 "SKIA_DLL", | |
| 144 "GR_GL_IGNORE_ES3_MSAA=0", | |
| 145 ] | |
| 143 } | 146 } |
| 144 | 147 |
| 145 if (skia_support_gpu) { | 148 if (skia_support_gpu) { |
| 146 include_dirs += [ | 149 include_dirs += [ |
| 147 "//third_party/skia/include/gpu", | 150 "//third_party/skia/include/gpu", |
| 148 "//third_party/skia/src/gpu", | 151 "//third_party/skia/src/gpu", |
| 149 ] | 152 ] |
| 150 defines += [ "SK_SUPPORT_GPU=1" ] | 153 defines += [ "SK_SUPPORT_GPU=1" ] |
| 151 } else { | 154 } else { |
| 152 defines += [ "SK_SUPPORT_GPU=0" ] | 155 defines += [ "SK_SUPPORT_GPU=0" ] |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 237 } else { | 240 } else { |
| 238 defines += [ "SK_DEFAULT_FONT_CACHE_LIMIT=20971520" ] # 20 * 1024 * 1024 | 241 defines += [ "SK_DEFAULT_FONT_CACHE_LIMIT=20971520" ] # 20 * 1024 * 1024 |
| 239 } | 242 } |
| 240 | 243 |
| 241 if (is_win) { | 244 if (is_win) { |
| 242 include_dirs += [ | 245 include_dirs += [ |
| 243 "//third_party/skia/include/utils/win", | 246 "//third_party/skia/include/utils/win", |
| 244 "//third_party/skia/src/utils/win", | 247 "//third_party/skia/src/utils/win", |
| 245 ] | 248 ] |
| 246 | 249 |
| 247 defines += [ "SK_FONTHOST_USES_FONTMGR" ] | 250 defines += [ |
| 251 # On windows, GDI handles are a scarse system-wide resource so we have to | |
| 252 # keep the glyph cache, which holds up to 4 GDI handles per entry, to a | |
| 253 # fairly small size. http://crbug.com/314387 | |
| 254 "SK_DEFAULT_FONT_CACHE_COUNT_LIMIT=256", | |
| 255 ] | |
| 248 | 256 |
| 249 cflags = [ | 257 cflags = [ |
| 250 "/wd4244", # conversion from 'type1( __int64)' to 'type2 (unsigned int)' | 258 "/wd4244", # conversion from 'type1( __int64)' to 'type2 (unsigned int)' |
| 251 "/wd4267", # conversion from 'size_t' (64 bit) to 'type'(32 bit). | 259 "/wd4267", # conversion from 'size_t' (64 bit) to 'type'(32 bit). |
| 252 "/wd4341", # signed value is out of range for enum constant. | 260 "/wd4341", # signed value is out of range for enum constant. |
| 253 "/wd4345", # Object is default-initialized if initialization is omitted. | 261 "/wd4345", # Object is default-initialized if initialization is omitted. |
| 254 "/wd4390", # ';'empty statement found in looping;is it what was intended? | 262 "/wd4390", # ';'empty statement found in looping;is it what was intended? |
| 255 "/wd4554", # 'operator' : check operator precedence for possible error | 263 "/wd4554", # 'operator' : check operator precedence for possible error |
| 256 "/wd4748", # compiler will disable optimizations if a function has inline | 264 "/wd4748", # compiler will disable optimizations if a function has inline |
| 257 # assembly code contains flow control(jmp or jcc) statements. | 265 # assembly code contains flow control(jmp or jcc) statements. |
| 266 | |
|
brettw
2015/03/05 21:56:53
gn format did this.
| |
| 258 "/wd4800", # forcing value to bool 'true/false'(assigning int to bool). | 267 "/wd4800", # forcing value to bool 'true/false'(assigning int to bool). |
| 259 ] | 268 ] |
| 260 } | 269 } |
| 261 } | 270 } |
| 262 | 271 |
| 263 component("skia") { | 272 component("skia") { |
| 264 sources = [ | 273 sources = [ |
| 265 # Chrome sources. | 274 # Chrome sources. |
| 266 "config/SkUserConfig.h", | 275 "config/SkUserConfig.h", |
| 267 "ext/SkDiscardableMemory_chrome.cc", | 276 "ext/SkDiscardableMemory_chrome.cc", |
| (...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 492 ] | 501 ] |
| 493 public_configs = [ ":skia_config" ] | 502 public_configs = [ ":skia_config" ] |
| 494 | 503 |
| 495 deps = [ | 504 deps = [ |
| 496 ":skia_opts", | 505 ":skia_opts", |
| 497 "//base", | 506 "//base", |
| 498 "//base/third_party/dynamic_annotations", | 507 "//base/third_party/dynamic_annotations", |
| 499 "//third_party/zlib", | 508 "//third_party/zlib", |
| 500 ] | 509 ] |
| 501 | 510 |
| 502 if (is_win) { | |
| 503 configs -= [ | |
| 504 # Some files define WIN32_LEAN_AND_MEAN and we want to avoid a duplicate | |
| 505 # definition warning. | |
| 506 "//build/config/win:lean_and_mean", | |
| 507 ] | |
| 508 } | |
| 509 | |
| 510 if (is_linux) { | 511 if (is_linux) { |
| 511 configs += [ | 512 configs += [ |
| 512 "//build/config/linux:fontconfig", | 513 "//build/config/linux:fontconfig", |
| 513 "//build/config/linux:freetype2", | 514 "//build/config/linux:freetype2", |
| 514 ] | 515 ] |
| 515 if (use_pango) { | 516 if (use_pango) { |
| 516 configs += [ "//build/config/linux:pangocairo" ] | 517 configs += [ "//build/config/linux:pangocairo" ] |
| 517 } | 518 } |
| 518 deps += [ "//third_party/icu:icuuc" ] | 519 deps += [ "//third_party/icu:icuuc" ] |
| 519 } | 520 } |
| (...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 623 deps = [ | 624 deps = [ |
| 624 ":skia", | 625 ":skia", |
| 625 "//base", | 626 "//base", |
| 626 "//base/test:run_all_unittests", | 627 "//base/test:run_all_unittests", |
| 627 "//cc:test_support", # TODO: Fix this test to not depend on cc. | 628 "//cc:test_support", # TODO: Fix this test to not depend on cc. |
| 628 "//testing/gtest", | 629 "//testing/gtest", |
| 629 "//ui/gfx", | 630 "//ui/gfx", |
| 630 "//ui/gfx/geometry", | 631 "//ui/gfx/geometry", |
| 631 ] | 632 ] |
| 632 } | 633 } |
| OLD | NEW |