1 LOCAL_PATH := $(call my-dir) 2 3 include $(CLEAR_VARS) 4 5 ifeq ($(TARGET_HAS_ISV),true) 6 LOCAL_CFLAGS += -DTARGET_HAS_ISV 7 endif 8 9 LOCAL_SRC_FILES := \ 10 VideoDecoderHost.cpp \ 11 VideoDecoderBase.cpp \ 12 VideoDecoderWMV.cpp \ 13 VideoDecoderMPEG4.cpp \ 14 VideoDecoderMPEG2.cpp \ 15 VideoDecoderAVC.cpp \ 16 VideoDecoderTrace.cpp 17 18 # VideoDecoderHost.cpp includes VideoDecoderWMV.h, 19 # which hides overloaded virtual function parseBuffer. 20 LOCAL_CLANG_CFLAGS += -Wno-overloaded-virtual 21 22 LOCAL_C_INCLUDES := \ 23 $(TARGET_OUT_HEADERS)/libva \ 24 $(TARGET_OUT_HEADERS)/libmixvbp 25 26 ifeq ($(USE_INTEL_SECURE_AVC),true) 27 LOCAL_CFLAGS += -DUSE_INTEL_SECURE_AVC 28 LOCAL_SRC_FILES += securevideo/$(TARGET_BOARD_PLATFORM)/VideoDecoderAVCSecure.cpp 29 LOCAL_C_INCLUDES += $(LOCAL_PATH)/securevideo/$(TARGET_BOARD_PLATFORM) 30 LOCAL_CFLAGS += -DUSE_INTEL_SECURE_AVC 31 endif 32 33 PLATFORM_USE_GEN_HW := \ 34 baytrail \ 35 cherrytrail 36 37 ifneq ($(filter $(TARGET_BOARD_PLATFORM),$(PLATFORM_USE_GEN_HW)),) 38 LOCAL_CFLAGS += -DUSE_AVC_SHORT_FORMAT -DUSE_GEN_HW 39 endif 40 41 42 PLATFORM_USE_HYBRID_DRIVER := \ 43 baytrail 44 45 ifneq ($(filter $(TARGET_BOARD_PLATFORM),$(PLATFORM_USE_HYBRID_DRIVER)),) 46 LOCAL_CFLAGS += -DUSE_HYBRID_DRIVER 47 endif 48 49 PLATFORM_SUPPORT_SLICE_HEADER_PARSER := \ 50 merrifield \ 51 moorefield 52 53 ifneq ($(filter $(TARGET_BOARD_PLATFORM),$(PLATFORM_SUPPORT_SLICE_HEADER_PARSER)),) 54 LOCAL_CFLAGS += -DUSE_SLICE_HEADER_PARSING 55 endif 56 57 LOCAL_SHARED_LIBRARIES := \ 58 libcutils \ 59 libva \ 60 libva-android \ 61 libva-tpi \ 62 libdl 63 64 LOCAL_COPY_HEADERS_TO := libmix_videodecoder 65 66 LOCAL_COPY_HEADERS := \ 67 VideoDecoderHost.h \ 68 VideoDecoderInterface.h \ 69 VideoDecoderDefs.h 70 71 ifneq ($(filter $(TARGET_BOARD_PLATFORM),$(PLATFORM_SUPPORT_SLICE_HEADER_PARSER)),) 72 LOCAL_COPY_HEADERS += securevideo/$(TARGET_BOARD_PLATFORM)/VideoFrameInfo.h 73 endif 74 75 LOCAL_CFLAGS += -Werror 76 LOCAL_MODULE_TAGS := optional 77 LOCAL_MODULE := libva_videodecoder 78 LOCAL_REQUIRED_MODULES :=libmixvbp 79 80 ifeq ($(USE_HW_VP8),true) 81 LOCAL_SRC_FILES += VideoDecoderVP8.cpp 82 LOCAL_CFLAGS += -DUSE_HW_VP8 83 endif 84 85 # TODO: Fix this. 86 LOCAL_CFLAGS += -Wno-error=unused-variable 87 88 include $(BUILD_SHARED_LIBRARY) 89