blob: 7c3ce755067cbac9655ed460f36431435c3c234d [file] [log] [blame]
# Copyright 2017 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.
LOCAL_DIR := $(GET_LOCAL_DIR)
MODULE := $(LOCAL_DIR)
MODULE_TYPE := userlib
MODULE_COMPILEFLAGS += -fvisibility=hidden
MODULE_SRCS += \
$(LOCAL_DIR)/backtrace.cpp \
$(LOCAL_DIR)/debug-info.cpp \
$(LOCAL_DIR)/dso-list.cpp \
$(LOCAL_DIR)/registers.cpp \
$(LOCAL_DIR)/utils.cpp \
MODULE_STATIC_LIBS := \
system/ulib/backtrace-request \
system/ulib/elf-search \
system/ulib/fbl \
system/ulib/pretty \
system/ulib/zx \
system/ulib/zxcpp \
MODULE_LIBS := \
third_party/ulib/backtrace \
third_party/ulib/ngunwind \
system/ulib/zircon \
system/ulib/c \
MODULE_PACKAGE := static
# Compile this with frame pointers so that if we crash
# the simplistic unwinder will work.
MODULE_COMPILEFLAGS += $(KEEP_FRAME_POINTER_COMPILEFLAGS)
include make/module.mk