17e2f4e9d384d501cf86118ebac4b8de2b86eac53Than McIntoshLOCAL_PATH:= $(call my-dir) 27e2f4e9d384d501cf86118ebac4b8de2b86eac53Than McIntosh 37e2f4e9d384d501cf86118ebac4b8de2b86eac53Than McIntoshperfprofd_cppflags := \ 47e2f4e9d384d501cf86118ebac4b8de2b86eac53Than McIntosh -Wall \ 57e2f4e9d384d501cf86118ebac4b8de2b86eac53Than McIntosh -Wno-sign-compare \ 67e2f4e9d384d501cf86118ebac4b8de2b86eac53Than McIntosh -Wno-unused-parameter \ 77e2f4e9d384d501cf86118ebac4b8de2b86eac53Than McIntosh -Werror \ 87e2f4e9d384d501cf86118ebac4b8de2b86eac53Than McIntosh -std=gnu++11 \ 97e2f4e9d384d501cf86118ebac4b8de2b86eac53Than McIntosh 107e2f4e9d384d501cf86118ebac4b8de2b86eac53Than McIntosh# 117e2f4e9d384d501cf86118ebac4b8de2b86eac53Than McIntosh# Static library containing guts of AWP daemon. 127e2f4e9d384d501cf86118ebac4b8de2b86eac53Than McIntosh# 137e2f4e9d384d501cf86118ebac4b8de2b86eac53Than McIntoshinclude $(CLEAR_VARS) 147e2f4e9d384d501cf86118ebac4b8de2b86eac53Than McIntoshLOCAL_CLANG := true 157e2f4e9d384d501cf86118ebac4b8de2b86eac53Than McIntoshLOCAL_CPP_EXTENSION := cc 167e2f4e9d384d501cf86118ebac4b8de2b86eac53Than McIntoshLOCAL_MODULE := libperfprofdcore 177e2f4e9d384d501cf86118ebac4b8de2b86eac53Than McIntoshLOCAL_MODULE_CLASS := STATIC_LIBRARIES 182a1e7e814c9cb300c22132763a1817c04907e75bDehao ChenLOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES) 192a1e7e814c9cb300c22132763a1817c04907e75bDehao ChenLOCAL_MODULE_TAGS := debug 207e2f4e9d384d501cf86118ebac4b8de2b86eac53Than McIntoshproto_header_dir := $(call local-generated-sources-dir)/proto/$(LOCAL_PATH) 217e2f4e9d384d501cf86118ebac4b8de2b86eac53Than McIntoshLOCAL_C_INCLUDES += $(proto_header_dir) $(LOCAL_PATH)/quipper/kernel-headers 22f4605017b29dd98232af9385e71079a3ba0297f1Dehao ChenLOCAL_STATIC_LIBRARIES := libbase 237e2f4e9d384d501cf86118ebac4b8de2b86eac53Than McIntoshLOCAL_EXPORT_C_INCLUDE_DIRS += $(proto_header_dir) 247e2f4e9d384d501cf86118ebac4b8de2b86eac53Than McIntoshLOCAL_SRC_FILES := \ 257e2f4e9d384d501cf86118ebac4b8de2b86eac53Than McIntosh perf_profile.proto \ 267e2f4e9d384d501cf86118ebac4b8de2b86eac53Than McIntosh quipper/perf_utils.cc \ 277e2f4e9d384d501cf86118ebac4b8de2b86eac53Than McIntosh quipper/base/logging.cc \ 287e2f4e9d384d501cf86118ebac4b8de2b86eac53Than McIntosh quipper/address_mapper.cc \ 297e2f4e9d384d501cf86118ebac4b8de2b86eac53Than McIntosh quipper/perf_reader.cc \ 307e2f4e9d384d501cf86118ebac4b8de2b86eac53Than McIntosh quipper/perf_parser.cc \ 317e2f4e9d384d501cf86118ebac4b8de2b86eac53Than McIntosh perf_data_converter.cc \ 328c7c7db1f1a23ab0c575cc217bed6b45f42b9ba5Than McIntosh configreader.cc \ 3307f00fd438a0c10bc6b2487352d09eb0a648db40Than McIntosh cpuconfig.cc \ 347e2f4e9d384d501cf86118ebac4b8de2b86eac53Than McIntosh perfprofdcore.cc \ 357e2f4e9d384d501cf86118ebac4b8de2b86eac53Than McIntosh 367e2f4e9d384d501cf86118ebac4b8de2b86eac53Than McIntoshLOCAL_CPPFLAGS += $(perfprofd_cppflags) 377e2f4e9d384d501cf86118ebac4b8de2b86eac53Than McIntoshinclude $(BUILD_STATIC_LIBRARY) 387e2f4e9d384d501cf86118ebac4b8de2b86eac53Than McIntosh 397e2f4e9d384d501cf86118ebac4b8de2b86eac53Than McIntosh# 407e2f4e9d384d501cf86118ebac4b8de2b86eac53Than McIntosh# Static library with primary utilities layer (called by perfprofd core) 417e2f4e9d384d501cf86118ebac4b8de2b86eac53Than McIntosh# 427e2f4e9d384d501cf86118ebac4b8de2b86eac53Than McIntoshinclude $(CLEAR_VARS) 437e2f4e9d384d501cf86118ebac4b8de2b86eac53Than McIntoshLOCAL_CLANG := true 447e2f4e9d384d501cf86118ebac4b8de2b86eac53Than McIntoshLOCAL_CPP_EXTENSION := cc 457e2f4e9d384d501cf86118ebac4b8de2b86eac53Than McIntoshLOCAL_CXX_STL := libc++ 467e2f4e9d384d501cf86118ebac4b8de2b86eac53Than McIntoshLOCAL_MODULE := libperfprofdutils 472a1e7e814c9cb300c22132763a1817c04907e75bDehao ChenLOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES) 482a1e7e814c9cb300c22132763a1817c04907e75bDehao ChenLOCAL_MODULE_TAGS := debug 497e2f4e9d384d501cf86118ebac4b8de2b86eac53Than McIntoshLOCAL_CPPFLAGS += $(perfprofd_cppflags) 507e2f4e9d384d501cf86118ebac4b8de2b86eac53Than McIntoshLOCAL_SRC_FILES := perfprofdutils.cc 517e2f4e9d384d501cf86118ebac4b8de2b86eac53Than McIntoshinclude $(BUILD_STATIC_LIBRARY) 527e2f4e9d384d501cf86118ebac4b8de2b86eac53Than McIntosh 537e2f4e9d384d501cf86118ebac4b8de2b86eac53Than McIntosh# 547e2f4e9d384d501cf86118ebac4b8de2b86eac53Than McIntosh# Main daemon 557e2f4e9d384d501cf86118ebac4b8de2b86eac53Than McIntosh# 567e2f4e9d384d501cf86118ebac4b8de2b86eac53Than McIntoshinclude $(CLEAR_VARS) 577e2f4e9d384d501cf86118ebac4b8de2b86eac53Than McIntoshLOCAL_CLANG := true 587e2f4e9d384d501cf86118ebac4b8de2b86eac53Than McIntoshLOCAL_CPP_EXTENSION := cc 597e2f4e9d384d501cf86118ebac4b8de2b86eac53Than McIntoshLOCAL_CXX_STL := libc++ 607e2f4e9d384d501cf86118ebac4b8de2b86eac53Than McIntoshLOCAL_SRC_FILES := perfprofdmain.cc 617e2f4e9d384d501cf86118ebac4b8de2b86eac53Than McIntoshLOCAL_STATIC_LIBRARIES := libperfprofdcore libperfprofdutils 62f4605017b29dd98232af9385e71079a3ba0297f1Dehao ChenLOCAL_SHARED_LIBRARIES := liblog libprotobuf-cpp-lite libbase 637e2f4e9d384d501cf86118ebac4b8de2b86eac53Than McIntoshLOCAL_SYSTEM_SHARED_LIBRARIES := libc libstdc++ 647e2f4e9d384d501cf86118ebac4b8de2b86eac53Than McIntoshLOCAL_CPPFLAGS += $(perfprofd_cppflags) 657e2f4e9d384d501cf86118ebac4b8de2b86eac53Than McIntoshLOCAL_CFLAGS := -Wall -Werror -std=gnu++11 667e2f4e9d384d501cf86118ebac4b8de2b86eac53Than McIntoshLOCAL_MODULE := perfprofd 672a1e7e814c9cb300c22132763a1817c04907e75bDehao ChenLOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES) 682a1e7e814c9cb300c22132763a1817c04907e75bDehao ChenLOCAL_MODULE_TAGS := debug 697e2f4e9d384d501cf86118ebac4b8de2b86eac53Than McIntoshLOCAL_SHARED_LIBRARIES += libcutils 7074762a3cc0f00c8d7268d88e1c92bfcbb01ca13aTom CherryLOCAL_INIT_RC := perfprofd.rc 717e2f4e9d384d501cf86118ebac4b8de2b86eac53Than McIntoshinclude $(BUILD_EXECUTABLE) 727e2f4e9d384d501cf86118ebac4b8de2b86eac53Than McIntosh 737e2f4e9d384d501cf86118ebac4b8de2b86eac53Than McIntosh# Clean temp vars 747e2f4e9d384d501cf86118ebac4b8de2b86eac53Than McIntoshperfprofd_cppflags := 757e2f4e9d384d501cf86118ebac4b8de2b86eac53Than McIntoshproto_header_dir := 76