blob: 7a1655558e7f841397a3f1fe1850df4557354166 [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.
zx_library("lazy_init") {
sdk = "source"
sdk_headers = [ "lib/lazy_init/lazy_init.h" ]
sources = []
kernel = true
static = true
if (!is_kernel) {
deps = [
"$zx/system/ulib/zx",
]
}
}
zx_test("lazy_init-test") {
output_name = "lazy_init-test"
sources = []
deps = [
"$zx/system/ulib/lazy_init",
"$zx/system/ulib/unittest",
]
if (is_fuchsia) {
# These tests won't run on the host because some of these tests make
# use of the ASSERT_DEATH macro to ensure that certain actions result
# in program termination, which is not currently supported in the
# host test environment.
# See: TODO(ZX-1053)
sources += [ "lazy_init_tests.cc" ]
deps += [
"$zx/system/ulib/fdio",
"$zx/system/ulib/zircon",
"$zx/system/ulib/zx",
]
}
configs += [ "$zx_build/public/gn/config:static-libc++" ]
}