[unification] Move //zircon/system/uapp/dlog 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: Ib8efed0395c55c179280d3860dc1809bc0f1d8f6
diff --git a/build/unification/images/BUILD.gn b/build/unification/images/BUILD.gn
index 10008d9..eee8b69 100644
--- a/build/unification/images/BUILD.gn
+++ b/build/unification/images/BUILD.gn
@@ -53,7 +53,6 @@
":bin.device-name-provider",
":bin.disk-inspect",
":bin.display-test",
- ":bin.dlog",
":bin.driverctl",
":bin.driverinfo",
":bin.fsck",
@@ -1217,7 +1216,7 @@
#":bin.device-name-provider",
#":bin.disk-inspect",
#":bin.display-test",
- #":bin.dlog",
+ "//zircon/system/uapp/dlog:dlog-manifest",
#":bin.driverctl",
#":bin.driverinfo",
#":bin.fsck",
diff --git a/zircon/system/uapp/BUILD.gn b/zircon/system/uapp/BUILD.gn
index 9d560f3..9b312bb 100644
--- a/zircon/system/uapp/BUILD.gn
+++ b/zircon/system/uapp/BUILD.gn
@@ -15,7 +15,6 @@
"disk-inspect",
"disk-pave",
"display-test",
- "dlog",
"driverctl",
"fs-fsck",
"fs-mkfs",
diff --git a/zircon/system/uapp/dlog/BUILD.gn b/zircon/system/uapp/dlog/BUILD.gn
index 190a35c..151cb58 100644
--- a/zircon/system/uapp/dlog/BUILD.gn
+++ b/zircon/system/uapp/dlog/BUILD.gn
@@ -2,11 +2,27 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
-zx_executable("dlog") {
+##########################################
+# 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("dlog") {
+ configs += [ "//build/unification/config:zircon-migrated" ]
sources = [ "dlog.c" ]
deps = [
- "$zx/system/fidl/fuchsia-boot:c",
- "$zx/system/ulib/fdio",
- "$zx/system/ulib/zircon",
+ "//zircon/public/lib/fdio",
+ "//zircon/system/fidl/fuchsia-boot:c",
]
}
+
+migrated_manifest("dlog-manifest") {
+ deps = [ ":dlog" ]
+}