Move cpu_modules inside skia_enable_tools

Skia clients shouldn't have to worry about this

Change-Id: I3a1cc191a7d4da88cf23a59cb3043cfb8b868f2c
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/229382
Reviewed-by: Mike Klein <mtklein@google.com>
Commit-Queue: Brian Osman <brianosman@google.com>
diff --git a/BUILD.gn b/BUILD.gn
index 22ead6c..07bdbc2 100644
--- a/BUILD.gn
+++ b/BUILD.gn
@@ -1182,16 +1182,6 @@
   ]
 }
 
-executable("cpu_modules") {
-  sources = [
-    "tools/cpu_modules.cpp",
-  ]
-  deps = [
-    ":skia",
-    "modules/particles",
-  ]
-}
-
 # Targets guarded by skia_enable_tools may use //third_party freely.
 if (skia_enable_tools) {
   skia_public_includes = [
@@ -2596,6 +2586,16 @@
     }
   }
 
+  executable("cpu_modules") {
+    sources = [
+      "tools/cpu_modules.cpp",
+    ]
+    deps = [
+      ":skia",
+      "modules/particles",
+    ]
+  }
+
   test_app("editor") {
     is_shared_library = is_android
     sources = [