blob: 0d15f3169c54d6730fe2750a30d2ca6411a37690 [file] [log] [blame]
mtkleinc04ff472016-06-23 10:29:30 -07001# Copyright 2016 Google Inc.
2#
3# Use of this source code is governed by a BSD-style license that can be
4# found in the LICENSE file.
5
6declare_args() {
7}
8
mtklein1211e0c2016-07-26 13:55:45 -07009skia_public_includes = [
mtklein25c81d42016-07-27 13:55:26 -070010 "include/android",
mtkleinfa84d942016-07-28 09:45:14 -070011 "include/c",
mtklein1211e0c2016-07-26 13:55:45 -070012 "include/codec",
13 "include/config",
14 "include/core",
15 "include/effects",
16 "include/gpu",
17 "include/gpu/gl",
18 "include/images",
19 "include/pathops",
20 "include/ports",
mtklein25c81d42016-07-27 13:55:26 -070021 "include/svg",
mtklein1211e0c2016-07-26 13:55:45 -070022 "include/utils",
23 "include/utils/mac",
mtklein25c81d42016-07-27 13:55:26 -070024 "include/xml",
mtklein1211e0c2016-07-26 13:55:45 -070025]
26
mtkleinc04ff472016-06-23 10:29:30 -070027# Skia public API, generally provided by :skia.
28config("skia_public") {
mtklein1211e0c2016-07-26 13:55:45 -070029 include_dirs = skia_public_includes
mtkleinc04ff472016-06-23 10:29:30 -070030 defines = [ "SKIA_DLL" ]
31}
32
33# Skia internal APIs, used by Skia itself and a few test tools.
34config("skia_private") {
35 visibility = [ ":*" ]
36
37 include_dirs = [
38 "include/private",
39 "src/c",
mtklein1211e0c2016-07-26 13:55:45 -070040 "src/codec",
mtkleinc04ff472016-06-23 10:29:30 -070041 "src/config",
42 "src/core",
43 "src/effects",
mtklein25c81d42016-07-27 13:55:26 -070044 "src/effects/gradients",
45 "src/fonts",
mtkleinc04ff472016-06-23 10:29:30 -070046 "src/gpu",
47 "src/image",
48 "src/images",
49 "src/lazy",
50 "src/opts",
51 "src/pathops",
mtklein2b6870c2016-07-28 14:17:33 -070052 "src/pdf",
mtkleinc04ff472016-06-23 10:29:30 -070053 "src/ports",
54 "src/sfnt",
55 "src/utils",
56 "third_party/etc1",
57 "third_party/ktx",
58 ]
mtklein150d1132016-08-01 06:56:40 -070059
60 defines = [
mtklein9be68662016-08-01 08:37:48 -070061 "SK_GAMMA_APPLY_TO_A8",
62
mtklein150d1132016-08-01 06:56:40 -070063 "SK_HAS_GIF_LIBRARY",
64 "SK_HAS_JPEG_LIBRARY",
65 "SK_HAS_PNG_LIBRARY",
66 "SK_HAS_WEBP_LIBRARY",
mtklein7c1ae7a2016-08-01 15:50:27 -070067
halcanary19a97202016-08-03 15:08:04 -070068 # TODO(halcanary): make this the default; this is the value Android uses.
69 "SK_SFNTLY_SUBSETTER=\"sample/chromium/font_subsetter.h\"",
70
mtklein7c1ae7a2016-08-01 15:50:27 -070071 "TURBO_HAS_565",
72 "TURBO_HAS_CROP",
73 "TURBO_HAS_SKIP",
mtklein150d1132016-08-01 06:56:40 -070074 ]
mtkleinc04ff472016-06-23 10:29:30 -070075}
76
77# Any code that's linked into Skia-the-library should use this config via += skia_library_configs.
78config("skia_library") {
79 visibility = [ ":*" ]
mtkleinc04ff472016-06-23 10:29:30 -070080 defines = [ "SKIA_IMPLEMENTATION=1" ]
81}
82
83skia_library_configs = [
84 ":skia_public",
85 ":skia_private",
86 ":skia_library",
87]
88
mtklein7fbfbbe2016-07-21 12:25:45 -070089core_gypi = exec_script("gn/gypi_to_gn.py",
mtkleinc04ff472016-06-23 10:29:30 -070090 [
91 rebase_path("gyp/core.gypi"),
92 "--replace=<(skia_include_path)=include",
93 "--replace=<(skia_src_path)=src",
94 ],
95 "scope",
96 [ "gyp/core.gypi" ])
97
mtklein7fbfbbe2016-07-21 12:25:45 -070098effects_gypi = exec_script("gn/gypi_to_gn.py",
mtkleinc04ff472016-06-23 10:29:30 -070099 [
100 rebase_path("gyp/effects.gypi"),
101 "--replace=<(skia_include_path)=include",
102 "--replace=<(skia_src_path)=src",
103 ],
104 "scope",
105 [ "gyp/effects.gypi" ])
106
mtklein7fbfbbe2016-07-21 12:25:45 -0700107gpu_gypi = exec_script("gn/gypi_to_gn.py",
mtkleinc04ff472016-06-23 10:29:30 -0700108 [
109 rebase_path("gyp/gpu.gypi"),
110 "--replace=<(skia_include_path)=include",
111 "--replace=<(skia_src_path)=src",
112 ],
113 "scope",
114 [ "gyp/gpu.gypi" ])
115
mtklein7fbfbbe2016-07-21 12:25:45 -0700116opts_gypi = exec_script("gn/gypi_to_gn.py",
mtkleinc04ff472016-06-23 10:29:30 -0700117 [
118 rebase_path("gyp/opts.gypi"),
119 "--replace=<(skia_include_path)=include",
120 "--replace=<(skia_src_path)=src",
121 ],
122 "scope",
123 [ "gyp/opts.gypi" ])
124
mtklein7fbfbbe2016-07-21 12:25:45 -0700125pdf_gypi = exec_script("gn/gypi_to_gn.py",
mtkleinc04ff472016-06-23 10:29:30 -0700126 [
127 rebase_path("gyp/pdf.gypi"),
128 "--replace=<(skia_include_path)=include",
129 "--replace=<(skia_src_path)=src",
130 ],
131 "scope",
132 [ "gyp/pdf.gypi" ])
133
mtklein7fbfbbe2016-07-21 12:25:45 -0700134utils_gypi = exec_script("gn/gypi_to_gn.py",
mtkleinc04ff472016-06-23 10:29:30 -0700135 [
136 rebase_path("gyp/utils.gypi"),
137 "--replace=<(skia_include_path)=include",
138 "--replace=<(skia_src_path)=src",
139 ],
140 "scope",
141 [ "gyp/utils.gypi" ])
142
143source_set("opts_ssse3") {
144 configs += skia_library_configs
mtkleinc04ff472016-06-23 10:29:30 -0700145
146 sources = opts_gypi.ssse3_sources
147 cflags = [ "-mssse3" ]
148}
149
150source_set("opts_sse41") {
151 configs += skia_library_configs
mtkleinc04ff472016-06-23 10:29:30 -0700152
153 sources = opts_gypi.sse41_sources
154 cflags = [ "-msse4.1" ]
155}
156
157source_set("opts_avx") {
158 configs += skia_library_configs
mtkleinc04ff472016-06-23 10:29:30 -0700159
160 sources = opts_gypi.avx_sources
161 cflags = [ "-mavx" ]
162}
163
164component("skia") {
165 public_configs = [ ":skia_public" ]
166 configs += skia_library_configs
mtkleinc04ff472016-06-23 10:29:30 -0700167
168 deps = [
169 ":opts_avx",
170 ":opts_sse41",
171 ":opts_ssse3",
mtklein25c81d42016-07-27 13:55:26 -0700172 "//third_party/expat",
173 "//third_party/giflib",
mtklein7d10b9f2016-07-27 11:17:18 -0700174 "//third_party/libjpeg_turbo",
175 "//third_party/libpng",
mtklein25c81d42016-07-27 13:55:26 -0700176 "//third_party/libwebp",
halcanary19a97202016-08-03 15:08:04 -0700177 "//third_party/sfntly",
abarth6fc8ff02016-07-15 15:15:15 -0700178 "//third_party/zlib",
mtkleinc04ff472016-06-23 10:29:30 -0700179 ]
180
mtklein7fbfbbe2016-07-21 12:25:45 -0700181 libs = [ "pthread" ]
mtkleinc04ff472016-06-23 10:29:30 -0700182
183 sources = []
184 sources += core_gypi.sources
185 sources += effects_gypi.sources
186 sources += gpu_gypi.skgpu_sources
187 sources += opts_gypi.sse2_sources
188 sources += pdf_gypi.sources
189 sources += utils_gypi.sources
190 sources += [
mtklein25c81d42016-07-27 13:55:26 -0700191 "src/android/SkBitmapRegionCodec.cpp",
192 "src/android/SkBitmapRegionDecoder.cpp",
193 "src/codec/SkAndroidCodec.cpp",
mtklein1211e0c2016-07-26 13:55:45 -0700194 "src/codec/SkBmpCodec.cpp",
195 "src/codec/SkBmpMaskCodec.cpp",
196 "src/codec/SkBmpRLECodec.cpp",
197 "src/codec/SkBmpStandardCodec.cpp",
198 "src/codec/SkCodec.cpp",
199 "src/codec/SkCodecImageGenerator.cpp",
mtklein25c81d42016-07-27 13:55:26 -0700200 "src/codec/SkGifCodec.cpp",
mtklein1211e0c2016-07-26 13:55:45 -0700201 "src/codec/SkIcoCodec.cpp",
202 "src/codec/SkJpegCodec.cpp",
203 "src/codec/SkJpegDecoderMgr.cpp",
204 "src/codec/SkJpegUtility.cpp",
205 "src/codec/SkMaskSwizzler.cpp",
206 "src/codec/SkMasks.cpp",
207 "src/codec/SkPngCodec.cpp",
mtklein25c81d42016-07-27 13:55:26 -0700208 "src/codec/SkSampledCodec.cpp",
mtklein1211e0c2016-07-26 13:55:45 -0700209 "src/codec/SkSampler.cpp",
210 "src/codec/SkSwizzler.cpp",
211 "src/codec/SkWbmpCodec.cpp",
mtklein25c81d42016-07-27 13:55:26 -0700212 "src/codec/SkWebpAdapterCodec.cpp",
213 "src/codec/SkWebpCodec.cpp",
mtkleinc04ff472016-06-23 10:29:30 -0700214 "src/images/SkImageEncoder.cpp",
215 "src/images/SkImageEncoder_Factory.cpp",
mtklein2b6870c2016-07-28 14:17:33 -0700216 "src/images/SkJPEGImageEncoder.cpp",
217 "src/images/SkJPEGWriteUtility.cpp",
218 "src/images/SkKTXImageEncoder.cpp",
219 "src/images/SkPNGImageEncoder.cpp",
220 "src/images/SkWEBPImageEncoder.cpp",
mtkleinc04ff472016-06-23 10:29:30 -0700221 "src/ports/SkDiscardableMemory_none.cpp",
222 "src/ports/SkGlobalInitialization_default.cpp",
mtklein1211e0c2016-07-26 13:55:45 -0700223 "src/ports/SkImageGenerator_skia.cpp",
mtkleinc04ff472016-06-23 10:29:30 -0700224 "src/ports/SkMemory_malloc.cpp",
225 "src/ports/SkOSFile_stdio.cpp",
226 "src/sfnt/SkOTTable_name.cpp",
227 "src/sfnt/SkOTUtils.cpp",
mtklein25c81d42016-07-27 13:55:26 -0700228 "src/svg/SkSVGCanvas.cpp",
229 "src/svg/SkSVGDevice.cpp",
mtkleinc04ff472016-06-23 10:29:30 -0700230 "src/utils/mac/SkStream_mac.cpp",
mtklein25c81d42016-07-27 13:55:26 -0700231 "src/xml/SkDOM.cpp",
232 "src/xml/SkXMLParser.cpp",
233 "src/xml/SkXMLWriter.cpp",
mtkleinc04ff472016-06-23 10:29:30 -0700234 "third_party/etc1/etc1.cpp",
235 "third_party/ktx/ktx.cpp",
236 ]
237
238 if (is_win) {
239 sources += [
240 "src/ports/SkDebug_win.cpp",
241 "src/ports/SkFontHost_win.cpp",
242 "src/ports/SkFontMgr_win_dw.cpp",
243 "src/ports/SkFontMgr_win_dw_factory.cpp",
244 "src/ports/SkImageEncoder_WIC.cpp",
245 "src/ports/SkImageGeneratorWIC.cpp",
246 "src/ports/SkOSFile_win.cpp",
247 "src/ports/SkScalerContext_win_dw.cpp",
248 "src/ports/SkTLS_win.cpp",
249 "src/ports/SkTypeface_win_dw.cpp",
mtklein25c81d42016-07-27 13:55:26 -0700250 "src/xps/SkDocument_XPS.cpp",
mtkleinc04ff472016-06-23 10:29:30 -0700251 ]
252 } else {
253 sources += [
254 "src/ports/SkDebug_stdio.cpp",
255 "src/ports/SkOSFile_posix.cpp",
256 "src/ports/SkTLS_pthread.cpp",
mtklein25c81d42016-07-27 13:55:26 -0700257 "src/xps/SkDocument_XPS_None.cpp",
mtkleinc04ff472016-06-23 10:29:30 -0700258 ]
259 }
260
261 if (is_linux) {
262 deps += [
263 "third_party:fontconfig",
264 "third_party:freetype2",
mtkleinc04ff472016-06-23 10:29:30 -0700265 ]
266 sources += [
mtkleinc04ff472016-06-23 10:29:30 -0700267 "src/ports/SkFontConfigInterface_direct.cpp",
268 "src/ports/SkFontConfigInterface_direct_factory.cpp",
269 "src/ports/SkFontHost_FreeType.cpp",
270 "src/ports/SkFontHost_FreeType_common.cpp",
bungeman7d0e3bc2016-08-02 07:07:33 -0700271 "src/ports/SkFontMgr_FontConfigInterface.cpp",
mtklein7a34b1c2016-08-01 13:08:46 -0700272 "src/ports/SkFontMgr_fontconfig.cpp",
273 "src/ports/SkFontMgr_fontconfig_factory.cpp",
mtkleinc04ff472016-06-23 10:29:30 -0700274 ]
275 }
276
277 if (is_mac) {
278 sources += [
279 "src/ports/SkFontHost_mac.cpp",
280 "src/ports/SkImageEncoder_CG.cpp",
281 "src/ports/SkImageGeneratorCG.cpp",
282 ]
283 libs += [ "ApplicationServices.framework" ]
284 }
abarth6fc8ff02016-07-15 15:15:15 -0700285
286 if (is_fuchsia) {
mtkleine817ddf2016-07-19 06:03:22 -0700287 sources += [ "src/ports/SkFontMgr_empty_factory.cpp" ]
abarth6fc8ff02016-07-15 15:15:15 -0700288 }
mtkleinc04ff472016-06-23 10:29:30 -0700289}
290
mtkleinada5a442016-08-02 14:28:26 -0700291skia_h_headers = exec_script("gyp/find.py",
292 [ "*.h" ] + rebase_path(skia_public_includes),
293 "list lines",
294 []) -
295 [
296 rebase_path("include/gpu/gl/GrGLConfig_chrome.h"),
297 rebase_path("include/gpu/vk/GrVkBackendContext.h"),
298 rebase_path("include/gpu/vk/GrVkDefines.h"),
299 rebase_path("include/gpu/vk/GrVkInterface.h"),
300 rebase_path("include/gpu/vk/GrVkTypes.h"),
301 rebase_path("include/ports/SkFontMgr_fontconfig.h"),
302 ]
303
mtklein1211e0c2016-07-26 13:55:45 -0700304action("skia.h") {
305 script = "gn/echo_headers.py"
306 args = [ rebase_path("$target_gen_dir/skia.h", root_build_dir) ] +
mtkleinada5a442016-08-02 14:28:26 -0700307 rebase_path(skia_h_headers, root_build_dir)
mtklein1211e0c2016-07-26 13:55:45 -0700308 outputs = [
309 "$target_gen_dir/skia.h",
310 ]
311}
312
313executable("fiddle") {
314 include_dirs = [ "$target_gen_dir" ]
mtklein7d10b9f2016-07-27 11:17:18 -0700315 libs = []
316 if (is_linux) {
317 libs += [ "OSMesa" ]
318 }
mtklein1211e0c2016-07-26 13:55:45 -0700319
mtkleinc04ff472016-06-23 10:29:30 -0700320 sources = [
mtklein1211e0c2016-07-26 13:55:45 -0700321 "tools/fiddle/draw.cpp",
322 "tools/fiddle/fiddle_main.cpp",
mtkleinc04ff472016-06-23 10:29:30 -0700323 ]
324 deps = [
325 ":skia",
mtklein1211e0c2016-07-26 13:55:45 -0700326 ":skia.h",
mtklein5dbd2742016-08-02 11:13:48 -0700327 ":tool_utils",
mtkleinc04ff472016-06-23 10:29:30 -0700328 ]
mtklein5dbd2742016-08-02 11:13:48 -0700329 testonly = true
mtkleinc04ff472016-06-23 10:29:30 -0700330}
mtklein25c81d42016-07-27 13:55:26 -0700331
332template("test_lib") {
333 config(target_name + "_config") {
334 include_dirs = invoker.public_include_dirs
335 }
336 source_set(target_name) {
337 forward_variables_from(invoker, "*", [ "public_include_dirs" ])
338 public_configs = [
339 ":" + target_name + "_config",
340 ":skia_private",
341 ]
342
343 if (!defined(deps)) {
344 deps = []
345 }
346 deps += [ ":skia" ]
347 testonly = true
348 }
349}
350
351test_lib("gpu_tool_utils") {
352 public_include_dirs = [ "tools/gpu" ]
353 sources = [
354 "tools/gpu/GrContextFactory.cpp",
355 "tools/gpu/GrTest.cpp",
356 "tools/gpu/TestContext.cpp",
357 "tools/gpu/gl/GLTestContext.cpp",
358 "tools/gpu/gl/debug/DebugGLTestContext.cpp",
359 "tools/gpu/gl/debug/GrBufferObj.cpp",
360 "tools/gpu/gl/debug/GrFrameBufferObj.cpp",
361 "tools/gpu/gl/debug/GrProgramObj.cpp",
362 "tools/gpu/gl/debug/GrShaderObj.cpp",
363 "tools/gpu/gl/debug/GrTextureObj.cpp",
364 "tools/gpu/gl/debug/GrTextureUnitObj.cpp",
365 "tools/gpu/gl/null/NullGLTestContext.cpp",
366 ]
367 libs = []
368
369 if (is_linux) {
mtklein5259da52016-08-03 08:28:20 -0700370 sources += [
mtklein4db3b792016-08-03 14:18:22 -0700371 "src/gpu/gl/glx/GrGLCreateNativeInterface_glx.cpp",
372 "tools/gpu/gl/glx/CreatePlatformGLTestContext_glx.cpp",
mtklein5259da52016-08-03 08:28:20 -0700373 ]
mtklein25c81d42016-07-27 13:55:26 -0700374 libs += [
375 "GL",
376 "GLU",
377 "X11",
378 ]
379 } else if (is_mac) {
mtklein5259da52016-08-03 08:28:20 -0700380 sources += [
mtklein4db3b792016-08-03 14:18:22 -0700381 "src/gpu/gl/mac/GrGLCreateNativeInterface_mac.cpp",
382 "tools/gpu/gl/mac/CreatePlatformGLTestContext_mac.cpp",
mtklein5259da52016-08-03 08:28:20 -0700383 ]
mtklein25c81d42016-07-27 13:55:26 -0700384 libs += [ "OpenGL.framework" ]
385 }
386}
387
388test_lib("flags") {
389 public_include_dirs = [ "tools/flags" ]
390 sources = [
391 "tools/flags/SkCommandLineFlags.cpp",
392 "tools/flags/SkCommonFlags.cpp",
393 "tools/flags/SkCommonFlagsConfig.cpp",
394 ]
395 deps = [
396 ":gpu_tool_utils",
397 ]
398}
399
400test_lib("tool_utils") {
401 public_include_dirs = [
402 "tools",
mtklein2f3416d2016-08-02 16:02:05 -0700403 "tools/debugger",
mtklein25c81d42016-07-27 13:55:26 -0700404 "tools/timer",
405 ]
406 sources = [
mtklein2b6870c2016-07-28 14:17:33 -0700407 "src/images/SkForceLinking.cpp",
mtklein25c81d42016-07-27 13:55:26 -0700408 "src/utils/SkMultiPictureDocumentReader.cpp", # TODO(halcanary): move to tools?
mtklein2b6870c2016-07-28 14:17:33 -0700409 "tools/CrashHandler.cpp",
mtklein25c81d42016-07-27 13:55:26 -0700410 "tools/ProcStats.cpp",
411 "tools/Resources.cpp",
mtklein2b6870c2016-07-28 14:17:33 -0700412 "tools/ThermalManager.cpp",
mtklein2f3416d2016-08-02 16:02:05 -0700413 "tools/UrlDataManager.cpp",
414 "tools/debugger/SkDebugCanvas.cpp",
415 "tools/debugger/SkDrawCommand.cpp",
416 "tools/debugger/SkJsonWriteBuffer.cpp",
417 "tools/debugger/SkObjectParser.cpp",
418 "tools/debugger/SkOverdrawMode.cpp",
mtklein25c81d42016-07-27 13:55:26 -0700419 "tools/picture_utils.cpp",
420 "tools/random_parse_path.cpp",
421 "tools/sk_tool_utils.cpp",
422 "tools/sk_tool_utils_font.cpp",
423 "tools/timer/Timer.cpp",
424 ]
425 deps = [
426 ":flags",
mtklein2f3416d2016-08-02 16:02:05 -0700427 "//third_party/libpng",
428 ]
429 public_deps = [
430 "//third_party/jsoncpp",
mtklein25c81d42016-07-27 13:55:26 -0700431 ]
432}
433
434gm_sources = exec_script("gyp/find.py",
435 [
mtklein25c81d42016-07-27 13:55:26 -0700436 "*.c*",
mtkleinada5a442016-08-02 14:28:26 -0700437 rebase_path("gm"),
mtklein25c81d42016-07-27 13:55:26 -0700438 ],
439 "list lines",
440 [])
441test_lib("gm") {
442 public_include_dirs = [ "gm" ]
443 sources = gm_sources
444 deps = [
445 ":gpu_tool_utils",
446 ":skia",
447 ":tool_utils",
448 ]
449}
450
mtklein2f3416d2016-08-02 16:02:05 -0700451tests_sources = exec_script("gyp/find.py",
452 [
453 "*.c*",
454 rebase_path("tests"),
455 ],
456 "list lines",
457 [])
458
459test_lib("tests") {
460 public_include_dirs = [ "tests" ]
461 sources = tests_sources - [
462 rebase_path("tests/FontMgrAndroidParserTest.cpp"), # Android only
463 rebase_path("tests/PathOpsSkpClipTest.cpp"), # alternate main
464 rebase_path("tests/RTConfRegistryTest.cpp"), # TODO: delete
mtklein4db3b792016-08-03 14:18:22 -0700465 rebase_path("tests/SkSLErrorTest.cpp"), # TODO: make work
466 rebase_path("tests/SkSLGLSLTest.cpp"), # TODO: make work
mtklein2f3416d2016-08-02 16:02:05 -0700467 rebase_path("tests/SkpSkGrTest.cpp"), # doesn't compile
468 rebase_path("tests/skia_test.cpp"), # alternate main
469 ]
470 deps = [
471 ":flags",
472 ":gpu_tool_utils",
473 ":skia",
474 ":tool_utils",
475 "//third_party/libpng",
476 "//third_party/zlib",
477 ]
478}
479
mtklein2b6870c2016-07-28 14:17:33 -0700480bench_sources = exec_script("gyp/find.py",
481 [
mtklein2b6870c2016-07-28 14:17:33 -0700482 "*.c*",
mtkleinada5a442016-08-02 14:28:26 -0700483 rebase_path("bench"),
mtklein2b6870c2016-07-28 14:17:33 -0700484 ],
485 "list lines",
486 [])
mtklein25c81d42016-07-27 13:55:26 -0700487
mtklein2b6870c2016-07-28 14:17:33 -0700488test_lib("bench") {
489 public_include_dirs = [ "bench" ]
490 sources = bench_sources
491 sources -= [
492 rebase_path("bench/nanobench.cpp"),
493 rebase_path("bench/nanobenchAndroid.cpp"),
494 ]
495 deps = [
496 ":flags",
497 ":gm",
498 ":gpu_tool_utils",
499 ":skia",
500 ":tool_utils",
501 ]
502}
503
504if (!is_component_build) { # Our test tools use many non-SK_API APIs...
505 executable("dm") {
506 sources = [
507 "dm/DM.cpp",
508 "dm/DMJsonWriter.cpp",
509 "dm/DMSrcSink.cpp",
mtklein2b6870c2016-07-28 14:17:33 -0700510 ]
511 include_dirs = [ "tests" ]
512 deps = [
513 ":flags",
514 ":gm",
515 ":gpu_tool_utils",
516 ":skia",
mtklein2f3416d2016-08-02 16:02:05 -0700517 ":tests",
mtklein2b6870c2016-07-28 14:17:33 -0700518 ":tool_utils",
519 "//third_party/jsoncpp",
520 "//third_party/libpng",
521 ]
522 testonly = true
523 }
524
525 executable("monobench") {
526 sources = [
527 "tools/monobench.cpp",
528 ]
529 deps = [
530 ":bench",
531 ":skia",
532 ]
533 testonly = true
534 }
535
536 executable("nanobench") {
537 sources = [
538 "bench/nanobench.cpp",
539 ]
540 deps = [
541 ":bench",
542 ":flags",
543 ":gm",
544 ":gpu_tool_utils",
545 ":skia",
546 ":tool_utils",
547 "//third_party/jsoncpp",
548 ]
549 testonly = true
550 }
halcanary19a97202016-08-03 15:08:04 -0700551
552 executable("sktexttopdf") {
553 sources = [
554 "tools/SkShaper_harfbuzz.cpp",
555 "tools/using_skia_and_harfbuzz.cpp",
556 ]
557 deps = [
558 ":skia",
559 "//third_party/harfbuzz",
560 ]
561 testonly = true
562 }
mtklein25c81d42016-07-27 13:55:26 -0700563}