blob: 3fae15135debdff18f9e1a3524d4b563c03eb05f [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
68 "TURBO_HAS_565",
69 "TURBO_HAS_CROP",
70 "TURBO_HAS_SKIP",
mtklein150d1132016-08-01 06:56:40 -070071 ]
mtkleinc04ff472016-06-23 10:29:30 -070072}
73
74# Any code that's linked into Skia-the-library should use this config via += skia_library_configs.
75config("skia_library") {
76 visibility = [ ":*" ]
mtkleinc04ff472016-06-23 10:29:30 -070077 defines = [ "SKIA_IMPLEMENTATION=1" ]
78}
79
80skia_library_configs = [
81 ":skia_public",
82 ":skia_private",
83 ":skia_library",
84]
85
mtklein7fbfbbe2016-07-21 12:25:45 -070086core_gypi = exec_script("gn/gypi_to_gn.py",
mtkleinc04ff472016-06-23 10:29:30 -070087 [
88 rebase_path("gyp/core.gypi"),
89 "--replace=<(skia_include_path)=include",
90 "--replace=<(skia_src_path)=src",
91 ],
92 "scope",
93 [ "gyp/core.gypi" ])
94
mtklein7fbfbbe2016-07-21 12:25:45 -070095effects_gypi = exec_script("gn/gypi_to_gn.py",
mtkleinc04ff472016-06-23 10:29:30 -070096 [
97 rebase_path("gyp/effects.gypi"),
98 "--replace=<(skia_include_path)=include",
99 "--replace=<(skia_src_path)=src",
100 ],
101 "scope",
102 [ "gyp/effects.gypi" ])
103
mtklein7fbfbbe2016-07-21 12:25:45 -0700104gpu_gypi = exec_script("gn/gypi_to_gn.py",
mtkleinc04ff472016-06-23 10:29:30 -0700105 [
106 rebase_path("gyp/gpu.gypi"),
107 "--replace=<(skia_include_path)=include",
108 "--replace=<(skia_src_path)=src",
109 ],
110 "scope",
111 [ "gyp/gpu.gypi" ])
112
mtklein7fbfbbe2016-07-21 12:25:45 -0700113opts_gypi = exec_script("gn/gypi_to_gn.py",
mtkleinc04ff472016-06-23 10:29:30 -0700114 [
115 rebase_path("gyp/opts.gypi"),
116 "--replace=<(skia_include_path)=include",
117 "--replace=<(skia_src_path)=src",
118 ],
119 "scope",
120 [ "gyp/opts.gypi" ])
121
mtklein7fbfbbe2016-07-21 12:25:45 -0700122pdf_gypi = exec_script("gn/gypi_to_gn.py",
mtkleinc04ff472016-06-23 10:29:30 -0700123 [
124 rebase_path("gyp/pdf.gypi"),
125 "--replace=<(skia_include_path)=include",
126 "--replace=<(skia_src_path)=src",
127 ],
128 "scope",
129 [ "gyp/pdf.gypi" ])
130
mtklein7fbfbbe2016-07-21 12:25:45 -0700131utils_gypi = exec_script("gn/gypi_to_gn.py",
mtkleinc04ff472016-06-23 10:29:30 -0700132 [
133 rebase_path("gyp/utils.gypi"),
134 "--replace=<(skia_include_path)=include",
135 "--replace=<(skia_src_path)=src",
136 ],
137 "scope",
138 [ "gyp/utils.gypi" ])
139
140source_set("opts_ssse3") {
141 configs += skia_library_configs
mtkleinc04ff472016-06-23 10:29:30 -0700142
143 sources = opts_gypi.ssse3_sources
144 cflags = [ "-mssse3" ]
145}
146
147source_set("opts_sse41") {
148 configs += skia_library_configs
mtkleinc04ff472016-06-23 10:29:30 -0700149
150 sources = opts_gypi.sse41_sources
151 cflags = [ "-msse4.1" ]
152}
153
154source_set("opts_avx") {
155 configs += skia_library_configs
mtkleinc04ff472016-06-23 10:29:30 -0700156
157 sources = opts_gypi.avx_sources
158 cflags = [ "-mavx" ]
159}
160
161component("skia") {
162 public_configs = [ ":skia_public" ]
163 configs += skia_library_configs
mtkleinc04ff472016-06-23 10:29:30 -0700164
165 deps = [
166 ":opts_avx",
167 ":opts_sse41",
168 ":opts_ssse3",
mtklein25c81d42016-07-27 13:55:26 -0700169 "//third_party/expat",
170 "//third_party/giflib",
mtklein7d10b9f2016-07-27 11:17:18 -0700171 "//third_party/libjpeg_turbo",
172 "//third_party/libpng",
mtklein25c81d42016-07-27 13:55:26 -0700173 "//third_party/libwebp",
abarth6fc8ff02016-07-15 15:15:15 -0700174 "//third_party/zlib",
mtkleinc04ff472016-06-23 10:29:30 -0700175 ]
176
mtklein7fbfbbe2016-07-21 12:25:45 -0700177 libs = [ "pthread" ]
mtkleinc04ff472016-06-23 10:29:30 -0700178
179 sources = []
180 sources += core_gypi.sources
181 sources += effects_gypi.sources
182 sources += gpu_gypi.skgpu_sources
183 sources += opts_gypi.sse2_sources
184 sources += pdf_gypi.sources
185 sources += utils_gypi.sources
186 sources += [
mtklein25c81d42016-07-27 13:55:26 -0700187 "src/android/SkBitmapRegionCodec.cpp",
188 "src/android/SkBitmapRegionDecoder.cpp",
189 "src/codec/SkAndroidCodec.cpp",
mtklein1211e0c2016-07-26 13:55:45 -0700190 "src/codec/SkBmpCodec.cpp",
191 "src/codec/SkBmpMaskCodec.cpp",
192 "src/codec/SkBmpRLECodec.cpp",
193 "src/codec/SkBmpStandardCodec.cpp",
194 "src/codec/SkCodec.cpp",
195 "src/codec/SkCodecImageGenerator.cpp",
mtklein25c81d42016-07-27 13:55:26 -0700196 "src/codec/SkGifCodec.cpp",
mtklein1211e0c2016-07-26 13:55:45 -0700197 "src/codec/SkIcoCodec.cpp",
198 "src/codec/SkJpegCodec.cpp",
199 "src/codec/SkJpegDecoderMgr.cpp",
200 "src/codec/SkJpegUtility.cpp",
201 "src/codec/SkMaskSwizzler.cpp",
202 "src/codec/SkMasks.cpp",
203 "src/codec/SkPngCodec.cpp",
mtklein25c81d42016-07-27 13:55:26 -0700204 "src/codec/SkSampledCodec.cpp",
mtklein1211e0c2016-07-26 13:55:45 -0700205 "src/codec/SkSampler.cpp",
206 "src/codec/SkSwizzler.cpp",
207 "src/codec/SkWbmpCodec.cpp",
mtklein25c81d42016-07-27 13:55:26 -0700208 "src/codec/SkWebpAdapterCodec.cpp",
209 "src/codec/SkWebpCodec.cpp",
mtkleinc04ff472016-06-23 10:29:30 -0700210 "src/images/SkImageEncoder.cpp",
211 "src/images/SkImageEncoder_Factory.cpp",
mtklein2b6870c2016-07-28 14:17:33 -0700212 "src/images/SkJPEGImageEncoder.cpp",
213 "src/images/SkJPEGWriteUtility.cpp",
214 "src/images/SkKTXImageEncoder.cpp",
215 "src/images/SkPNGImageEncoder.cpp",
216 "src/images/SkWEBPImageEncoder.cpp",
mtkleinc04ff472016-06-23 10:29:30 -0700217 "src/ports/SkDiscardableMemory_none.cpp",
218 "src/ports/SkGlobalInitialization_default.cpp",
mtklein1211e0c2016-07-26 13:55:45 -0700219 "src/ports/SkImageGenerator_skia.cpp",
mtkleinc04ff472016-06-23 10:29:30 -0700220 "src/ports/SkMemory_malloc.cpp",
221 "src/ports/SkOSFile_stdio.cpp",
222 "src/sfnt/SkOTTable_name.cpp",
223 "src/sfnt/SkOTUtils.cpp",
mtklein25c81d42016-07-27 13:55:26 -0700224 "src/svg/SkSVGCanvas.cpp",
225 "src/svg/SkSVGDevice.cpp",
mtkleinc04ff472016-06-23 10:29:30 -0700226 "src/utils/mac/SkStream_mac.cpp",
mtklein25c81d42016-07-27 13:55:26 -0700227 "src/xml/SkDOM.cpp",
228 "src/xml/SkXMLParser.cpp",
229 "src/xml/SkXMLWriter.cpp",
mtkleinc04ff472016-06-23 10:29:30 -0700230 "third_party/etc1/etc1.cpp",
231 "third_party/ktx/ktx.cpp",
232 ]
233
234 if (is_win) {
235 sources += [
236 "src/ports/SkDebug_win.cpp",
237 "src/ports/SkFontHost_win.cpp",
238 "src/ports/SkFontMgr_win_dw.cpp",
239 "src/ports/SkFontMgr_win_dw_factory.cpp",
240 "src/ports/SkImageEncoder_WIC.cpp",
241 "src/ports/SkImageGeneratorWIC.cpp",
242 "src/ports/SkOSFile_win.cpp",
243 "src/ports/SkScalerContext_win_dw.cpp",
244 "src/ports/SkTLS_win.cpp",
245 "src/ports/SkTypeface_win_dw.cpp",
mtklein25c81d42016-07-27 13:55:26 -0700246 "src/xps/SkDocument_XPS.cpp",
mtkleinc04ff472016-06-23 10:29:30 -0700247 ]
248 } else {
249 sources += [
250 "src/ports/SkDebug_stdio.cpp",
251 "src/ports/SkOSFile_posix.cpp",
252 "src/ports/SkTLS_pthread.cpp",
mtklein25c81d42016-07-27 13:55:26 -0700253 "src/xps/SkDocument_XPS_None.cpp",
mtkleinc04ff472016-06-23 10:29:30 -0700254 ]
255 }
256
257 if (is_linux) {
258 deps += [
259 "third_party:fontconfig",
260 "third_party:freetype2",
mtkleinc04ff472016-06-23 10:29:30 -0700261 ]
262 sources += [
mtkleinc04ff472016-06-23 10:29:30 -0700263 "src/ports/SkFontConfigInterface_direct.cpp",
264 "src/ports/SkFontConfigInterface_direct_factory.cpp",
265 "src/ports/SkFontHost_FreeType.cpp",
266 "src/ports/SkFontHost_FreeType_common.cpp",
bungeman7d0e3bc2016-08-02 07:07:33 -0700267 "src/ports/SkFontMgr_FontConfigInterface.cpp",
mtklein7a34b1c2016-08-01 13:08:46 -0700268 "src/ports/SkFontMgr_fontconfig.cpp",
269 "src/ports/SkFontMgr_fontconfig_factory.cpp",
mtkleinc04ff472016-06-23 10:29:30 -0700270 ]
271 }
272
273 if (is_mac) {
274 sources += [
275 "src/ports/SkFontHost_mac.cpp",
276 "src/ports/SkImageEncoder_CG.cpp",
277 "src/ports/SkImageGeneratorCG.cpp",
278 ]
279 libs += [ "ApplicationServices.framework" ]
280 }
abarth6fc8ff02016-07-15 15:15:15 -0700281
282 if (is_fuchsia) {
mtkleine817ddf2016-07-19 06:03:22 -0700283 sources += [ "src/ports/SkFontMgr_empty_factory.cpp" ]
abarth6fc8ff02016-07-15 15:15:15 -0700284 }
mtkleinc04ff472016-06-23 10:29:30 -0700285}
286
mtkleinada5a442016-08-02 14:28:26 -0700287skia_h_headers = exec_script("gyp/find.py",
288 [ "*.h" ] + rebase_path(skia_public_includes),
289 "list lines",
290 []) -
291 [
292 rebase_path("include/gpu/gl/GrGLConfig_chrome.h"),
293 rebase_path("include/gpu/vk/GrVkBackendContext.h"),
294 rebase_path("include/gpu/vk/GrVkDefines.h"),
295 rebase_path("include/gpu/vk/GrVkInterface.h"),
296 rebase_path("include/gpu/vk/GrVkTypes.h"),
297 rebase_path("include/ports/SkFontMgr_fontconfig.h"),
298 ]
299
mtklein1211e0c2016-07-26 13:55:45 -0700300action("skia.h") {
301 script = "gn/echo_headers.py"
302 args = [ rebase_path("$target_gen_dir/skia.h", root_build_dir) ] +
mtkleinada5a442016-08-02 14:28:26 -0700303 rebase_path(skia_h_headers, root_build_dir)
mtklein1211e0c2016-07-26 13:55:45 -0700304 outputs = [
305 "$target_gen_dir/skia.h",
306 ]
307}
308
309executable("fiddle") {
310 include_dirs = [ "$target_gen_dir" ]
mtklein7d10b9f2016-07-27 11:17:18 -0700311 libs = []
312 if (is_linux) {
313 libs += [ "OSMesa" ]
314 }
mtklein1211e0c2016-07-26 13:55:45 -0700315
mtkleinc04ff472016-06-23 10:29:30 -0700316 sources = [
mtklein1211e0c2016-07-26 13:55:45 -0700317 "tools/fiddle/draw.cpp",
318 "tools/fiddle/fiddle_main.cpp",
mtkleinc04ff472016-06-23 10:29:30 -0700319 ]
320 deps = [
321 ":skia",
mtklein1211e0c2016-07-26 13:55:45 -0700322 ":skia.h",
mtklein5dbd2742016-08-02 11:13:48 -0700323 ":tool_utils",
mtkleinc04ff472016-06-23 10:29:30 -0700324 ]
mtklein5dbd2742016-08-02 11:13:48 -0700325 testonly = true
mtkleinc04ff472016-06-23 10:29:30 -0700326}
mtklein25c81d42016-07-27 13:55:26 -0700327
328template("test_lib") {
329 config(target_name + "_config") {
330 include_dirs = invoker.public_include_dirs
331 }
332 source_set(target_name) {
333 forward_variables_from(invoker, "*", [ "public_include_dirs" ])
334 public_configs = [
335 ":" + target_name + "_config",
336 ":skia_private",
337 ]
338
339 if (!defined(deps)) {
340 deps = []
341 }
342 deps += [ ":skia" ]
343 testonly = true
344 }
345}
346
347test_lib("gpu_tool_utils") {
348 public_include_dirs = [ "tools/gpu" ]
349 sources = [
350 "tools/gpu/GrContextFactory.cpp",
351 "tools/gpu/GrTest.cpp",
352 "tools/gpu/TestContext.cpp",
353 "tools/gpu/gl/GLTestContext.cpp",
354 "tools/gpu/gl/debug/DebugGLTestContext.cpp",
355 "tools/gpu/gl/debug/GrBufferObj.cpp",
356 "tools/gpu/gl/debug/GrFrameBufferObj.cpp",
357 "tools/gpu/gl/debug/GrProgramObj.cpp",
358 "tools/gpu/gl/debug/GrShaderObj.cpp",
359 "tools/gpu/gl/debug/GrTextureObj.cpp",
360 "tools/gpu/gl/debug/GrTextureUnitObj.cpp",
361 "tools/gpu/gl/null/NullGLTestContext.cpp",
362 ]
363 libs = []
364
365 if (is_linux) {
mtklein5259da52016-08-03 08:28:20 -0700366 sources += [
mtklein4db3b792016-08-03 14:18:22 -0700367 "src/gpu/gl/glx/GrGLCreateNativeInterface_glx.cpp",
368 "tools/gpu/gl/glx/CreatePlatformGLTestContext_glx.cpp",
mtklein5259da52016-08-03 08:28:20 -0700369 ]
mtklein25c81d42016-07-27 13:55:26 -0700370 libs += [
371 "GL",
372 "GLU",
373 "X11",
374 ]
375 } else if (is_mac) {
mtklein5259da52016-08-03 08:28:20 -0700376 sources += [
mtklein4db3b792016-08-03 14:18:22 -0700377 "src/gpu/gl/mac/GrGLCreateNativeInterface_mac.cpp",
378 "tools/gpu/gl/mac/CreatePlatformGLTestContext_mac.cpp",
mtklein5259da52016-08-03 08:28:20 -0700379 ]
mtklein25c81d42016-07-27 13:55:26 -0700380 libs += [ "OpenGL.framework" ]
381 }
382}
383
384test_lib("flags") {
385 public_include_dirs = [ "tools/flags" ]
386 sources = [
387 "tools/flags/SkCommandLineFlags.cpp",
388 "tools/flags/SkCommonFlags.cpp",
389 "tools/flags/SkCommonFlagsConfig.cpp",
390 ]
391 deps = [
392 ":gpu_tool_utils",
393 ]
394}
395
396test_lib("tool_utils") {
397 public_include_dirs = [
398 "tools",
mtklein2f3416d2016-08-02 16:02:05 -0700399 "tools/debugger",
mtklein25c81d42016-07-27 13:55:26 -0700400 "tools/timer",
401 ]
402 sources = [
mtklein2b6870c2016-07-28 14:17:33 -0700403 "src/images/SkForceLinking.cpp",
mtklein25c81d42016-07-27 13:55:26 -0700404 "src/utils/SkMultiPictureDocumentReader.cpp", # TODO(halcanary): move to tools?
mtklein2b6870c2016-07-28 14:17:33 -0700405 "tools/CrashHandler.cpp",
mtklein25c81d42016-07-27 13:55:26 -0700406 "tools/ProcStats.cpp",
407 "tools/Resources.cpp",
mtklein2b6870c2016-07-28 14:17:33 -0700408 "tools/ThermalManager.cpp",
mtklein2f3416d2016-08-02 16:02:05 -0700409 "tools/UrlDataManager.cpp",
410 "tools/debugger/SkDebugCanvas.cpp",
411 "tools/debugger/SkDrawCommand.cpp",
412 "tools/debugger/SkJsonWriteBuffer.cpp",
413 "tools/debugger/SkObjectParser.cpp",
414 "tools/debugger/SkOverdrawMode.cpp",
mtklein25c81d42016-07-27 13:55:26 -0700415 "tools/picture_utils.cpp",
416 "tools/random_parse_path.cpp",
417 "tools/sk_tool_utils.cpp",
418 "tools/sk_tool_utils_font.cpp",
419 "tools/timer/Timer.cpp",
420 ]
421 deps = [
422 ":flags",
mtklein2f3416d2016-08-02 16:02:05 -0700423 "//third_party/libpng",
424 ]
425 public_deps = [
426 "//third_party/jsoncpp",
mtklein25c81d42016-07-27 13:55:26 -0700427 ]
428}
429
430gm_sources = exec_script("gyp/find.py",
431 [
mtklein25c81d42016-07-27 13:55:26 -0700432 "*.c*",
mtkleinada5a442016-08-02 14:28:26 -0700433 rebase_path("gm"),
mtklein25c81d42016-07-27 13:55:26 -0700434 ],
435 "list lines",
436 [])
437test_lib("gm") {
438 public_include_dirs = [ "gm" ]
439 sources = gm_sources
440 deps = [
441 ":gpu_tool_utils",
442 ":skia",
443 ":tool_utils",
444 ]
445}
446
mtklein2f3416d2016-08-02 16:02:05 -0700447tests_sources = exec_script("gyp/find.py",
448 [
449 "*.c*",
450 rebase_path("tests"),
451 ],
452 "list lines",
453 [])
454
455test_lib("tests") {
456 public_include_dirs = [ "tests" ]
457 sources = tests_sources - [
458 rebase_path("tests/FontMgrAndroidParserTest.cpp"), # Android only
459 rebase_path("tests/PathOpsSkpClipTest.cpp"), # alternate main
460 rebase_path("tests/RTConfRegistryTest.cpp"), # TODO: delete
mtklein4db3b792016-08-03 14:18:22 -0700461 rebase_path("tests/SkSLErrorTest.cpp"), # TODO: make work
462 rebase_path("tests/SkSLGLSLTest.cpp"), # TODO: make work
mtklein2f3416d2016-08-02 16:02:05 -0700463 rebase_path("tests/SkpSkGrTest.cpp"), # doesn't compile
464 rebase_path("tests/skia_test.cpp"), # alternate main
465 ]
466 deps = [
467 ":flags",
468 ":gpu_tool_utils",
469 ":skia",
470 ":tool_utils",
471 "//third_party/libpng",
472 "//third_party/zlib",
473 ]
474}
475
mtklein2b6870c2016-07-28 14:17:33 -0700476bench_sources = exec_script("gyp/find.py",
477 [
mtklein2b6870c2016-07-28 14:17:33 -0700478 "*.c*",
mtkleinada5a442016-08-02 14:28:26 -0700479 rebase_path("bench"),
mtklein2b6870c2016-07-28 14:17:33 -0700480 ],
481 "list lines",
482 [])
mtklein25c81d42016-07-27 13:55:26 -0700483
mtklein2b6870c2016-07-28 14:17:33 -0700484test_lib("bench") {
485 public_include_dirs = [ "bench" ]
486 sources = bench_sources
487 sources -= [
488 rebase_path("bench/nanobench.cpp"),
489 rebase_path("bench/nanobenchAndroid.cpp"),
490 ]
491 deps = [
492 ":flags",
493 ":gm",
494 ":gpu_tool_utils",
495 ":skia",
496 ":tool_utils",
497 ]
498}
499
500if (!is_component_build) { # Our test tools use many non-SK_API APIs...
501 executable("dm") {
502 sources = [
503 "dm/DM.cpp",
504 "dm/DMJsonWriter.cpp",
505 "dm/DMSrcSink.cpp",
mtklein2b6870c2016-07-28 14:17:33 -0700506 ]
507 include_dirs = [ "tests" ]
508 deps = [
509 ":flags",
510 ":gm",
511 ":gpu_tool_utils",
512 ":skia",
mtklein2f3416d2016-08-02 16:02:05 -0700513 ":tests",
mtklein2b6870c2016-07-28 14:17:33 -0700514 ":tool_utils",
515 "//third_party/jsoncpp",
516 "//third_party/libpng",
517 ]
518 testonly = true
519 }
520
521 executable("monobench") {
522 sources = [
523 "tools/monobench.cpp",
524 ]
525 deps = [
526 ":bench",
527 ":skia",
528 ]
529 testonly = true
530 }
531
532 executable("nanobench") {
533 sources = [
534 "bench/nanobench.cpp",
535 ]
536 deps = [
537 ":bench",
538 ":flags",
539 ":gm",
540 ":gpu_tool_utils",
541 ":skia",
542 ":tool_utils",
543 "//third_party/jsoncpp",
544 ]
545 testonly = true
546 }
mtklein25c81d42016-07-27 13:55:26 -0700547}