| Index: BUILD.gn
|
| diff --git a/BUILD.gn b/BUILD.gn
|
| index 794a375b05220152d85c6b11b6b7311091dcd9b9..7459fb0809245042d4d21bbe7163a51ab4b0da3a 100644
|
| --- a/BUILD.gn
|
| +++ b/BUILD.gn
|
| @@ -400,24 +400,26 @@ test_lib("gm") {
|
| ]
|
| }
|
|
|
| -executable("dm") {
|
| - sources = [
|
| - "dm/DM.cpp",
|
| - "dm/DMJsonWriter.cpp",
|
| - "dm/DMSrcSink.cpp",
|
| -
|
| - # TODO: tests for real
|
| - "tests/Test.cpp",
|
| - ]
|
| - include_dirs = [ "tests" ]
|
| - deps = [
|
| - ":flags",
|
| - ":gm",
|
| - ":gpu_tool_utils",
|
| - ":skia",
|
| - ":tool_utils",
|
| - "//third_party/jsoncpp",
|
| - "//third_party/libpng",
|
| - ]
|
| - testonly = true
|
| +if (!is_component_build) { # DM uses many non-SK_API APIs...
|
| + executable("dm") {
|
| + sources = [
|
| + "dm/DM.cpp",
|
| + "dm/DMJsonWriter.cpp",
|
| + "dm/DMSrcSink.cpp",
|
| +
|
| + # TODO: tests for real
|
| + "tests/Test.cpp",
|
| + ]
|
| + include_dirs = [ "tests" ]
|
| + deps = [
|
| + ":flags",
|
| + ":gm",
|
| + ":gpu_tool_utils",
|
| + ":skia",
|
| + ":tool_utils",
|
| + "//third_party/jsoncpp",
|
| + "//third_party/libpng",
|
| + ]
|
| + testonly = true
|
| + }
|
| }
|
|
|