blob: e7f6b2d3247eb19d2519410bfcf8e98461aa2720 [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")
import("//build/unification/zbi/bootfs_test.gni")
test("ctor") {
output_name = "ctor-test"
configs += [ "//build/unification/config:zircon-migrated" ]
sources = [ "ctor.cc" ]
deps = [
":dso-ctor",
"//sdk/lib/fdio",
"//zircon/system/ulib/unittest",
]
}
shared_library("dso-ctor") {
testonly = true
configs += [ "//build/unification/config:zircon-migrated" ]
visibility = [ ":*" ]
sources = [ "dso-ctor/dso-ctor.cc" ]
deps = [ "//zircon/system/ulib/unittest" ]
}
bootfs_test("ctor-bootfs-test") {
name = "ctor-test"
deps = [ ":ctor" ]
}