[unification] Move //zircon/system/ulib/libabr to the GN build
Affected libraries:
//zircon/system/ulib/libabr
Generated with //scripts/unification/move_cpp_library.py
Bug: 36548
Change-Id: I1d80766a1e4318e29e487f94b8e10cb53fd355b8
Reviewed-on: https://fuchsia-review.googlesource.com/c/fuchsia/+/378140
Commit-Queue: Theodore Dubois <tbodt@google.com>
Reviewed-by: P.Y. Laligand <pylaligand@google.com>
diff --git a/zircon/system/ulib/BUILD.gn b/zircon/system/ulib/BUILD.gn
index 4c0adf6..43c9140 100644
--- a/zircon/system/ulib/BUILD.gn
+++ b/zircon/system/ulib/BUILD.gn
@@ -300,7 +300,6 @@
"ldmsg",
#------------------
#------------------
- "libabr",
#------------------
#------------------
"libzbi",
diff --git a/zircon/system/ulib/libabr/BUILD.gn b/zircon/system/ulib/libabr/BUILD.gn
index c3b6af8..c03210af 100644
--- a/zircon/system/ulib/libabr/BUILD.gn
+++ b/zircon/system/ulib/libabr/BUILD.gn
@@ -1,6 +1,19 @@
# Copyright 2019 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.
+
+##########################################
+# Though under //zircon, this build file #
+# is meant to be used in the Fuchsia GN #
+# build. #
+# See fxb/36548. #
+##########################################
+
+assert(!defined(zx) || zx != "/",
+ "This file can only be used in the Fuchsia GN build.")
+
+import("//build/unification/zx_library.gni")
+
zx_library("libabr") {
output_prefix_override = true
sdk = "static"
diff --git a/zircon/system/ulib/libabr/test/BUILD.gn b/zircon/system/ulib/libabr/test/BUILD.gn
index 4766d84..e7c6a08 100644
--- a/zircon/system/ulib/libabr/test/BUILD.gn
+++ b/zircon/system/ulib/libabr/test/BUILD.gn
@@ -21,11 +21,11 @@
output_name = "libabr-test"
deps = [
"//zircon/public/lib/cksum",
- "//zircon/public/lib/libabr",
"//zircon/public/lib/unittest",
"//zircon/public/lib/zxtest",
+ "//zircon/system/ulib/libabr",
]
- include_dirs = [ "//zircon/public/lib/libabr" ]
+ include_dirs = [ "//zircon/system/ulib/libabr" ]
}
migrated_manifest("libabr-test-manifest") {
diff --git a/zircon/system/ulib/paver/BUILD.gn b/zircon/system/ulib/paver/BUILD.gn
index 4f0ff3b..6cd0770 100644
--- a/zircon/system/ulib/paver/BUILD.gn
+++ b/zircon/system/ulib/paver/BUILD.gn
@@ -44,7 +44,6 @@
"//zircon/public/lib/fvm",
"//zircon/public/lib/fzl",
"//zircon/public/lib/gpt",
- "//zircon/public/lib/libabr",
"//zircon/public/lib/ramdevice-client-static",
"//zircon/public/lib/svc",
"//zircon/public/lib/sync",
@@ -61,6 +60,7 @@
"//zircon/system/fidl/fuchsia-paver:llcpp",
"//zircon/system/fidl/fuchsia-sysinfo:llcpp",
"//zircon/system/ulib/chromeos-disk-setup",
+ "//zircon/system/ulib/libabr",
]
public_deps = [ "//zircon/public/lib/svc" ]
}
diff --git a/zircon/system/ulib/paver/test/BUILD.gn b/zircon/system/ulib/paver/test/BUILD.gn
index ac5dbc0..ff183c4 100644
--- a/zircon/system/ulib/paver/test/BUILD.gn
+++ b/zircon/system/ulib/paver/test/BUILD.gn
@@ -70,7 +70,6 @@
"//zircon/public/lib/fvm",
"//zircon/public/lib/fzl",
"//zircon/public/lib/gpt",
- "//zircon/public/lib/libabr",
"//zircon/public/lib/ramdevice-client-static",
"//zircon/public/lib/svc",
"//zircon/public/lib/sysconfig-sync-client",
@@ -82,6 +81,7 @@
"//zircon/system/fidl/fuchsia-hardware-nand:c",
"//zircon/system/fidl/fuchsia-hardware-skipblock:llcpp",
"//zircon/system/fidl/fuchsia-paver:llcpp",
+ "//zircon/system/ulib/libabr",
"//zircon/system/ulib/paver",
]
}