| 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 373 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 384 "tools/flags/SkCommonFlagsConfig.cpp", | 384 "tools/flags/SkCommonFlagsConfig.cpp", |
| 385 ] | 385 ] |
| 386 deps = [ | 386 deps = [ |
| 387 ":gpu_tool_utils", | 387 ":gpu_tool_utils", |
| 388 ] | 388 ] |
| 389 } | 389 } |
| 390 | 390 |
| 391 test_lib("tool_utils") { | 391 test_lib("tool_utils") { |
| 392 public_include_dirs = [ | 392 public_include_dirs = [ |
| 393 "tools", | 393 "tools", |
| 394 "tools/debugger", |
| 394 "tools/timer", | 395 "tools/timer", |
| 395 ] | 396 ] |
| 396 sources = [ | 397 sources = [ |
| 397 "src/images/SkForceLinking.cpp", | 398 "src/images/SkForceLinking.cpp", |
| 398 "src/utils/SkMultiPictureDocumentReader.cpp", # TODO(halcanary): move to to
ols? | 399 "src/utils/SkMultiPictureDocumentReader.cpp", # TODO(halcanary): move to to
ols? |
| 399 "tools/CrashHandler.cpp", | 400 "tools/CrashHandler.cpp", |
| 400 "tools/ProcStats.cpp", | 401 "tools/ProcStats.cpp", |
| 401 "tools/Resources.cpp", | 402 "tools/Resources.cpp", |
| 402 "tools/ThermalManager.cpp", | 403 "tools/ThermalManager.cpp", |
| 404 "tools/UrlDataManager.cpp", |
| 405 "tools/debugger/SkDebugCanvas.cpp", |
| 406 "tools/debugger/SkDrawCommand.cpp", |
| 407 "tools/debugger/SkJsonWriteBuffer.cpp", |
| 408 "tools/debugger/SkObjectParser.cpp", |
| 409 "tools/debugger/SkOverdrawMode.cpp", |
| 403 "tools/picture_utils.cpp", | 410 "tools/picture_utils.cpp", |
| 404 "tools/random_parse_path.cpp", | 411 "tools/random_parse_path.cpp", |
| 405 "tools/sk_tool_utils.cpp", | 412 "tools/sk_tool_utils.cpp", |
| 406 "tools/sk_tool_utils_font.cpp", | 413 "tools/sk_tool_utils_font.cpp", |
| 407 "tools/timer/Timer.cpp", | 414 "tools/timer/Timer.cpp", |
| 408 ] | 415 ] |
| 409 deps = [ | 416 deps = [ |
| 410 ":flags", | 417 ":flags", |
| 418 "//third_party/libpng", |
| 419 ] |
| 420 public_deps = [ |
| 421 "//third_party/jsoncpp", |
| 411 ] | 422 ] |
| 412 } | 423 } |
| 413 | 424 |
| 414 gm_sources = exec_script("gyp/find.py", | 425 gm_sources = exec_script("gyp/find.py", |
| 415 [ | 426 [ |
| 416 "*.c*", | 427 "*.c*", |
| 417 rebase_path("gm"), | 428 rebase_path("gm"), |
| 418 ], | 429 ], |
| 419 "list lines", | 430 "list lines", |
| 420 []) | 431 []) |
| 421 test_lib("gm") { | 432 test_lib("gm") { |
| 422 public_include_dirs = [ "gm" ] | 433 public_include_dirs = [ "gm" ] |
| 423 sources = gm_sources | 434 sources = gm_sources |
| 424 deps = [ | 435 deps = [ |
| 425 ":gpu_tool_utils", | 436 ":gpu_tool_utils", |
| 426 ":skia", | 437 ":skia", |
| 427 ":tool_utils", | 438 ":tool_utils", |
| 428 ] | 439 ] |
| 429 } | 440 } |
| 430 | 441 |
| 442 tests_sources = exec_script("gyp/find.py", |
| 443 [ |
| 444 "*.c*", |
| 445 rebase_path("tests"), |
| 446 ], |
| 447 "list lines", |
| 448 []) |
| 449 |
| 450 test_lib("tests") { |
| 451 public_include_dirs = [ "tests" ] |
| 452 sources = tests_sources - [ |
| 453 rebase_path("tests/FontMgrAndroidParserTest.cpp"), # Android only |
| 454 rebase_path("tests/PathOpsSkpClipTest.cpp"), # alternate main |
| 455 rebase_path("tests/RTConfRegistryTest.cpp"), # TODO: delete |
| 456 rebase_path("tests/SkSLErrorTest.cpp"), # TODO: make work |
| 457 rebase_path("tests/SkpSkGrTest.cpp"), # doesn't compile |
| 458 rebase_path("tests/skia_test.cpp"), # alternate main |
| 459 ] |
| 460 deps = [ |
| 461 ":flags", |
| 462 ":gpu_tool_utils", |
| 463 ":skia", |
| 464 ":tool_utils", |
| 465 "//third_party/libpng", |
| 466 "//third_party/zlib", |
| 467 ] |
| 468 } |
| 469 |
| 431 bench_sources = exec_script("gyp/find.py", | 470 bench_sources = exec_script("gyp/find.py", |
| 432 [ | 471 [ |
| 433 "*.c*", | 472 "*.c*", |
| 434 rebase_path("bench"), | 473 rebase_path("bench"), |
| 435 ], | 474 ], |
| 436 "list lines", | 475 "list lines", |
| 437 []) | 476 []) |
| 438 | 477 |
| 439 test_lib("bench") { | 478 test_lib("bench") { |
| 440 public_include_dirs = [ "bench" ] | 479 public_include_dirs = [ "bench" ] |
| (...skipping 10 matching lines...) Expand all Loading... |
| 451 ":tool_utils", | 490 ":tool_utils", |
| 452 ] | 491 ] |
| 453 } | 492 } |
| 454 | 493 |
| 455 if (!is_component_build) { # Our test tools use many non-SK_API APIs... | 494 if (!is_component_build) { # Our test tools use many non-SK_API APIs... |
| 456 executable("dm") { | 495 executable("dm") { |
| 457 sources = [ | 496 sources = [ |
| 458 "dm/DM.cpp", | 497 "dm/DM.cpp", |
| 459 "dm/DMJsonWriter.cpp", | 498 "dm/DMJsonWriter.cpp", |
| 460 "dm/DMSrcSink.cpp", | 499 "dm/DMSrcSink.cpp", |
| 461 | |
| 462 # TODO: tests for real | |
| 463 "tests/Test.cpp", | |
| 464 ] | 500 ] |
| 465 include_dirs = [ "tests" ] | 501 include_dirs = [ "tests" ] |
| 466 deps = [ | 502 deps = [ |
| 467 ":flags", | 503 ":flags", |
| 468 ":gm", | 504 ":gm", |
| 469 ":gpu_tool_utils", | 505 ":gpu_tool_utils", |
| 470 ":skia", | 506 ":skia", |
| 507 ":tests", |
| 471 ":tool_utils", | 508 ":tool_utils", |
| 472 "//third_party/jsoncpp", | 509 "//third_party/jsoncpp", |
| 473 "//third_party/libpng", | 510 "//third_party/libpng", |
| 474 ] | 511 ] |
| 475 testonly = true | 512 testonly = true |
| 476 } | 513 } |
| 477 | 514 |
| 478 executable("monobench") { | 515 executable("monobench") { |
| 479 sources = [ | 516 sources = [ |
| 480 "tools/monobench.cpp", | 517 "tools/monobench.cpp", |
| (...skipping 14 matching lines...) Expand all Loading... |
| 495 ":flags", | 532 ":flags", |
| 496 ":gm", | 533 ":gm", |
| 497 ":gpu_tool_utils", | 534 ":gpu_tool_utils", |
| 498 ":skia", | 535 ":skia", |
| 499 ":tool_utils", | 536 ":tool_utils", |
| 500 "//third_party/jsoncpp", | 537 "//third_party/jsoncpp", |
| 501 ] | 538 ] |
| 502 testonly = true | 539 testonly = true |
| 503 } | 540 } |
| 504 } | 541 } |
| OLD | NEW |