1# Copyright 2016 The Fuchsia Authors. All rights reserved.
2# Use of this source code is governed by a BSD-style license that can be
3# found in the LICENSE file.
4
5LOCAL_DIR := $(GET_LOCAL_DIR)
6
7MODULE := $(LOCAL_DIR)
8
9MODULE_TYPE := userlib
10
11MODULE_SRCS += \
12    $(LOCAL_DIR)/crashanalyzer.cpp
13
14MODULE_FIDL_LIBS := \
15    system/fidl/fuchsia-crash \
16    system/fidl/fuchsia-mem \
17
18MODULE_HEADER_DEPS := \
19    system/ulib/svc \
20
21MODULE_STATIC_LIBS := \
22    system/ulib/inspector \
23    system/ulib/async \
24    system/ulib/async.cpp \
25    system/ulib/fbl \
26    system/ulib/fidl \
27    system/ulib/pretty \
28    system/ulib/runtime \
29    system/ulib/zircon-internal \
30    system/ulib/zxcpp
31
32MODULE_LIBS := \
33    third_party/ulib/backtrace \
34    third_party/ulib/ngunwind \
35    system/ulib/fdio \
36    system/ulib/zircon \
37    system/ulib/c
38
39# Compile this with frame pointers so that if we crash
40# the simplistic unwinder will work.
41MODULE_COMPILEFLAGS += $(KEEP_FRAME_POINTER_COMPILEFLAGS)
42
43include make/module.mk
44