1ROOT_DIR := $(call my-dir)
2LIBION_HEADER_PATH_WRAPPER := $(QC_OPEN_PATH)/core-utils/build/libion_header_paths/libion_path.mk
3
4include $(CLEAR_VARS)
5include $(LIBION_HEADER_PATH_WRAPPER)
6LOCAL_PATH:= $(ROOT_DIR)
7
8# ---------------------------------------------------------------------------------
9# 				Common definitons
10# ---------------------------------------------------------------------------------
11
12libmm-vidc-def := -g -O3 -Dlrintf=_ffix_r
13libmm-vidc-def += -D__align=__alignx
14libmm-vidc-def += -D__alignx\(x\)=__attribute__\(\(__aligned__\(x\)\)\)
15libmm-vidc-def += -DT_ARM
16libmm-vidc-def += -Dinline=__inline
17libmm-vidc-def += -D_ANDROID_
18libmm-vidc-def += -Werror
19libmm-vidc-def += -D_ANDROID_ICS_
20
21# ---------------------------------------------------------------------------------
22# 			Make the Shared library (libOmxVidcCommon)
23# ---------------------------------------------------------------------------------
24
25libmm-vidc-inc      := $(LOCAL_PATH)/inc
26libmm-vidc-inc      += $(QCOM_MEDIA_ROOT)/mm-core/inc
27libmm-vidc-inc      += $(QCOM_MEDIA_ROOT)/libc2dcolorconvert
28libmm-vidc-inc      += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include
29libmm-vidc-inc      += $(TOP)/hardware/libhardware/include
30libmm-vidc-inc      += $(LIBION_HEADER_PATHS)
31
32LOCAL_MODULE                    := libOmxVidcCommon
33LOCAL_LICENSE_KINDS             := SPDX-license-identifier-BSD
34LOCAL_LICENSE_CONDITIONS        := notice
35LOCAL_NOTICE_FILE               := $(LOCAL_PATH)/../../../LICENSE
36LOCAL_MODULE_TAGS               := optional
37LOCAL_VENDOR_MODULE             := true
38LOCAL_CFLAGS                    := $(libmm-vidc-def)
39LOCAL_C_INCLUDES                := $(libmm-vidc-inc)
40
41LOCAL_PRELINK_MODULE      := false
42LOCAL_SHARED_LIBRARIES    := liblog libcutils libdl
43
44LOCAL_HEADER_LIBRARIES := \
45        libutils_headers display_intf_headers
46
47LOCAL_SRC_FILES   += src/vidc_common.cpp
48LOCAL_SRC_FILES   += src/vidc_vendor_extensions.cpp
49
50LOCAL_ADDITIONAL_DEPENDENCIES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr
51
52include $(BUILD_STATIC_LIBRARY)
53
54# ---------------------------------------------------------------------------------
55# 					END
56# ---------------------------------------------------------------------------------
57