Add GYP target for sk_tool_utils.* component.
This declares a static library target in gyp/sk_tool_utils.gyp, so other
targets can depend directly on it instead of including the source file
in their source lists.
BUG=None
TEST=make all
R=mtklein@google.com
Author: tfarina@chromium.org
Review URL: https://codereview.chromium.org/348623006
diff --git a/tools/sk_tool_utils.cpp b/tools/sk_tool_utils.cpp
index 3eb5555..c75c496 100644
--- a/tools/sk_tool_utils.cpp
+++ b/tools/sk_tool_utils.cpp
@@ -1,5 +1,15 @@
+/*
+ * Copyright 2014 Google Inc.
+ *
+ * Use of this source code is governed by a BSD-style license that can be
+ * found in the LICENSE file.
+ */
+
#include "sk_tool_utils.h"
+#include "SkBitmap.h"
+#include "SkCanvas.h"
+
namespace sk_tool_utils {
const char* colortype_name(SkColorType ct) {
@@ -29,4 +39,4 @@
canvas->writePixels(info, tmp.getPixels(), tmp.rowBytes(), x, y);
}
-}
+} // namespace sk_tool_utils