OLD | NEW |
1 # Copyright 2016 Google Inc. | 1 # Copyright 2016 Google Inc. |
2 # | 2 # |
3 # Use of this source code is governed by a BSD-style license that can be | 3 # Use of this source code is governed by a BSD-style license that can be |
4 # found in the LICENSE file. | 4 # found in the LICENSE file. |
5 | 5 |
6 declare_args() { | 6 declare_args() { |
7 } | 7 } |
8 | 8 |
9 # Skia public API, generally provided by :skia. | 9 # Skia public API, generally provided by :skia. |
10 config("skia_public") { | 10 config("skia_public") { |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
63 | 63 |
64 defines = [ "SKIA_IMPLEMENTATION=1" ] | 64 defines = [ "SKIA_IMPLEMENTATION=1" ] |
65 } | 65 } |
66 | 66 |
67 skia_library_configs = [ | 67 skia_library_configs = [ |
68 ":skia_public", | 68 ":skia_public", |
69 ":skia_private", | 69 ":skia_private", |
70 ":skia_library", | 70 ":skia_library", |
71 ] | 71 ] |
72 | 72 |
| 73 if (!defined(is_fuchsia)) { |
| 74 is_fuchsia = current_os == "fuchsia" |
| 75 } |
| 76 |
73 unwanted_configs = [] | 77 unwanted_configs = [] |
74 | 78 |
75 if (!is_fuchsia) { | 79 if (!is_fuchsia) { |
76 # Chrome's GN environment is mostly helpful, but a couple default configs tend
to get in the way. | 80 # Chrome's GN environment is mostly helpful, but a couple default configs tend
to get in the way. |
77 unwanted_configs += [ | 81 unwanted_configs += [ |
78 "//build/config/clang:find_bad_constructs", # Chrome style checks. | 82 "//build/config/clang:find_bad_constructs", # Chrome style checks. |
79 "//build/config:feature_flags", # A bunch of #defines we don't care about. | 83 "//build/config:feature_flags", # A bunch of #defines we don't care about. |
80 ] | 84 ] |
81 } | 85 } |
82 | 86 |
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
238 if (is_mac) { | 242 if (is_mac) { |
239 sources += [ | 243 sources += [ |
240 "src/ports/SkFontHost_mac.cpp", | 244 "src/ports/SkFontHost_mac.cpp", |
241 "src/ports/SkImageEncoder_CG.cpp", | 245 "src/ports/SkImageEncoder_CG.cpp", |
242 "src/ports/SkImageGeneratorCG.cpp", | 246 "src/ports/SkImageGeneratorCG.cpp", |
243 ] | 247 ] |
244 libs += [ "ApplicationServices.framework" ] | 248 libs += [ "ApplicationServices.framework" ] |
245 } | 249 } |
246 | 250 |
247 if (is_fuchsia) { | 251 if (is_fuchsia) { |
248 sources += [ | 252 sources += [ "src/ports/SkFontMgr_empty_factory.cpp" ] |
249 "src/ports/SkFontMgr_empty_factory.cpp", | |
250 ] | |
251 } | 253 } |
252 } | 254 } |
253 | 255 |
254 executable("example") { | 256 executable("example") { |
255 configs -= unwanted_configs | 257 configs -= unwanted_configs |
256 | 258 |
257 sources = [ | 259 sources = [ |
258 "cmake/example.cpp", | 260 "cmake/example.cpp", |
259 ] | 261 ] |
260 deps = [ | 262 deps = [ |
261 ":skia", | 263 ":skia", |
262 ] | 264 ] |
263 | 265 |
264 libs = [] | 266 libs = [] |
265 if (is_mac) { | 267 if (is_mac) { |
266 libs += [ "OpenGL.framework" ] | 268 libs += [ "OpenGL.framework" ] |
267 } | 269 } |
268 } | 270 } |
OLD | NEW |