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 cpuconfig.cc \ 33 perfprofdcore.cc \ 34 35LOCAL_CPPFLAGS += $(perfprofd_cppflags) 36include $(BUILD_STATIC_LIBRARY) 37 38# 39# Static library with primary utilities layer (called by perfprofd core) 40# 41include $(CLEAR_VARS) 42LOCAL_CLANG := true 43LOCAL_CPP_EXTENSION := cc 44LOCAL_CXX_STL := libc++ 45LOCAL_MODULE := libperfprofdutils 46LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES) 47LOCAL_MODULE_TAGS := debug 48LOCAL_CPPFLAGS += $(perfprofd_cppflags) 49LOCAL_SRC_FILES := perfprofdutils.cc 50include $(BUILD_STATIC_LIBRARY) 51 52# 53# Main daemon 54# 55include $(CLEAR_VARS) 56LOCAL_CLANG := true 57LOCAL_CPP_EXTENSION := cc 58LOCAL_CXX_STL := libc++ 59LOCAL_SRC_FILES := perfprofdmain.cc 60LOCAL_STATIC_LIBRARIES := libperfprofdcore libperfprofdutils 61LOCAL_SHARED_LIBRARIES := liblog libprotobuf-cpp-lite libbase 62LOCAL_SYSTEM_SHARED_LIBRARIES := libc libstdc++ 63LOCAL_CPPFLAGS += $(perfprofd_cppflags) 64LOCAL_CFLAGS := -Wall -Werror -std=gnu++11 65LOCAL_MODULE := perfprofd 66LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES) 67LOCAL_MODULE_TAGS := debug 68LOCAL_SHARED_LIBRARIES += libcutils 69include $(BUILD_EXECUTABLE) 70 71# Clean temp vars 72perfprofd_cppflags := 73proto_header_dir := 74