| 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 224 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 235 "/wd4345", # Object is default-initialized if initialization is omitted. | 235 "/wd4345", # Object is default-initialized if initialization is omitted. |
| 236 "/wd4390", # ';'empty statement found in looping;is it what was intended? | 236 "/wd4390", # ';'empty statement found in looping;is it what was intended? |
| 237 "/wd4554", # 'operator' : check operator precedence for possible error | 237 "/wd4554", # 'operator' : check operator precedence for possible error |
| 238 "/wd4748", # compiler will disable optimizations if a function has inline | 238 "/wd4748", # compiler will disable optimizations if a function has inline |
| 239 # assembly code contains flow control(jmp or jcc) statements. | 239 # assembly code contains flow control(jmp or jcc) statements. |
| 240 | 240 |
| 241 "/wd4800", # forcing value to bool 'true/false'(assigning int to bool). | 241 "/wd4800", # forcing value to bool 'true/false'(assigning int to bool). |
| 242 ] | 242 ] |
| 243 } | 243 } |
| 244 | 244 |
| 245 if (is_ios || is_mac) { |
| 246 cflags = [ |
| 247 # Skia uses routines deprecated in iOS 7 and above |
| 248 "-Wno-deprecated-declarations", |
| 249 ] |
| 250 } |
| 251 |
| 245 if (is_ios) { | 252 if (is_ios) { |
| 246 cflags = [ | |
| 247 # Skia uses routines deprecated in iOS 7 and above | |
| 248 "-Wno-deprecated-declarations", | |
| 249 ] | |
| 250 | |
| 251 libs = [ "ImageIO.framework" ] | 253 libs = [ "ImageIO.framework" ] |
| 252 } | 254 } |
| 253 } | 255 } |
| 254 | 256 |
| 255 component("skia") { | 257 component("skia") { |
| 256 sources = [ | 258 sources = [ |
| 257 # Chrome sources. | 259 # Chrome sources. |
| 258 "config/SkUserConfig.h", | 260 "config/SkUserConfig.h", |
| 259 "ext/SkDiscardableMemory_chrome.cc", | 261 "ext/SkDiscardableMemory_chrome.cc", |
| 260 "ext/SkDiscardableMemory_chrome.h", | 262 "ext/SkDiscardableMemory_chrome.h", |
| (...skipping 388 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 649 sources = [ | 651 sources = [ |
| 650 "tools/filter_fuzz_stub/filter_fuzz_stub.cc", | 652 "tools/filter_fuzz_stub/filter_fuzz_stub.cc", |
| 651 ] | 653 ] |
| 652 | 654 |
| 653 deps = [ | 655 deps = [ |
| 654 ":skia", | 656 ":skia", |
| 655 "//base", | 657 "//base", |
| 656 ] | 658 ] |
| 657 } | 659 } |
| 658 } | 660 } |
| OLD | NEW |