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_COMPILEFLAGS += -fvisibility=hidden
12
13COMMON_SRCS := \
14    $(LOCAL_DIR)/counter.cpp \
15    $(LOCAL_DIR)/metric_info.cpp \
16    $(LOCAL_DIR)/histogram.cpp \
17    $(LOCAL_DIR)/collector.cpp \
18
19MODULE_SRCS += \
20    $(COMMON_SRCS)\
21    $(LOCAL_DIR)/cobalt_logger.cpp \
22
23MODULE_STATIC_LIBS := \
24    system/ulib/fbl \
25    system/ulib/fidl \
26    system/ulib/fidl-async \
27    system/ulib/fzl \
28    system/ulib/zx \
29    system/ulib/zxcpp \
30
31MODULE_LIBS := \
32    system/ulib/c \
33    system/ulib/fdio \
34    system/ulib/zircon \
35
36MODULE_FIDL_LIBS := \
37    system/fidl/fuchsia-cobalt \
38    system/fidl/fuchsia-mem \
39
40MODULE_PACKAGE := src
41
42include make/module.mk
43
44# Make a hostlib for libraries that are built for host and target host.
45# The target library is a dummy, replacing the logger with a dummy logger
46# that does nothing. This should remove once there is a clear separation
47# on host and client code in FS.
48
49MODULE := $(LOCAL_DIR).hostlib
50
51MODULE_TYPE := hostlib
52
53MODULE_SRCS += \
54	$(COMMON_SRCS)\
55
56MODULE_COMPILEFLAGS := \
57	-Isystem/ulib/fbl/include \
58
59include make/module.mk
60