1ifeq ($(PERF_INSTRUMENTATION),1) 2LOCAL_PATH:= $(call my-dir) 3 4include $(CLEAR_VARS) 5 6LOCAL_PRELINK_MODULE := false 7 8LOCAL_SRC_FILES:= \ 9 src/perf.c \ 10 src/perf_config.c \ 11 src/perf_log.c 12 13TI_OMX_CFLAGS += -D__PERF_INSTRUMENTATION__ 14 15ifdef PERF_CUSTOMIZABLE 16LOCAL_SRC_FILES+= \ 17 src/perf_print.c \ 18 src/perf_rt.c 19 20TI_OMX_CFLAGS += -D__PERF_CUSTOMIZABLE__ 21endif 22 23ifdef PERF_READER 24TI_OMX_CFLAGS += -D__PERF_LOG_LOCATION__ 25endif 26 27LOCAL_C_INCLUDES := \ 28 $(TI_OMX_SYSTEM)/perf/inc \ 29 $(TI_OMX_INCLUDES) \ 30 $(PV_INCLUDES) \ 31 bionic/libc/include \ 32 33LOCAL_SHARED_LIBRARIES := \ 34 libdl \ 35 liblog 36 37LOCAL_CFLAGS := $(TI_OMX_CFLAGS) 38 39LOCAL_MODULE:= libPERF 40 41include $(BUILD_SHARED_LIBRARY) 42endif 43