1# Copyright 2017 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
7reader_tests := \
8    $(LOCAL_DIR)/main.c \
9    $(LOCAL_DIR)/reader_tests.cpp \
10    $(LOCAL_DIR)/records_tests.cpp
11
12# Userspace tests.
13
14MODULE := $(LOCAL_DIR)
15
16MODULE_TYPE := usertest
17
18MODULE_SRCS := $(reader_tests)
19
20MODULE_NAME := trace-reader-test
21
22MODULE_STATIC_LIBS := \
23    system/ulib/trace-reader \
24    system/ulib/trace-engine \
25    system/ulib/zx \
26    system/ulib/zxcpp \
27    system/ulib/fbl
28
29MODULE_LIBS := \
30    system/ulib/c \
31    system/ulib/fdio \
32    system/ulib/zircon \
33    system/ulib/unittest
34
35include make/module.mk
36
37# Host tests.
38
39MODULE := $(LOCAL_DIR).hostapp
40
41MODULE_TYPE := hosttest
42
43MODULE_SRCS := $(reader_tests)
44
45MODULE_NAME := trace-reader-test
46
47MODULE_HOST_LIBS := \
48    system/ulib/trace-reader.hostlib \
49    system/ulib/fbl.hostlib \
50    system/ulib/unittest.hostlib \
51    system/ulib/pretty.hostlib
52
53MODULE_COMPILEFLAGS := \
54    -Isystem/ulib/trace-engine/include \
55    -Isystem/ulib/trace-reader/include \
56    -Isystem/ulib/fbl/include \
57    -Isystem/ulib/unittest/include \
58
59include make/module.mk
60
61# Clear out local variables.
62
63reader_tests :=
64