[assembly] Move sbase binaries list to gni import

This will allow fuchsia.git to use the same list without duplicating it.

Bug: b/308694417
Change-Id: I30743f06e8c5af2d05f5e46080bd845904e82f2a
Reviewed-on: https://fuchsia-review.googlesource.com/c/third_party/sbase/+/948452
Reviewed-by: David Iserovich <diserovich@google.com>
diff --git a/BUILD.gn b/BUILD.gn
index 7cbcbdf..43a7332 100644
--- a/BUILD.gn
+++ b/BUILD.gn
@@ -3,111 +3,12 @@
 # found in the LICENSE file.
 
 import("//build/components.gni")
-
-# The following binaries are disabled:
-# "chgrp",
-# "chmod",
-# "chown",
-# "chroot",
-# "cron",
-# "flock",
-# "getconf",
-# "kill",
-# "ln",
-# "logger",
-# "logname",
-# "mkfifo",
-# "nice",
-# "nohup",
-# "renice",
-# "setsid",
-# "time",
-# "uname",
-# "whoami",
-
-binaries = [
-  "basename",
-  "cal",
-  "cat",
-  "cksum",
-  "cmp",
-  "cols",
-  "comm",
-  "cp",
-  "cut",
-  "date",
-  "dirname",
-  "du",
-  "echo",
-  "ed",
-  "env",
-  "expand",
-  "expr",
-  "false",
-  "find",
-  "fold",
-  "grep",
-  "head",
-  "hostname",
-  "join",
-  "link",
-  "ls",
-  "md5sum",
-  "mkdir",
-  "mktemp",
-  "mv",
-  "nl",
-  "od",
-  "paste",
-  "pathchk",
-  "printenv",
-  "printf",
-  "pwd",
-  "readlink",
-  "rev",
-  "rm",
-  "rmdir",
-  "sed",
-  "seq",
-  "sha1sum",
-  "sha224sum",
-  "sha256sum",
-  "sha384sum",
-  "sha512-224sum",
-  "sha512-256sum",
-  "sha512sum",
-  "sleep",
-  "sort",
-  "split",
-  "sponge",
-  "strings",
-  "sync",
-  "tail",
-  "tar",
-  "tee",
-  "test",
-  "tftp",
-  "touch",
-  "tr",
-  "true",
-  "tsort",
-  "tty",
-  "unexpand",
-  "uniq",
-  "unlink",
-  "uudecode",
-  "uuencode",
-  "wc",
-  "which",
-  "xargs",
-  "xinstall",
-  "yes",
-]
+import("binaries.gni")
 
 group("bins") {
   deps = []
 
-  foreach(bin, binaries) {
+  foreach(bin, sbase_binaries) {
     deps += [ ":${bin}_bin" ]
   }
 }
@@ -124,7 +25,7 @@
   ]
 }
 
-foreach(bin, binaries) {
+foreach(bin, sbase_binaries) {
   executable("${bin}_bin") {
     output_name = bin
 
@@ -152,14 +53,14 @@
 
 group("sbase-pkgs") {
   deps = []
-  foreach(bin, binaries) {
+  foreach(bin, sbase_binaries) {
     deps += [ ":${bin}_pkg" ]
   }
 }
 
 group("sbase") {
   deps = []
-  foreach(bin, binaries) {
+  foreach(bin, sbase_binaries) {
     deps += [ ":$bin" ]
   }
 }
diff --git a/binaries.gni b/binaries.gni
new file mode 100644
index 0000000..2d41097
--- /dev/null
+++ b/binaries.gni
@@ -0,0 +1,103 @@
+# Copyright 2023 The Fuchsia Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+# The following binaries are disabled:
+# "chgrp",
+# "chmod",
+# "chown",
+# "chroot",
+# "cron",
+# "flock",
+# "getconf",
+# "kill",
+# "ln",
+# "logger",
+# "logname",
+# "mkfifo",
+# "nice",
+# "nohup",
+# "renice",
+# "setsid",
+# "time",
+# "uname",
+# "whoami",
+
+sbase_binaries = [
+  "basename",
+  "cal",
+  "cat",
+  "cksum",
+  "cmp",
+  "cols",
+  "comm",
+  "cp",
+  "cut",
+  "date",
+  "dirname",
+  "du",
+  "echo",
+  "ed",
+  "env",
+  "expand",
+  "expr",
+  "false",
+  "find",
+  "fold",
+  "grep",
+  "head",
+  "hostname",
+  "join",
+  "link",
+  "ls",
+  "md5sum",
+  "mkdir",
+  "mktemp",
+  "mv",
+  "nl",
+  "od",
+  "paste",
+  "pathchk",
+  "printenv",
+  "printf",
+  "pwd",
+  "readlink",
+  "rev",
+  "rm",
+  "rmdir",
+  "sed",
+  "seq",
+  "sha1sum",
+  "sha224sum",
+  "sha256sum",
+  "sha384sum",
+  "sha512-224sum",
+  "sha512-256sum",
+  "sha512sum",
+  "sleep",
+  "sort",
+  "split",
+  "sponge",
+  "strings",
+  "sync",
+  "tail",
+  "tar",
+  "tee",
+  "test",
+  "tftp",
+  "touch",
+  "tr",
+  "true",
+  "tsort",
+  "tty",
+  "unexpand",
+  "uniq",
+  "unlink",
+  "uudecode",
+  "uuencode",
+  "wc",
+  "which",
+  "xargs",
+  "xinstall",
+  "yes",
+]