1# Copyright (c) 2011 Intel Corporation. All Rights Reserved. 2# 3# 4# Permission is hereby granted, free of charge, to any person obtaining a 5# copy of this software and associated documentation files (the 6# "Software"), to deal in the Software without restriction, including 7# without limitation the rights to use, copy, modify, merge, publish, 8# distribute, sub license, and/or sell copies of the Software, and to 9# permit persons to whom the Software is furnished to do so, subject to 10# the following conditions: 11# 12# The above copyright notice and this permission notice (including the 13# next paragraph) shall be included in all copies or substantial portions 14# of the Software. 15# 16# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 17# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 18# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. 19# IN NO EVENT SHALL PRECISION INSIGHT AND/OR ITS SUPPLIERS BE LIABLE FOR 20# ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, 21# TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE 22# SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 23# 24 25LOCAL_PATH:= $(call my-dir) 26 27include $(CLEAR_VARS) 28 29LOCAL_CFLAGS := \ 30 -DLINUX -DANDROID -g -Wall -Wno-unused \ 31 -DPSBVIDEO_LOG_ENABLE -DPSBVIDEO_VXD392 \ 32 -DPSBVIDEO_MSVDX_DEC_TILING -DPSBVIDEO_MSVDX_EC 33 34LOCAL_C_INCLUDES := \ 35 $(call include-path-for, libhardware)/hardware \ 36 $(TARGET_OUT_HEADERS)/libva \ 37 $(TARGET_OUT_HEADERS)/libttm \ 38 $(TARGET_OUT_HEADERS)/libwsbm \ 39 $(TARGET_OUT_HEADERS)/libdrm \ 40 $(TARGET_OUT_HEADERS)/opengles \ 41 $(TARGET_OUT_HEADERS)/pvr \ 42 $(LOCAL_PATH)/hwdefs 43 44LOCAL_SHARED_LIBRARIES += libdl libdrm libwsbm libcutils \ 45 libutils libbinder libhardware liblog 46 47LOCAL_SRC_FILES := \ 48 object_heap.c \ 49 psb_buffer.c \ 50 psb_buffer_dm.c \ 51 psb_cmdbuf.c \ 52 psb_drv_video.c \ 53 psb_drv_debug.c \ 54 psb_surface_attrib.c \ 55 psb_output.c \ 56 android/psb_output_android.c \ 57 android/psb_android_glue.cpp \ 58 android/psb_surface_gralloc.c \ 59 android/psb_gralloc.cpp \ 60 psb_surface.c \ 61 psb_overlay.c \ 62 vc1_idx.c \ 63 vc1_vlc.c \ 64 pnw_H264.c \ 65 pnw_MPEG4.c \ 66 pnw_MPEG2.c \ 67 pnw_VC1.c \ 68 pnw_rotate.c \ 69 tng_vld_dec.c \ 70 tng_yuv_processor.c \ 71 tng_VP8.c \ 72 tng_jpegdec.c 73 74ifneq ($(filter $(TARGET_BOARD_PLATFORM),merrifield moorefield morganfield),) 75LOCAL_SRC_FILES += \ 76 pnw_H263ES.c \ 77 pnw_H264ES.c \ 78 pnw_MPEG4ES.c \ 79 pnw_cmdbuf.c \ 80 pnw_hostcode.c \ 81 pnw_hostheader.c \ 82 pnw_hostjpeg.c \ 83 pnw_jpeg.c \ 84 tng_ved_scaling.c \ 85 tng_cmdbuf.c \ 86 tng_hostheader.c \ 87 tng_hostcode.c \ 88 tng_picmgmt.c \ 89 tng_hostbias.c \ 90 tng_H264ES.c \ 91 tng_H263ES.c \ 92 tng_MPEG4ES.c \ 93 tng_jpegES.c \ 94 tng_slotorder.c \ 95 tng_hostair.c \ 96 tng_trace.c 97 98ifeq ($(TARGET_HAS_ISV),true) 99LOCAL_SRC_FILES += \ 100 vsp_VPP.c \ 101 vsp_cmdbuf.c \ 102 vsp_vp8.c \ 103 vsp_compose.c 104 105LOCAL_CFLAGS += \ 106 -DPSBVIDEO_MRFL_VPP \ 107 -DPSBVIDEO_VPP_TILING 108endif 109 110ifeq ($(TARGET_HAS_VPP),true) 111LOCAL_SRC_FILES += \ 112 vsp_VPP.c \ 113 vsp_vp8.c \ 114 vsp_cmdbuf.c \ 115 vsp_compose.c 116endif 117 118ifeq ($(TARGET_HAS_VPP),true) 119LOCAL_C_INCLUDES += \ 120 $(TARGET_OUT_HEADERS)/libmedia_utils_vpp 121endif 122 123 124ifeq ($(TARGET_HAS_VPP),true) 125LOCAL_SHARED_LIBRARIES += libvpp_setting 126LOCAL_CFLAGS += DPSBVIDEO_MRFL_VPP_SETTING 127endif 128 129ifeq ($(TARGET_HAS_VPP),true) 130LOCAL_CFLAGS += \ 131 -DPSBVIDEO_MRFL_VPP -DPSBVIDEO_MRFL \ 132 -DPSBVIDEO_VPP_TILING -DSLICE_HEADER_PARSING 133else 134LOCAL_CFLAGS += \ 135 -DPSBVIDEO_MRFL_VPP \ 136 -DPSBVIDEO_MRFL \ 137 -DSLICE_HEADER_PARSING 138endif 139 140ifeq ($(TARGET_BOARD_PLATFORM),merrifield) 141ifeq ($(TARGET_HAS_VPP),true) 142LOCAL_CFLAGS += -DPSBVIDEO_MRFL_VPP_ROTATE 143endif 144endif 145 146else 147LOCAL_CFLAGS += \ 148 -DPSBVIDEO_VXD392 -DBAYTRAIL \ 149 -DPSBVIDEO_MSVDX_DEC_TILING -DPSBVIDEO_MSVDX_EC 150endif 151 152ifeq ($(TARGET_HAS_MULTIPLE_DISPLAY),true) 153LOCAL_SRC_FILES += android/psb_mds.cpp 154LOCAL_CFLAGS += -DTARGET_HAS_MULTIPLE_DISPLAY 155LOCAL_SHARED_LIBRARIES += libmultidisplay 156endif 157LOCAL_CFLAGS += -Werror 158 159LOCAL_MODULE_TAGS := optional 160LOCAL_MODULE := pvr_drv_video 161 162include $(BUILD_SHARED_LIBRARY) 163