sksl enum support

Bug: skia:
Change-Id: I4d505b31cf8b59de12bcdbca410aafc085977ba9
Reviewed-on: https://skia-review.googlesource.com/68621
Reviewed-by: Brian Salomon <bsalomon@google.com>
Commit-Queue: Ethan Nicholas <ethannicholas@google.com>
diff --git a/BUILD.gn b/BUILD.gn
index dcecf21..bd3e9b8 100644
--- a/BUILD.gn
+++ b/BUILD.gn
@@ -461,6 +461,7 @@
       "src/sksl",
     ]
     deps = [
+      ":run_sksllex",
       "//third_party/spirv-tools",
     ]
   }
@@ -479,9 +480,25 @@
     ]
   }
 
+  action("create_sksl_enums") {
+    script = "gn/create_sksl_enums.py"
+    sources = [
+      "include/private/GrSharedEnums.h",
+    ]
+    outputs = [
+      "$target_out_dir/" +
+          rebase_path("src/sksl/sksl_enums.include", target_out_dir),
+    ]
+    args = [
+      rebase_path(sources[0]),
+      rebase_path(outputs[0]),
+    ]
+  }
+
   action("compile_processors") {
     script = "gn/compile_processors.py"
     deps = [
+      ":create_sksl_enums",
       ":skslc(//gn/toolchain:$host_toolchain)",
     ]
     sources = skia_gpu_processor_sources