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

Side by Side Diff: BUILD.gn

Issue 2196243002: GN: Define SK_HAS_... in all Skia-private code, not just libskia. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 4 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_includes = [ 9 skia_public_includes = [
10 "include/android", 10 "include/android",
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 "src/lazy", 49 "src/lazy",
50 "src/opts", 50 "src/opts",
51 "src/pathops", 51 "src/pathops",
52 "src/pdf", 52 "src/pdf",
53 "src/ports", 53 "src/ports",
54 "src/sfnt", 54 "src/sfnt",
55 "src/utils", 55 "src/utils",
56 "third_party/etc1", 56 "third_party/etc1",
57 "third_party/ktx", 57 "third_party/ktx",
58 ] 58 ]
59
60 defines = [
61 "SK_HAS_GIF_LIBRARY",
62 "SK_HAS_JPEG_LIBRARY",
63 "SK_HAS_PNG_LIBRARY",
64 "SK_HAS_WEBP_LIBRARY",
65 ]
59 } 66 }
60 67
61 # Any code that's linked into Skia-the-library should use this config via += ski a_library_configs. 68 # Any code that's linked into Skia-the-library should use this config via += ski a_library_configs.
62 config("skia_library") { 69 config("skia_library") {
63 visibility = [ ":*" ] 70 visibility = [ ":*" ]
64 defines = [ "SKIA_IMPLEMENTATION=1" ] 71 defines = [ "SKIA_IMPLEMENTATION=1" ]
65 } 72 }
66 73
67 skia_library_configs = [ 74 skia_library_configs = [
68 ":skia_public", 75 ":skia_public",
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
154 ":opts_sse41", 161 ":opts_sse41",
155 ":opts_ssse3", 162 ":opts_ssse3",
156 "//third_party/expat", 163 "//third_party/expat",
157 "//third_party/giflib", 164 "//third_party/giflib",
158 "//third_party/libjpeg_turbo", 165 "//third_party/libjpeg_turbo",
159 "//third_party/libpng", 166 "//third_party/libpng",
160 "//third_party/libwebp", 167 "//third_party/libwebp",
161 "//third_party/zlib", 168 "//third_party/zlib",
162 ] 169 ]
163 170
164 defines = [
165 "SK_HAS_GIF_LIBRARY",
166 "SK_HAS_JPEG_LIBRARY",
167 "SK_HAS_PNG_LIBRARY",
168 "SK_HAS_WEBP_LIBRARY",
169 ]
170
171 libs = [ "pthread" ] 171 libs = [ "pthread" ]
172 172
173 sources = [] 173 sources = []
174 sources += core_gypi.sources 174 sources += core_gypi.sources
175 sources += effects_gypi.sources 175 sources += effects_gypi.sources
176 sources += gpu_gypi.skgpu_sources 176 sources += gpu_gypi.skgpu_sources
177 sources += opts_gypi.sse2_sources 177 sources += opts_gypi.sse2_sources
178 sources += pdf_gypi.sources 178 sources += pdf_gypi.sources
179 sources += utils_gypi.sources 179 sources += utils_gypi.sources
180 sources += [ 180 sources += [
(...skipping 291 matching lines...) Expand 10 before | Expand all | Expand 10 after
472 ":flags", 472 ":flags",
473 ":gm", 473 ":gm",
474 ":gpu_tool_utils", 474 ":gpu_tool_utils",
475 ":skia", 475 ":skia",
476 ":tool_utils", 476 ":tool_utils",
477 "//third_party/jsoncpp", 477 "//third_party/jsoncpp",
478 ] 478 ]
479 testonly = true 479 testonly = true
480 } 480 }
481 } 481 }
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