OLD | NEW |
---|---|
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 360 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
371 "tools/flags/SkCommonFlagsConfig.cpp", | 371 "tools/flags/SkCommonFlagsConfig.cpp", |
372 ] | 372 ] |
373 deps = [ | 373 deps = [ |
374 ":gpu_tool_utils", | 374 ":gpu_tool_utils", |
375 ] | 375 ] |
376 } | 376 } |
377 | 377 |
378 test_lib("tool_utils") { | 378 test_lib("tool_utils") { |
379 public_include_dirs = [ | 379 public_include_dirs = [ |
380 "tools", | 380 "tools", |
381 "tools/debugger", | |
381 "tools/timer", | 382 "tools/timer", |
382 ] | 383 ] |
383 sources = [ | 384 sources = [ |
384 "src/images/SkForceLinking.cpp", | 385 "src/images/SkForceLinking.cpp", |
385 "src/utils/SkMultiPictureDocumentReader.cpp", # TODO(halcanary): move to to ols? | 386 "src/utils/SkMultiPictureDocumentReader.cpp", # TODO(halcanary): move to to ols? |
386 "tools/CrashHandler.cpp", | 387 "tools/CrashHandler.cpp", |
387 "tools/ProcStats.cpp", | 388 "tools/ProcStats.cpp", |
388 "tools/Resources.cpp", | 389 "tools/Resources.cpp", |
389 "tools/ThermalManager.cpp", | 390 "tools/ThermalManager.cpp", |
391 "tools/UrlDataManager.cpp", | |
392 "tools/debugger/SkDebugCanvas.cpp", | |
393 "tools/debugger/SkDrawCommand.cpp", | |
394 "tools/debugger/SkJsonWriteBuffer.cpp", | |
395 "tools/debugger/SkObjectParser.cpp", | |
396 "tools/debugger/SkOverdrawMode.cpp", | |
390 "tools/picture_utils.cpp", | 397 "tools/picture_utils.cpp", |
391 "tools/random_parse_path.cpp", | 398 "tools/random_parse_path.cpp", |
392 "tools/sk_tool_utils.cpp", | 399 "tools/sk_tool_utils.cpp", |
393 "tools/sk_tool_utils_font.cpp", | 400 "tools/sk_tool_utils_font.cpp", |
394 "tools/timer/Timer.cpp", | 401 "tools/timer/Timer.cpp", |
395 ] | 402 ] |
396 deps = [ | 403 deps = [ |
397 ":flags", | 404 ":flags", |
405 "//third_party/libpng", | |
398 ] | 406 ] |
399 } | 407 } |
400 | 408 |
401 gm_sources = exec_script("gyp/find.py", | 409 gm_sources = exec_script("gyp/find.py", |
402 [ | 410 [ |
403 rebase_path("gm"), | 411 rebase_path("gm"), |
404 "*.c*", | 412 "*.c*", |
405 ], | 413 ], |
406 "list lines", | 414 "list lines", |
407 []) | 415 []) |
408 test_lib("gm") { | 416 test_lib("gm") { |
409 public_include_dirs = [ "gm" ] | 417 public_include_dirs = [ "gm" ] |
410 sources = gm_sources | 418 sources = gm_sources |
411 deps = [ | 419 deps = [ |
412 ":gpu_tool_utils", | 420 ":gpu_tool_utils", |
413 ":skia", | 421 ":skia", |
414 ":tool_utils", | 422 ":tool_utils", |
415 ] | 423 ] |
416 } | 424 } |
417 | 425 |
426 tests_sources = exec_script("gyp/find.py", | |
jcgregorio
2016/08/02 19:58:04
Are we going to have the same problem here, i.e. a
| |
427 [ | |
428 rebase_path("tests"), | |
429 "*.c*", | |
430 ], | |
431 "list lines", | |
432 []) | |
433 | |
434 test_lib("tests") { | |
435 public_include_dirs = [ "tests" ] | |
436 sources = tests_sources - [ | |
437 rebase_path("tests/FontMgrAndroidParserTest.cpp"), # Android only | |
438 rebase_path("tests/PathOpsSkpClipTest.cpp"), # alternate main | |
439 rebase_path("tests/RTConfRegistryTest.cpp"), # TODO: delete | |
440 rebase_path("tests/SkSLErrorTest.cpp"), # TODO: make work | |
441 rebase_path("tests/SkpSkGrTest.cpp"), # doesn't compile | |
442 rebase_path("tests/skia_test.cpp"), # alternate main | |
443 ] | |
444 deps = [ | |
445 ":flags", | |
446 ":gpu_tool_utils", | |
447 ":skia", | |
448 ":tool_utils", | |
449 "//third_party/libpng", | |
450 "//third_party/zlib", | |
451 ] | |
452 } | |
453 | |
418 bench_sources = exec_script("gyp/find.py", | 454 bench_sources = exec_script("gyp/find.py", |
419 [ | 455 [ |
420 rebase_path("bench"), | 456 rebase_path("bench"), |
421 "*.c*", | 457 "*.c*", |
422 ], | 458 ], |
423 "list lines", | 459 "list lines", |
424 []) | 460 []) |
425 | 461 |
426 test_lib("bench") { | 462 test_lib("bench") { |
427 public_include_dirs = [ "bench" ] | 463 public_include_dirs = [ "bench" ] |
(...skipping 10 matching lines...) Expand all Loading... | |
438 ":tool_utils", | 474 ":tool_utils", |
439 ] | 475 ] |
440 } | 476 } |
441 | 477 |
442 if (!is_component_build) { # Our test tools use many non-SK_API APIs... | 478 if (!is_component_build) { # Our test tools use many non-SK_API APIs... |
443 executable("dm") { | 479 executable("dm") { |
444 sources = [ | 480 sources = [ |
445 "dm/DM.cpp", | 481 "dm/DM.cpp", |
446 "dm/DMJsonWriter.cpp", | 482 "dm/DMJsonWriter.cpp", |
447 "dm/DMSrcSink.cpp", | 483 "dm/DMSrcSink.cpp", |
448 | |
449 # TODO: tests for real | |
450 "tests/Test.cpp", | |
451 ] | 484 ] |
452 include_dirs = [ "tests" ] | 485 include_dirs = [ "tests" ] |
453 deps = [ | 486 deps = [ |
454 ":flags", | 487 ":flags", |
455 ":gm", | 488 ":gm", |
456 ":gpu_tool_utils", | 489 ":gpu_tool_utils", |
457 ":skia", | 490 ":skia", |
491 ":tests", | |
458 ":tool_utils", | 492 ":tool_utils", |
459 "//third_party/jsoncpp", | 493 "//third_party/jsoncpp", |
460 "//third_party/libpng", | 494 "//third_party/libpng", |
461 ] | 495 ] |
462 testonly = true | 496 testonly = true |
463 } | 497 } |
464 | 498 |
465 executable("monobench") { | 499 executable("monobench") { |
466 sources = [ | 500 sources = [ |
467 "tools/monobench.cpp", | 501 "tools/monobench.cpp", |
(...skipping 14 matching lines...) Expand all Loading... | |
482 ":flags", | 516 ":flags", |
483 ":gm", | 517 ":gm", |
484 ":gpu_tool_utils", | 518 ":gpu_tool_utils", |
485 ":skia", | 519 ":skia", |
486 ":tool_utils", | 520 ":tool_utils", |
487 "//third_party/jsoncpp", | 521 "//third_party/jsoncpp", |
488 ] | 522 ] |
489 testonly = true | 523 testonly = true |
490 } | 524 } |
491 } | 525 } |
OLD | NEW |