• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1LOCAL_PATH := $(call my-dir)
2
3include $(CLEAR_VARS)
4
5ifeq ($(TARGET_HAS_ISV),true)
6LOCAL_CFLAGS += -DTARGET_HAS_ISV
7endif
8
9LOCAL_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.
20LOCAL_CLANG_CFLAGS += -Wno-overloaded-virtual
21
22LOCAL_C_INCLUDES := \
23    $(TARGET_OUT_HEADERS)/libva \
24    $(TARGET_OUT_HEADERS)/libmixvbp
25
26ifeq ($(USE_INTEL_SECURE_AVC),true)
27LOCAL_CFLAGS += -DUSE_INTEL_SECURE_AVC
28LOCAL_SRC_FILES += securevideo/$(TARGET_BOARD_PLATFORM)/VideoDecoderAVCSecure.cpp
29LOCAL_C_INCLUDES += $(LOCAL_PATH)/securevideo/$(TARGET_BOARD_PLATFORM)
30LOCAL_CFLAGS += -DUSE_INTEL_SECURE_AVC
31endif
32
33PLATFORM_USE_GEN_HW := \
34    baytrail \
35    cherrytrail
36
37ifneq ($(filter $(TARGET_BOARD_PLATFORM),$(PLATFORM_USE_GEN_HW)),)
38    LOCAL_CFLAGS += -DUSE_AVC_SHORT_FORMAT -DUSE_GEN_HW
39endif
40
41
42PLATFORM_USE_HYBRID_DRIVER := \
43    baytrail
44
45ifneq ($(filter $(TARGET_BOARD_PLATFORM),$(PLATFORM_USE_HYBRID_DRIVER)),)
46    LOCAL_CFLAGS += -DUSE_HYBRID_DRIVER
47endif
48
49PLATFORM_SUPPORT_SLICE_HEADER_PARSER := \
50    merrifield \
51    moorefield
52
53ifneq ($(filter $(TARGET_BOARD_PLATFORM),$(PLATFORM_SUPPORT_SLICE_HEADER_PARSER)),)
54    LOCAL_CFLAGS += -DUSE_SLICE_HEADER_PARSING
55endif
56
57LOCAL_SHARED_LIBRARIES := \
58    libcutils \
59    libva \
60    libva-android \
61    libva-tpi \
62    libdl
63
64LOCAL_COPY_HEADERS_TO  := libmix_videodecoder
65
66LOCAL_COPY_HEADERS := \
67    VideoDecoderHost.h \
68    VideoDecoderInterface.h \
69    VideoDecoderDefs.h
70
71ifneq ($(filter $(TARGET_BOARD_PLATFORM),$(PLATFORM_SUPPORT_SLICE_HEADER_PARSER)),)
72    LOCAL_COPY_HEADERS += securevideo/$(TARGET_BOARD_PLATFORM)/VideoFrameInfo.h
73endif
74
75LOCAL_CFLAGS += -Werror
76LOCAL_MODULE_TAGS := optional
77LOCAL_MODULE := libva_videodecoder
78LOCAL_REQUIRED_MODULES :=libmixvbp
79
80ifeq ($(USE_HW_VP8),true)
81LOCAL_SRC_FILES += VideoDecoderVP8.cpp
82LOCAL_CFLAGS += -DUSE_HW_VP8
83endif
84
85include $(BUILD_SHARED_LIBRARY)
86