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

Unified Diff: BUILD.gn

Issue 2203143002: GN: add tests to DM (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Headers use json -> public_deps 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | tests/ImageTest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: BUILD.gn
diff --git a/BUILD.gn b/BUILD.gn
index 5ac22ad2cd6793be801e6b49b46cbe0179fa6b3a..3c5251e4e672d44e2d72b65108217493d99458c2 100644
--- a/BUILD.gn
+++ b/BUILD.gn
@@ -391,6 +391,7 @@ test_lib("flags") {
test_lib("tool_utils") {
public_include_dirs = [
"tools",
+ "tools/debugger",
"tools/timer",
]
sources = [
@@ -400,6 +401,12 @@ test_lib("tool_utils") {
"tools/ProcStats.cpp",
"tools/Resources.cpp",
"tools/ThermalManager.cpp",
+ "tools/UrlDataManager.cpp",
+ "tools/debugger/SkDebugCanvas.cpp",
+ "tools/debugger/SkDrawCommand.cpp",
+ "tools/debugger/SkJsonWriteBuffer.cpp",
+ "tools/debugger/SkObjectParser.cpp",
+ "tools/debugger/SkOverdrawMode.cpp",
"tools/picture_utils.cpp",
"tools/random_parse_path.cpp",
"tools/sk_tool_utils.cpp",
@@ -408,6 +415,10 @@ test_lib("tool_utils") {
]
deps = [
":flags",
+ "//third_party/libpng",
+ ]
+ public_deps = [
+ "//third_party/jsoncpp",
]
}
@@ -428,6 +439,34 @@ test_lib("gm") {
]
}
+tests_sources = exec_script("gyp/find.py",
+ [
+ "*.c*",
+ rebase_path("tests"),
+ ],
+ "list lines",
+ [])
+
+test_lib("tests") {
+ public_include_dirs = [ "tests" ]
+ sources = tests_sources - [
+ rebase_path("tests/FontMgrAndroidParserTest.cpp"), # Android only
+ rebase_path("tests/PathOpsSkpClipTest.cpp"), # alternate main
+ rebase_path("tests/RTConfRegistryTest.cpp"), # TODO: delete
+ rebase_path("tests/SkSLErrorTest.cpp"), # TODO: make work
+ rebase_path("tests/SkpSkGrTest.cpp"), # doesn't compile
+ rebase_path("tests/skia_test.cpp"), # alternate main
+ ]
+ deps = [
+ ":flags",
+ ":gpu_tool_utils",
+ ":skia",
+ ":tool_utils",
+ "//third_party/libpng",
+ "//third_party/zlib",
+ ]
+}
+
bench_sources = exec_script("gyp/find.py",
[
"*.c*",
@@ -458,9 +497,6 @@ if (!is_component_build) { # Our test tools use many non-SK_API APIs...
"dm/DM.cpp",
"dm/DMJsonWriter.cpp",
"dm/DMSrcSink.cpp",
-
- # TODO: tests for real
- "tests/Test.cpp",
]
include_dirs = [ "tests" ]
deps = [
@@ -468,6 +504,7 @@ if (!is_component_build) { # Our test tools use many non-SK_API APIs...
":gm",
":gpu_tool_utils",
":skia",
+ ":tests",
":tool_utils",
"//third_party/jsoncpp",
"//third_party/libpng",
« no previous file with comments | « no previous file | tests/ImageTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698