Make SkShaper's GN setup more DLL friendly

Similar to the Skottie refactor that just landed, this avoids having an
empty component when shaper is disabled (which turns into a DLL with no
sources, and a missing DllMain). I think this pattern of having modules
expose the same components as empty groups is simpler (and also fixes
the fact that only two of N references in top-level BUILD.gn were
guarded). Also, no one is using the define?

Change-Id: I9d25c1cfbd42336874f4428bf61f3e34a4a18d3c
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/207303
Reviewed-by: Mike Klein <mtklein@google.com>
Commit-Queue: Brian Osman <brianosman@google.com>
diff --git a/BUILD.gn b/BUILD.gn
index 254f6e2..9faf14d 100644
--- a/BUILD.gn
+++ b/BUILD.gn
@@ -1679,14 +1679,11 @@
       "modules/skottie",
       "modules/skottie:gm",
       "modules/sksg",
+      "modules/skshaper",
     ]
     public_deps = [
       ":gpu_tool_utils",
     ]
-    if (skia_enable_skshaper) {
-      deps += [ "modules/skshaper" ]
-      defines = [ "SK_USING_SKSHAPER" ]
-    }
   }
 
   import("gn/tests.gni")
@@ -1706,6 +1703,7 @@
       ":tool_utils",
       "modules/skottie:tests",
       "modules/sksg:tests",
+      "modules/skshaper",
       "//third_party/libpng",
       "//third_party/libwebp",
       "//third_party/zlib",
@@ -1713,10 +1711,6 @@
     public_deps = [
       ":gpu_tool_utils",  # Test.h #includes headers from this target.
     ]
-    if (skia_enable_skshaper) {
-      deps += [ "modules/skshaper" ]
-      defines = [ "SK_USING_SKSHAPER" ]
-    }
   }
 
   import("gn/bench.gni")
@@ -2341,9 +2335,9 @@
   if (!skia_use_vulkan && (is_mac || is_linux || is_win)) {
     test_app("fiddle_examples") {
       sources = [
+        "tools/fiddle/all_examples.cpp",
         "tools/fiddle/examples.cpp",
         "tools/fiddle/examples.h",
-        "tools/fiddle/all_examples.cpp",
       ]
       include_dirs = [ "tools" ]
       if (is_win) {