Make commandline flags nicer for fuzz executable
This cleans up the build so commandline flags defined in tools/*.cpp
don't get globbed into the fuzzer's.
Bug: skia:
Change-Id: I5994aa5bf75686641baf0cf97fd81141f0ac6f3a
Reviewed-on: https://skia-review.googlesource.com/92680
Commit-Queue: Kevin Lubick <kjlubick@google.com>
Reviewed-by: Mike Klein <mtklein@google.com>
diff --git a/BUILD.gn b/BUILD.gn
index 64792d2..b6b768c 100644
--- a/BUILD.gn
+++ b/BUILD.gn
@@ -1686,6 +1686,10 @@
}
test_app("fuzz") {
+ include_dirs = [
+ "tools",
+ "tools/debugger",
+ ]
sources = [
"fuzz/FilterFuzz.cpp",
"fuzz/FuzzCanvas.cpp",
@@ -1695,12 +1699,19 @@
"fuzz/FuzzPathop.cpp",
"fuzz/FuzzScaleToSides.cpp",
"fuzz/fuzz.cpp",
+ "tools/UrlDataManager.cpp",
+ "tools/debugger/SkDebugCanvas.cpp",
+ "tools/debugger/SkDrawCommand.cpp",
+ "tools/debugger/SkJsonWriteBuffer.cpp",
+ "tools/debugger/SkObjectParser.cpp",
+ "tools/picture_utils.cpp",
]
deps = [
":flags",
":gpu_tool_utils",
":skia",
- ":tool_utils",
+ "//third_party/jsoncpp",
+ "//third_party/libpng",
]
}