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

Side by Side Diff: BUILD.gn

Issue 2193513002: GN: nanobench (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: trim mips 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 | third_party/libwebp/BUILD.gn » ('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 = [ 9 skia_public_includes = [
10 "include/android", 10 "include/android",
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 "src/core", 42 "src/core",
43 "src/effects", 43 "src/effects",
44 "src/effects/gradients", 44 "src/effects/gradients",
45 "src/fonts", 45 "src/fonts",
46 "src/gpu", 46 "src/gpu",
47 "src/image", 47 "src/image",
48 "src/images", 48 "src/images",
49 "src/lazy", 49 "src/lazy",
50 "src/opts", 50 "src/opts",
51 "src/pathops", 51 "src/pathops",
52 "src/pdf",
52 "src/ports", 53 "src/ports",
53 "src/sfnt", 54 "src/sfnt",
54 "src/utils", 55 "src/utils",
55 "third_party/etc1", 56 "third_party/etc1",
56 "third_party/ktx", 57 "third_party/ktx",
57 ] 58 ]
58 } 59 }
59 60
60 # Any code that's linked into Skia-the-library should use this config via += ski a_library_configs. 61 # Any code that's linked into Skia-the-library should use this config via += ski a_library_configs.
61 config("skia_library") { 62 config("skia_library") {
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
195 "src/codec/SkMasks.cpp", 196 "src/codec/SkMasks.cpp",
196 "src/codec/SkPngCodec.cpp", 197 "src/codec/SkPngCodec.cpp",
197 "src/codec/SkSampledCodec.cpp", 198 "src/codec/SkSampledCodec.cpp",
198 "src/codec/SkSampler.cpp", 199 "src/codec/SkSampler.cpp",
199 "src/codec/SkSwizzler.cpp", 200 "src/codec/SkSwizzler.cpp",
200 "src/codec/SkWbmpCodec.cpp", 201 "src/codec/SkWbmpCodec.cpp",
201 "src/codec/SkWebpAdapterCodec.cpp", 202 "src/codec/SkWebpAdapterCodec.cpp",
202 "src/codec/SkWebpCodec.cpp", 203 "src/codec/SkWebpCodec.cpp",
203 "src/images/SkImageEncoder.cpp", 204 "src/images/SkImageEncoder.cpp",
204 "src/images/SkImageEncoder_Factory.cpp", 205 "src/images/SkImageEncoder_Factory.cpp",
206 "src/images/SkJPEGImageEncoder.cpp",
207 "src/images/SkJPEGWriteUtility.cpp",
208 "src/images/SkKTXImageEncoder.cpp",
209 "src/images/SkPNGImageEncoder.cpp",
210 "src/images/SkWEBPImageEncoder.cpp",
205 "src/ports/SkDiscardableMemory_none.cpp", 211 "src/ports/SkDiscardableMemory_none.cpp",
206 "src/ports/SkGlobalInitialization_default.cpp", 212 "src/ports/SkGlobalInitialization_default.cpp",
207 "src/ports/SkImageGenerator_skia.cpp", 213 "src/ports/SkImageGenerator_skia.cpp",
208 "src/ports/SkMemory_malloc.cpp", 214 "src/ports/SkMemory_malloc.cpp",
209 "src/ports/SkOSFile_stdio.cpp", 215 "src/ports/SkOSFile_stdio.cpp",
210 "src/sfnt/SkOTTable_name.cpp", 216 "src/sfnt/SkOTTable_name.cpp",
211 "src/sfnt/SkOTUtils.cpp", 217 "src/sfnt/SkOTUtils.cpp",
212 "src/svg/SkSVGCanvas.cpp", 218 "src/svg/SkSVGCanvas.cpp",
213 "src/svg/SkSVGDevice.cpp", 219 "src/svg/SkSVGDevice.cpp",
214 "src/utils/mac/SkStream_mac.cpp", 220 "src/utils/mac/SkStream_mac.cpp",
(...skipping 27 matching lines...) Expand all
242 ] 248 ]
243 } 249 }
244 250
245 if (is_linux) { 251 if (is_linux) {
246 deps += [ 252 deps += [
247 "third_party:fontconfig", 253 "third_party:fontconfig",
248 "third_party:freetype2", 254 "third_party:freetype2",
249 ] 255 ]
250 sources += [ 256 sources += [
251 "src/fonts/SkFontMgr_fontconfig.cpp", 257 "src/fonts/SkFontMgr_fontconfig.cpp",
252 "src/images/SkJPEGImageEncoder.cpp",
253 "src/images/SkJPEGWriteUtility.cpp",
254 "src/images/SkPNGImageEncoder.cpp",
255 "src/ports/SkFontConfigInterface_direct.cpp", 258 "src/ports/SkFontConfigInterface_direct.cpp",
256 "src/ports/SkFontConfigInterface_direct_factory.cpp", 259 "src/ports/SkFontConfigInterface_direct_factory.cpp",
257 "src/ports/SkFontHost_FreeType.cpp", 260 "src/ports/SkFontHost_FreeType.cpp",
258 "src/ports/SkFontHost_FreeType_common.cpp", 261 "src/ports/SkFontHost_FreeType_common.cpp",
259 "src/ports/SkFontHost_fontconfig.cpp", 262 "src/ports/SkFontHost_fontconfig.cpp",
260 ] 263 ]
261 } 264 }
262 265
263 if (is_mac) { 266 if (is_mac) {
264 sources += [ 267 sources += [
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
361 ":gpu_tool_utils", 364 ":gpu_tool_utils",
362 ] 365 ]
363 } 366 }
364 367
365 test_lib("tool_utils") { 368 test_lib("tool_utils") {
366 public_include_dirs = [ 369 public_include_dirs = [
367 "tools", 370 "tools",
368 "tools/timer", 371 "tools/timer",
369 ] 372 ]
370 sources = [ 373 sources = [
374 "src/images/SkForceLinking.cpp",
371 "src/utils/SkMultiPictureDocumentReader.cpp", # TODO(halcanary): move to to ols? 375 "src/utils/SkMultiPictureDocumentReader.cpp", # TODO(halcanary): move to to ols?
376 "tools/CrashHandler.cpp",
372 "tools/ProcStats.cpp", 377 "tools/ProcStats.cpp",
373 "tools/Resources.cpp", 378 "tools/Resources.cpp",
379 "tools/ThermalManager.cpp",
374 "tools/picture_utils.cpp", 380 "tools/picture_utils.cpp",
375 "tools/random_parse_path.cpp", 381 "tools/random_parse_path.cpp",
376 "tools/sk_tool_utils.cpp", 382 "tools/sk_tool_utils.cpp",
377 "tools/sk_tool_utils_font.cpp", 383 "tools/sk_tool_utils_font.cpp",
378 "tools/timer/Timer.cpp", 384 "tools/timer/Timer.cpp",
379 ] 385 ]
380 deps = [ 386 deps = [
381 ":flags", 387 ":flags",
382 ] 388 ]
383 } 389 }
384 390
385 gm_sources = exec_script("gyp/find.py", 391 gm_sources = exec_script("gyp/find.py",
386 [ 392 [
387 rebase_path("gm"), 393 rebase_path("gm"),
388 "*.c*", 394 "*.c*",
389 ], 395 ],
390 "list lines", 396 "list lines",
391 []) 397 [])
392 test_lib("gm") { 398 test_lib("gm") {
393 public_include_dirs = [ "gm" ] 399 public_include_dirs = [ "gm" ]
394 sources = gm_sources 400 sources = gm_sources
395 deps = [ 401 deps = [
396 ":gpu_tool_utils", 402 ":gpu_tool_utils",
397 ":skia", 403 ":skia",
398 ":tool_utils", 404 ":tool_utils",
399 ] 405 ]
400 } 406 }
401 407
402 if (!is_component_build) { # DM uses many non-SK_API APIs... 408 bench_sources = exec_script("gyp/find.py",
403 executable("dm") { 409 [
404 sources = [ 410 rebase_path("bench"),
405 "dm/DM.cpp", 411 "*.c*",
406 "dm/DMJsonWriter.cpp", 412 ],
407 "dm/DMSrcSink.cpp", 413 "list lines",
414 [])
408 415
409 # TODO: tests for real 416 test_lib("bench") {
410 "tests/Test.cpp", 417 public_include_dirs = [ "bench" ]
411 ] 418 sources = bench_sources
412 include_dirs = [ "tests" ] 419 sources -= [
413 deps = [ 420 rebase_path("bench/nanobench.cpp"),
414 ":flags", 421 rebase_path("bench/nanobenchAndroid.cpp"),
415 ":gm", 422 ]
416 ":gpu_tool_utils", 423 deps = [
417 ":skia", 424 ":flags",
418 ":tool_utils", 425 ":gm",
419 "//third_party/jsoncpp", 426 ":gpu_tool_utils",
420 "//third_party/libpng", 427 ":skia",
421 ] 428 ":tool_utils",
422 testonly = true 429 ]
423 }
424 } 430 }
431
432 if (!is_component_build) { # Our test tools use many non-SK_API APIs...
433 executable("dm") {
434 sources = [
435 "dm/DM.cpp",
436 "dm/DMJsonWriter.cpp",
437 "dm/DMSrcSink.cpp",
438
439 # TODO: tests for real
440 "tests/Test.cpp",
441 ]
442 include_dirs = [ "tests" ]
443 deps = [
444 ":flags",
445 ":gm",
446 ":gpu_tool_utils",
447 ":skia",
448 ":tool_utils",
449 "//third_party/jsoncpp",
450 "//third_party/libpng",
451 ]
452 testonly = true
453 }
454
455 executable("monobench") {
456 sources = [
457 "tools/monobench.cpp",
458 ]
459 deps = [
460 ":bench",
461 ":skia",
462 ]
463 testonly = true
464 }
465
466 executable("nanobench") {
467 sources = [
468 "bench/nanobench.cpp",
469 ]
470 deps = [
471 ":bench",
472 ":flags",
473 ":gm",
474 ":gpu_tool_utils",
475 ":skia",
476 ":tool_utils",
477 "//third_party/jsoncpp",
478 ]
479 testonly = true
480 }
481 }
OLDNEW
« no previous file with comments | « no previous file | third_party/libwebp/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698