1# Copyright 2017 The Chromium 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_PATH := $(call my-dir)
6
7include $(CLEAR_VARS)
8
9LOCAL_MODULE := atrace_helper
10LOCAL_LICENSE_KINDS := SPDX-license-identifier-BSD
11LOCAL_LICENSE_CONDITIONS := notice
12LOCAL_NOTICE_FILE := $(LOCAL_PATH)/../../../../NOTICE
13LOCAL_CPPFLAGS := -std=c++11 -Wall -Wextra -Werror -O2
14LOCAL_CPPFLAGS += -fPIE -fno-rtti -fno-exceptions -fstack-protector
15LOCAL_CPP_EXTENSION := .cc
16LOCAL_LDLIBS := -fPIE -pie -llog
17
18LOCAL_SRC_FILES := \
19    main.cc \
20    atrace_process_dump.cc \
21    file_utils.cc \
22    libmemtrack_wrapper.cc \
23    process_memory_stats.cc \
24    procfs_utils.cc \
25    time_utils.cc
26
27include $(BUILD_EXECUTABLE)
28