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