blob: f0d64174e8403debf9ca1f4f1e06915961dfc5be [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("inspector") {
# This should only ever be used as a shared library because it hides
# the otherwise problematic ngunwind symbols.
shared = true
static = false
sdk = "shared"
sdk_headers = [ "inspector/inspector.h" ]
sources = [
"backtrace.cc",
"debug-info.cc",
"dso-list.cc",
"memory.cc",
"registers.cc",
"utils.cc",
]
public_deps = [
"$zx/system/ulib/zircon:headers",
]
deps = [
"$zx/system/ulib/backtrace-request:utils",
"$zx/system/ulib/elf-search",
"$zx/system/ulib/fbl",
"$zx/system/ulib/pretty",
"$zx/system/ulib/zircon",
"$zx/third_party/ulib/backtrace",
"$zx/third_party/ulib/ngunwind",
]
configs += [ "$zx_build/public/gn/config:static-libc++" ]
# Compile this with frame pointers so that if we crash
# the simplistic unwinder will work.
if (configs + [ "$zx_build/public/gn/config:default_frame_pointers" ] -
[ "$zx_build/public/gn/config:default_frame_pointers" ] != configs) {
configs -= [ "$zx_build/public/gn/config:default_frame_pointers" ]
configs += [ "$zx_build/public/gn/config:frame_pointers" ]
}
}