| # 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/zircon/migrated_targets.gni") |
| |
| zx_library("backtrace") { |
| sources = [ "backtrace.cc" ] |
| |
| deps = [ |
| "tests", |
| "//zircon/kernel/lib/version", |
| "//zircon/system/ulib/affine", |
| ] |
| |
| public_deps = [ |
| "//zircon/kernel/lib/arch:headers", |
| "//zircon/kernel/lib/ktl:headers", |
| "//zircon/system/ulib/affine", |
| ] |
| |
| if (current_cpu == "x64") { |
| # Needed by global_cpu_context_exchange.h. |
| public_deps += [ "//zircon/kernel/arch/x86:headers" ] |
| } |
| } |