blob: 735a3f72a9a4fa8530296cace2bbb7b760e060dc [file] [log] [blame]
# Copyright 2020 The Fuchsia Authors
#
# Use of this source code is governed by a MIT-style
# license that can be found in the LICENSE file or at
# https://opensource.org/licenses/MIT
import("//build/cpp/library_headers.gni")
static_library("backtrace") {
public_deps = [ ":headers" ]
complete_static_lib = true
sources = [ "backtrace.cc" ]
deps = [ "//zircon/kernel/phys:boot-constants" ]
}
library_headers("headers") {
headers = []
public_deps = [
"//zircon/kernel/lib/arch:headers",
"//zircon/kernel/lib/ktl:headers",
# <lib/backtrace/cpu_context_exchange.h> has #include <lib/affine/ratio.h>.
"//zircon/system/ulib/affine:headers",
]
if (current_cpu == "x64") {
# Needed by global_cpu_context_exchange.h.
public_deps += [ "//zircon/kernel/arch/x86:headers" ]
}
}
group("tests") {
testonly = true
}
group("kernel-tests") {
# TODO: testonly = true
}
group("phys-tests") {
testonly = true
}
group("boot_tests") {
testonly = true
}