blob: e8cb6b67a8050adbd7b4a9cadcf37527ca0f2593 [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.
library("lazy_init") {
sdk = "source"
sdk_headers = [ "lib/lazy_init/lazy_init.h" ]
sources = []
kernel = true
static = true
if (!is_kernel) {
configs += [ "$zx/public/gn/config:visibility_hidden" ]
deps = [
"$zx/system/ulib/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.cpp" ]
deps += [
"$zx/system/ulib/fdio",
"$zx/system/ulib/zircon",
"$zx/system/ulib/zx",
]
}
configs += [ "$zx/public/gn/config:static-libc++" ]
}