1LOCAL_PATH:= $(call my-dir) 2 3perfprofd_cppflags := \ 4 -Wall \ 5 -Wno-sign-compare \ 6 -Wno-unused-parameter \ 7 -Werror \ 8 -std=gnu++11 \ 9 10# 11# Static library containing guts of AWP daemon. 12# 13include $(CLEAR_VARS) 14LOCAL_CLANG := true 15LOCAL_CPP_EXTENSION := cc 16LOCAL_MODULE := libperfprofdcore 17LOCAL_MODULE_CLASS := STATIC_LIBRARIES 18LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES) 19LOCAL_MODULE_TAGS := debug 20proto_header_dir := $(call local-generated-sources-dir)/proto/$(LOCAL_PATH) 21LOCAL_C_INCLUDES += $(proto_header_dir) $(LOCAL_PATH)/quipper/kernel-headers 22LOCAL_STATIC_LIBRARIES := libbase 23LOCAL_EXPORT_C_INCLUDE_DIRS += $(proto_header_dir) 24LOCAL_SRC_FILES := \ 25 perf_profile.proto \ 26 quipper/perf_utils.cc \ 27 quipper/base/logging.cc \ 28 quipper/address_mapper.cc \ 29 quipper/perf_reader.cc \ 30 quipper/perf_parser.cc \ 31 perf_data_converter.cc \ 32 configreader.cc \ 33 cpuconfig.cc \ 34 perfprofdcore.cc \ 35 36LOCAL_CPPFLAGS += $(perfprofd_cppflags) 37include $(BUILD_STATIC_LIBRARY) 38 39# 40# Static library with primary utilities layer (called by perfprofd core) 41# 42include $(CLEAR_VARS) 43LOCAL_CLANG := true 44LOCAL_CPP_EXTENSION := cc 45LOCAL_CXX_STL := libc++ 46LOCAL_MODULE := libperfprofdutils 47LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES) 48LOCAL_MODULE_TAGS := debug 49LOCAL_CPPFLAGS += $(perfprofd_cppflags) 50LOCAL_SRC_FILES := perfprofdutils.cc 51include $(BUILD_STATIC_LIBRARY) 52 53# 54# Main daemon 55# 56include $(CLEAR_VARS) 57LOCAL_CLANG := true 58LOCAL_CPP_EXTENSION := cc 59LOCAL_CXX_STL := libc++ 60LOCAL_SRC_FILES := perfprofdmain.cc 61LOCAL_STATIC_LIBRARIES := libperfprofdcore libperfprofdutils 62LOCAL_SHARED_LIBRARIES := liblog libprotobuf-cpp-lite libbase 63LOCAL_SYSTEM_SHARED_LIBRARIES := libc libstdc++ 64LOCAL_CPPFLAGS += $(perfprofd_cppflags) 65LOCAL_CFLAGS := -Wall -Werror -std=gnu++11 66LOCAL_MODULE := perfprofd 67LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES) 68LOCAL_MODULE_TAGS := debug 69LOCAL_SHARED_LIBRARIES += libcutils 70LOCAL_INIT_RC := perfprofd.rc 71include $(BUILD_EXECUTABLE) 72 73# Clean temp vars 74perfprofd_cppflags := 75proto_header_dir := 76