[unification] Move //zircon/system/uapp/gpt to the GN build
Generated with: //scripts/unification/move_zn_element.py
scripts/unification/verify_element_move.py --reference local/initial.json:
<none>
Bug: 36139
Change-Id: I9e2282decbe92e09f3cbf251f55df65deefe64a4
diff --git a/build/unification/images/BUILD.gn b/build/unification/images/BUILD.gn
index 3246c33..fc415ff 100644
--- a/build/unification/images/BUILD.gn
+++ b/build/unification/images/BUILD.gn
@@ -60,7 +60,6 @@
":bin.fsck-msdosfs",
":bin.fshost",
":bin.fvm-check",
- ":bin.gpt",
":bin.hid",
":bin.hidsensor",
":bin.hidtouch",
@@ -1305,7 +1304,7 @@
#":bin.fsck-msdosfs",
#":bin.fshost",
#":bin.fvm-check",
- #":bin.gpt",
+ "//zircon/system/uapp/gpt:gpt-manifest",
#":bin.hid",
#":bin.hidsensor",
#":bin.hidtouch",
diff --git a/zircon/system/uapp/BUILD.gn b/zircon/system/uapp/BUILD.gn
index ac30f38..9d560f3 100644
--- a/zircon/system/uapp/BUILD.gn
+++ b/zircon/system/uapp/BUILD.gn
@@ -22,7 +22,6 @@
"fs-mount",
"fs-umount",
"fvm-check",
- "gpt",
"hid",
"hidsensor",
"hidtouch",
diff --git a/zircon/system/uapp/gpt/BUILD.gn b/zircon/system/uapp/gpt/BUILD.gn
index a77437c..9de4174 100644
--- a/zircon/system/uapp/gpt/BUILD.gn
+++ b/zircon/system/uapp/gpt/BUILD.gn
@@ -2,17 +2,33 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
-zx_executable("gpt") {
+##########################################
+# Though under //zircon, this build file #
+# is meant to be used in the Fuchsia GN #
+# build. #
+# See fxb/36139. #
+##########################################
+
+assert(!defined(zx) || zx != "/",
+ "This file can only be used in the Fuchsia GN build.")
+
+import("//build/unification/images/migrated_manifest.gni")
+
+executable("gpt") {
+ configs += [ "//build/unification/config:zircon-migrated" ]
sources = [ "gpt.cc" ]
deps = [
- "$zx/system/fidl/fuchsia-hardware-block:c",
- "$zx/system/ulib/fbl",
- "$zx/system/ulib/fdio",
- "$zx/system/ulib/fit",
- "$zx/system/ulib/fzl",
- "$zx/system/ulib/gpt",
- "$zx/system/ulib/zircon",
- "$zx/system/ulib/zx",
- "$zx/third_party/ulib/cksum",
+ "//zircon/public/lib/cksum",
+ "//zircon/public/lib/fbl",
+ "//zircon/public/lib/fdio",
+ "//zircon/public/lib/fit",
+ "//zircon/public/lib/fzl",
+ "//zircon/public/lib/gpt",
+ "//zircon/public/lib/zx",
+ "//zircon/system/fidl/fuchsia-hardware-block:c",
]
}
+
+migrated_manifest("gpt-manifest") {
+ deps = [ ":gpt" ]
+}