You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

53 lines
2.2 KiB

LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
LOCAL_MODULE := libuapi_jpgd
LOCAL_MULTILIB := both
LOCAL_BUILD_STATIC := false
LOCAL_SRC_FILES := jpgd/src/uapi_jpeg_api.c \
jpgd/src/mpi_jpeg_ext.c \
jpgd/src/src_comm/mpi_jpeg_debug.c \
jpgd/src/src_comm/mpi_jpeg_exif.c \
jpgd/src/src_comm/mpi_jpeg_mem.c \
jpgd/src/src_comm/mpi_jpeg_resolution.c \
jpgd/src/src_hard/mpi_jpeg_comm.c \
jpgd/src/src_hard/mpi_jpeg_handle.c \
jpgd/src/src_hard/mpi_jpeg_hdec.c \
jpgd/src/src_hard/mpi_jpeg_parse.c \
jpgd/src/src_hard/mpi_jpeg_reg.c \
jpgd/src/src_hard/mpi_jpeg_table.c
LOCAL_CFLAGS := -Ivendor/huanglong/uapi/jpgd/include \
-Ivendor/huanglong/uapi/jpgd/source/jpgd/include \
-Ivendor/huanglong/uapi/jpgd/source/jpgd/include/inc_comm \
-Ivendor/huanglong/uapi/jpgd/source/jpgd/include/inc_hard \
-Ivendor/huanglong/uapi/jpgd/source/jpgd/include/inc_soft \
-Ivendor/huanglong/uapi/gfx2d/include \
-Ivendor/huanglong/linux/include/jpgd \
-Ivendor/huanglong/uapi/memory/include \
-Ivendor/huanglong/uapi/common/include \
-Ivendor/huanglong/linux/include/generic \
-Ivendor/platform/secure_c/include
LOCAL_CFLAGS += -DLOG_TAG=libuapi_jpgd \
-DCONFIG_SOCT_LOG_SUPPORT \
-Wno-unused-but-set-variable \
-Wno-type-limits
LOCAL_LDFLAGS := -ldl
LOCAL_SHARED_LIBRARIES := libuapi_securec \
libuapi_common \
libuapi_memory \
libuapi_gfx2d
include $(BUILD_LINUX_LIBRARY)
#===============================================================================
# rules
#===============================================================================
USR_DIR ?= $(SDK_DIR)/vendor/huanglong/uapi
OPEN_SOURCE_LILBJPEG_DIR ?= $(SDK_DIR)/vendor/open_source/libjpeg-turbo
JPEG_HARD_DIR:= $(USR_DIR)/jpgd/source/jpgd/libuapijpeg