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

Side by Side Diff: BUILD.gn

Issue 2164453003: GN: polyfill is_fuchsia (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: fmt Created 4 years, 5 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 | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698