1 #encoder int test 2 OLD_LOCAL_PATH := $(LOCAL_PATH) 3 MM_JPEG_TEST_PATH := $(call my-dir) 4 5 include $(LOCAL_PATH)/../../common.mk 6 include $(CLEAR_VARS) 7 LOCAL_PATH := $(MM_JPEG_TEST_PATH) 8 LOCAL_MODULE_TAGS := optional 9 10 LOCAL_CFLAGS := -DCAMERA_ION_HEAP_ID=ION_IOMMU_HEAP_ID 11 LOCAL_CFLAGS += -Wall -Wextra -Werror -Wno-unused-parameter 12 LOCAL_CFLAGS += -D_ANDROID_ 13 14 ifeq ($(strip $(TARGET_USES_ION)),true) 15 LOCAL_CFLAGS += -DUSE_ION 16 endif 17 18 # System header file path prefix 19 LOCAL_CFLAGS += -DSYSTEM_HEADER_PREFIX=sys 20 21 OMX_HEADER_DIR := frameworks/native/include/media/openmax 22 OMX_CORE_DIR := hardware/qcom/camera/mm-image-codec 23 24 LOCAL_C_INCLUDES := $(MM_JPEG_TEST_PATH) 25 LOCAL_C_INCLUDES += $(MM_JPEG_TEST_PATH)/../inc 26 LOCAL_C_INCLUDES += $(MM_JPEG_TEST_PATH)/../../common 27 LOCAL_C_INCLUDES += $(MM_JPEG_TEST_PATH)/../../mm-camera-interface/inc 28 LOCAL_C_INCLUDES += $(OMX_HEADER_DIR) 29 LOCAL_C_INCLUDES += $(OMX_CORE_DIR)/qexif 30 LOCAL_C_INCLUDES += $(OMX_CORE_DIR)/qomx_core 31 32 LOCAL_C_INCLUDES+= $(kernel_includes) 33 LOCAL_ADDITIONAL_DEPENDENCIES := $(common_deps) 34 35 LOCAL_SRC_FILES := mm_jpeg_test.c 36 37 LOCAL_32_BIT_ONLY := $(BOARD_QTI_CAMERA_32BIT_ONLY) 38 LOCAL_MODULE := mm-jpeg-interface-test 39 LOCAL_PRELINK_MODULE := false 40 LOCAL_SHARED_LIBRARIES := libcutils libdl libmmjpeg_interface 41 42 include $(BUILD_EXECUTABLE) 43 44 45 46 #decoder int test 47 48 include $(CLEAR_VARS) 49 LOCAL_PATH := $(MM_JPEG_TEST_PATH) 50 LOCAL_MODULE_TAGS := optional 51 52 LOCAL_CFLAGS := -DCAMERA_ION_HEAP_ID=ION_IOMMU_HEAP_ID 53 LOCAL_CFLAGS += -Wall -Wextra -Werror -Wno-unused-parameter 54 55 LOCAL_CFLAGS += -D_ANDROID_ 56 57 ifeq ($(strip $(TARGET_USES_ION)),true) 58 LOCAL_CFLAGS += -DUSE_ION 59 endif 60 61 # System header file path prefix 62 LOCAL_CFLAGS += -DSYSTEM_HEADER_PREFIX=sys 63 64 OMX_HEADER_DIR := frameworks/native/include/media/openmax 65 OMX_CORE_DIR := hardware/qcom/camera/mm-image-codec 66 67 LOCAL_C_INCLUDES := $(MM_JPEG_TEST_PATH) 68 LOCAL_C_INCLUDES += $(MM_JPEG_TEST_PATH)/../inc 69 LOCAL_C_INCLUDES += $(MM_JPEG_TEST_PATH)/../../common 70 LOCAL_C_INCLUDES += $(MM_JPEG_TEST_PATH)/../../mm-camera-interface/inc 71 LOCAL_C_INCLUDES += $(OMX_HEADER_DIR) 72 LOCAL_C_INCLUDES += $(OMX_CORE_DIR)/qexif 73 LOCAL_C_INCLUDES += $(OMX_CORE_DIR)/qomx_core 74 75 LOCAL_C_INCLUDES+= $(kernel_includes) 76 LOCAL_ADDITIONAL_DEPENDENCIES := $(common_deps) 77 78 LOCAL_SRC_FILES := mm_jpegdec_test.c 79 80 LOCAL_32_BIT_ONLY := $(BOARD_QTI_CAMERA_32BIT_ONLY) 81 LOCAL_MODULE := mm-jpegdec-interface-test 82 LOCAL_PRELINK_MODULE := false 83 LOCAL_SHARED_LIBRARIES := libcutils libdl libmmjpeg_interface 84 85 include $(BUILD_EXECUTABLE) 86 87 LOCAL_PATH := $(OLD_LOCAL_PATH)