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