blob: 4c04210344be7414a8f154200aca3f13b13b7a70 [file] [log] [blame]
# 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/36139. #
##########################################
assert(!defined(zx) || zx != "/",
"This file can only be used in the Fuchsia GN build.")
import("//build/test.gni")
group("test") {
testonly = true
deps = [ ":zbi" ]
}
test("zbi") {
# Dependent manifests unfortunately cannot be marked as `testonly`.
# TODO(44278): Remove when converting this file to proper GN build idioms.
if (is_fuchsia) {
testonly = false
}
if (is_fuchsia) {
configs += [ "//build/unification/config:zircon-migrated" ]
}
output_name = "libzbi-test"
sources = [ "zbi.cc" ]
deps = [
"//zircon/public/lib/fbl",
"//zircon/public/lib/pretty",
"//zircon/public/lib/zbi",
"//zircon/public/lib/zxtest",
]
if (is_fuchsia) {
deps += [
"//sdk/lib/fdio",
"//zircon/public/lib/zx",
]
} else {
output_dir = "$root_out_dir/zircon-migrated"
}
}