blob: 947fdae150fa33d0c6655cb6bc7ba73433434475 [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.
import("$zx_build/public/gn/library_shim.gni")
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",
]
}
}
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++" ]
}