Let skslc use more of Skia's core

With these changes, SkTArray/SkSTArray can be used.

Change-Id: Ibf9a720086ac4342157a665786afac713d56c300
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/321786
Commit-Queue: Brian Osman <brianosman@google.com>
Reviewed-by: John Stiles <johnstiles@google.com>
Reviewed-by: Mike Klein <mtklein@google.com>
diff --git a/BUILD.gn b/BUILD.gn
index e7a79b9..c48a664 100644
--- a/BUILD.gn
+++ b/BUILD.gn
@@ -552,7 +552,12 @@
 if (skia_compile_processors || skia_compile_sksl_tests) {
   executable("skslc") {
     defines = [ "SKSL_STANDALONE" ]
-    sources = [ "src/sksl/SkSLMain.cpp" ]
+    sources = [
+      "src/core/SkMalloc.cpp",
+      "src/core/SkMath.cpp",
+      "src/ports/SkMemory_malloc.cpp",
+      "src/sksl/SkSLMain.cpp",
+    ]
     sources += skia_sksl_sources
     sources += skia_sksl_gpu_sources
     include_dirs = [ "." ]