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

Side by Side Diff: BUILD.gn

Issue 2188493002: Start on fiddle. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Only run recipe simulation tests if infra/ changes. 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 | PRESUBMIT.py » ('j') | 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 = [
10 "include/codec",
11 "include/config",
12 "include/core",
13 "include/effects",
14 "include/gpu",
15 "include/gpu/gl",
16 "include/images",
17 "include/pathops",
18 "include/ports",
19 "include/utils",
20 "include/utils/mac",
21
22 "include/c", # TODO: move back to top, order shouldn't matter
23 ]
24
9 # Skia public API, generally provided by :skia. 25 # Skia public API, generally provided by :skia.
10 config("skia_public") { 26 config("skia_public") {
11 include_dirs = [ 27 include_dirs = skia_public_includes
12 "include/c",
13 "include/config",
14 "include/core",
15 "include/effects",
16 "include/gpu",
17 "include/images",
18 "include/lazy",
19 "include/pathops",
20 "include/ports",
21 "include/utils",
22 "include/utils/mac",
23 ]
24 defines = [ "SKIA_DLL" ] 28 defines = [ "SKIA_DLL" ]
25 } 29 }
26 30
27 # Skia internal APIs, used by Skia itself and a few test tools. 31 # Skia internal APIs, used by Skia itself and a few test tools.
28 config("skia_private") { 32 config("skia_private") {
29 visibility = [ ":*" ] 33 visibility = [ ":*" ]
30 34
31 include_dirs = [ 35 include_dirs = [
32 "include/private", 36 "include/private",
33 "src/c", 37 "src/c",
38 "src/codec",
34 "src/config", 39 "src/config",
35 "src/core", 40 "src/core",
36 "src/effects", 41 "src/effects",
37 "src/gpu", 42 "src/gpu",
38 "src/image", 43 "src/image",
39 "src/images", 44 "src/images",
40 "src/lazy", 45 "src/lazy",
41 "src/opts", 46 "src/opts",
42 "src/pathops", 47 "src/pathops",
43 "src/ports", 48 "src/ports",
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
139 public_configs = [ ":skia_public" ] 144 public_configs = [ ":skia_public" ]
140 configs += skia_library_configs 145 configs += skia_library_configs
141 146
142 deps = [ 147 deps = [
143 ":opts_avx", 148 ":opts_avx",
144 ":opts_sse41", 149 ":opts_sse41",
145 ":opts_ssse3", 150 ":opts_ssse3",
146 "//third_party/zlib", 151 "//third_party/zlib",
147 ] 152 ]
148 153
154 defines = [
155 "SK_HAS_JPEG_LIBRARY",
156 "SK_HAS_PNG_LIBRARY",
157 ]
158
149 libs = [ "pthread" ] 159 libs = [ "pthread" ]
150 160
151 sources = [] 161 sources = []
152 sources += core_gypi.sources 162 sources += core_gypi.sources
153 sources += effects_gypi.sources 163 sources += effects_gypi.sources
154 sources += gpu_gypi.skgpu_sources 164 sources += gpu_gypi.skgpu_sources
155 sources += opts_gypi.sse2_sources 165 sources += opts_gypi.sse2_sources
156 sources += pdf_gypi.sources 166 sources += pdf_gypi.sources
157 sources += utils_gypi.sources 167 sources += utils_gypi.sources
158 sources += [ 168 sources += [
169 "src/codec/SkBmpCodec.cpp",
170 "src/codec/SkBmpMaskCodec.cpp",
171 "src/codec/SkBmpRLECodec.cpp",
172 "src/codec/SkBmpStandardCodec.cpp",
173 "src/codec/SkCodec.cpp",
174 "src/codec/SkCodecImageGenerator.cpp",
175 "src/codec/SkIcoCodec.cpp",
176 "src/codec/SkJpegCodec.cpp",
177 "src/codec/SkJpegDecoderMgr.cpp",
178 "src/codec/SkJpegUtility.cpp",
179 "src/codec/SkMaskSwizzler.cpp",
180 "src/codec/SkMasks.cpp",
181 "src/codec/SkPngCodec.cpp",
182 "src/codec/SkSampler.cpp",
183 "src/codec/SkSwizzler.cpp",
184 "src/codec/SkWbmpCodec.cpp",
159 "src/images/SkImageEncoder.cpp", 185 "src/images/SkImageEncoder.cpp",
160 "src/images/SkImageEncoder_Factory.cpp", 186 "src/images/SkImageEncoder_Factory.cpp",
161 "src/ports/SkDiscardableMemory_none.cpp", 187 "src/ports/SkDiscardableMemory_none.cpp",
162 "src/ports/SkGlobalInitialization_default.cpp", 188 "src/ports/SkGlobalInitialization_default.cpp",
163 "src/ports/SkImageGenerator_none.cpp", 189 "src/ports/SkImageGenerator_skia.cpp",
164 "src/ports/SkMemory_malloc.cpp", 190 "src/ports/SkMemory_malloc.cpp",
165 "src/ports/SkOSFile_stdio.cpp", 191 "src/ports/SkOSFile_stdio.cpp",
166 "src/sfnt/SkOTTable_name.cpp", 192 "src/sfnt/SkOTTable_name.cpp",
167 "src/sfnt/SkOTUtils.cpp", 193 "src/sfnt/SkOTUtils.cpp",
168 "src/utils/mac/SkStream_mac.cpp", 194 "src/utils/mac/SkStream_mac.cpp",
169 "third_party/etc1/etc1.cpp", 195 "third_party/etc1/etc1.cpp",
170 "third_party/ktx/ktx.cpp", 196 "third_party/ktx/ktx.cpp",
171 ] 197 ]
172 198
173 if (is_win) { 199 if (is_win) {
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
218 "src/ports/SkImageGeneratorCG.cpp", 244 "src/ports/SkImageGeneratorCG.cpp",
219 ] 245 ]
220 libs += [ "ApplicationServices.framework" ] 246 libs += [ "ApplicationServices.framework" ]
221 } 247 }
222 248
223 if (is_fuchsia) { 249 if (is_fuchsia) {
224 sources += [ "src/ports/SkFontMgr_empty_factory.cpp" ] 250 sources += [ "src/ports/SkFontMgr_empty_factory.cpp" ]
225 } 251 }
226 } 252 }
227 253
228 executable("example") { 254 action("skia.h") {
255 script = "gn/echo_headers.py"
256 args = [ rebase_path("$target_gen_dir/skia.h", root_build_dir) ] +
257 rebase_path(skia_public_includes, root_build_dir)
258 outputs = [
259 "$target_gen_dir/skia.h",
260 ]
261 }
262
263 executable("fiddle") {
264 include_dirs = [ "$target_gen_dir" ]
265 libs = [ "OSMesa" ]
266
229 sources = [ 267 sources = [
230 "cmake/example.cpp", 268 "tools/fiddle/draw.cpp",
269 "tools/fiddle/fiddle_main.cpp",
231 ] 270 ]
232 deps = [ 271 deps = [
233 ":skia", 272 ":skia",
273 ":skia.h",
234 ] 274 ]
235
236 libs = []
237 if (is_mac) {
238 libs += [ "OpenGL.framework" ]
239 }
240 } 275 }
OLDNEW
« no previous file with comments | « no previous file | PRESUBMIT.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698