Home | History | Annotate | Download | only in videocodec
      1 ifeq ($(strip $(BOARD_USES_WRS_OMXIL_CORE)),true)
      2 LOCAL_PATH := $(call my-dir)
      3 
      4 ifeq ($(strip $(USE_VIDEO_EFFECT)),true)
      5 LOCAL_C_FLAGS := -DUSE_VIDEO_EFFECT
      6 endif
      7 
      8 ################################################################################
      9 
     10 include $(CLEAR_VARS)
     11 
     12 ifeq ($(TARGET_HAS_ISV),true)
     13 LOCAL_CFLAGS += -DTARGET_HAS_ISV
     14 endif
     15 
     16 LOCAL_SHARED_LIBRARIES := \
     17     libwrs_omxil_common \
     18     libva_videodecoder \
     19     liblog \
     20     libva \
     21     libva-android
     22 
     23 LOCAL_C_INCLUDES := \
     24     $(TARGET_OUT_HEADERS)/wrs_omxil_core \
     25     $(TARGET_OUT_HEADERS)/khronos/openmax \
     26     $(TARGET_OUT_HEADERS)/libmix_videodecoder \
     27     $(TARGET_OUT_HEADERS)/libva \
     28     $(call include-path-for, frameworks-native)/media/hardware \
     29     $(call include-path-for, frameworks-native)/media/openmax \
     30     $(call include-path-for, libhardware)
     31 
     32 PLATFORM_USE_GEN_HW := \
     33     baytrail \
     34     cherrytrail
     35 
     36 ifneq ($(filter $(TARGET_BOARD_PLATFORM),$(PLATFORM_USE_GEN_HW)),)
     37 LOCAL_C_INCLUDES += $(TARGET_OUT_HEADERS)/ufo
     38 endif
     39 
     40 LOCAL_SRC_FILES := \
     41     OMXComponentCodecBase.cpp \
     42     OMXVideoDecoderBase.cpp \
     43     OMXVideoDecoderAVC.cpp
     44 
     45 LOCAL_CFLAGS += -Werror
     46 LOCAL_MODULE_TAGS := optional
     47 LOCAL_MODULE := libOMXVideoDecoderAVC
     48 ifeq ($(TARGET_BOARD_PLATFORM),clovertrail)
     49 LOCAL_CFLAGS += -DVED_TILING
     50 endif
     51 
     52 ifeq ($(TARGET_BOARD_PLATFORM),merrifield)
     53 LOCAL_CFLAGS += -DVED_TILING
     54 endif
     55 
     56 ifeq ($(TARGET_BOARD_PLATFORM),moorefield)
     57 LOCAL_CFLAGS += -DVED_TILING
     58 LOCAL_CFLAGS += -DUSE_META_DATA
     59 endif
     60 
     61 ifeq ($(TARGET_VPP_USE_GEN),true)
     62 LOCAL_CFLAGS += -DDEINTERLACE_EXT
     63 endif
     64 
     65 ifeq ($(TARGET_BOARD_PLATFORM),baytrail)
     66 LOCAL_CFLAGS += -DUSE_GEN_HW
     67 endif
     68 
     69 include $(BUILD_SHARED_LIBRARY)
     70 
     71 ################################################################################
     72 
     73 PLATFORM_SUPPORT_VP8 := \
     74     merrifield \
     75     morganfield \
     76     moorefield \
     77     baytrail \
     78     cherrytrail
     79 
     80 ifneq ($(filter $(TARGET_BOARD_PLATFORM),$(PLATFORM_SUPPORT_VP8)),)
     81 include $(CLEAR_VARS)
     82 
     83 ifeq ($(TARGET_HAS_ISV),true)
     84 LOCAL_CFLAGS += -DTARGET_HAS_ISV
     85 endif
     86 
     87 LOCAL_SHARED_LIBRARIES := \
     88     libwrs_omxil_common \
     89     libva_videodecoder \
     90     liblog \
     91     libva \
     92     libva-android
     93 
     94 LOCAL_C_INCLUDES := \
     95     $(TARGET_OUT_HEADERS)/wrs_omxil_core \
     96     $(TARGET_OUT_HEADERS)/khronos/openmax \
     97     $(TARGET_OUT_HEADERS)/libmix_videodecoder \
     98     $(TARGET_OUT_HEADERS)/libva \
     99     $(call include-path-for, frameworks-native)/media/hardware \
    100     $(call include-path-for, frameworks-native)/media/openmax \
    101     $(call include-path-for, libhardware)
    102 
    103 LOCAL_SRC_FILES := \
    104     OMXComponentCodecBase.cpp \
    105     OMXVideoDecoderBase.cpp \
    106     OMXVideoDecoderVP8.cpp
    107 
    108 LOCAL_CFLAGS += -Werror
    109 LOCAL_MODULE_TAGS := optional
    110 LOCAL_MODULE := libOMXVideoDecoderVP8
    111 
    112 ifeq ($(TARGET_BOARD_PLATFORM),merrifield)
    113 LOCAL_CFLAGS += -DVED_TILING
    114 endif
    115 
    116 ifeq ($(TARGET_BOARD_PLATFORM),moorefield)
    117 LOCAL_CFLAGS += -DVED_TILING
    118 LOCAL_CFLAGS += -DUSE_META_DATA
    119 endif
    120 
    121 PLATFORM_USE_GEN_HW := \
    122     baytrail \
    123     cherrytrail
    124 
    125 ifneq ($(filter $(TARGET_BOARD_PLATFORM),$(PLATFORM_USE_GEN_HW)),)
    126 LOCAL_C_INCLUDES += $(TARGET_OUT_HEADERS)/ufo
    127 endif
    128 
    129 ifneq ($(filter $(TARGET_BOARD_PLATFORM),$(PLATFORM_USE_GEN_HW)),)
    130 LOCAL_CFLAGS += -DUSE_GEN_HW
    131 endif
    132 
    133 ifeq ($(TARGET_BOARD_PLATFORM),baytrail)
    134 LOCAL_CFLAGS += -DUSE_X_TILE
    135 endif
    136 
    137 include $(BUILD_SHARED_LIBRARY)
    138 endif
    139 
    140 ################################################################################
    141 
    142 # VP9 with SW decode and HW Render
    143 include $(CLEAR_VARS)
    144 
    145 ifeq ($(TARGET_HAS_ISV),true)
    146 LOCAL_CFLAGS += -DTARGET_HAS_ISV
    147 endif
    148 
    149 LOCAL_SHARED_LIBRARIES := \
    150     libwrs_omxil_common \
    151     libva_videodecoder \
    152     liblog \
    153     libva \
    154     libva-android \
    155     libva-tpi
    156 
    157 LOCAL_STATIC_LIBRARIES := \
    158     libvpx_internal
    159 
    160 LOCAL_C_INCLUDES := \
    161     $(TARGET_OUT_HEADERS)/wrs_omxil_core \
    162     $(TARGET_OUT_HEADERS)/khronos/openmax \
    163     $(TARGET_OUT_HEADERS)/libmix_videodecoder \
    164     $(TARGET_OUT_HEADERS)/libva \
    165     $(LOCAL_PATH)/libvpx_internal/libvpx \
    166     $(LOCAL_PATH)/libvpx_internal/libvpx/vpx_codec \
    167     $(LOCAL_PATH)/libvpx_internal/libvpx/vpx_ports \
    168     $(call include-path-for, frameworks-native)/media/hardware \
    169     $(call include-path-for, frameworks-native)/media/openmax \
    170     $(call include-path-for, libhardware)
    171 
    172 ifeq ($(TARGET_BOARD_PLATFORM),baytrail)
    173 LOCAL_C_INCLUDES += $(TARGET_OUT_HEADERS)/ufo
    174 endif
    175 
    176 LOCAL_SRC_FILES := \
    177     OMXComponentCodecBase.cpp \
    178     OMXVideoDecoderBase.cpp \
    179     OMXVideoDecoderVP9HWR.cpp
    180 
    181 LOCAL_CFLAGS += -Werror
    182 LOCAL_MODULE_TAGS := optional
    183 LOCAL_MODULE := libOMXVideoDecoderVP9HWR
    184 
    185 ifeq ($(TARGET_BOARD_PLATFORM),merrifield)
    186 LOCAL_CFLAGS += -DVED_TILING
    187 endif
    188 
    189 ifeq ($(TARGET_BOARD_PLATFORM),moorefield)
    190 LOCAL_CFLAGS += -DVED_TILING
    191 endif
    192 
    193 ifeq ($(TARGET_BOARD_PLATFORM),baytrail)
    194 LOCAL_CFLAGS += -DUSE_GEN_HW
    195 endif
    196 include $(BUILD_SHARED_LIBRARY)
    197 
    198 # VP9 hybrid decoder and HW Render
    199 ifeq ($(TARGET_BOARD_PLATFORM),moorefield)
    200 include $(CLEAR_VARS)
    201 ifeq ($(TARGET_HAS_VPP),true)
    202 LOCAL_CFLAGS += -DTARGET_HAS_VPP
    203 endif
    204 LOCAL_SHARED_LIBRARIES := \
    205     libwrs_omxil_common \
    206     liblog \
    207     libva_videodecoder \
    208     libdl \
    209 
    210 LOCAL_C_INCLUDES := \
    211     $(TARGET_OUT_HEADERS)/wrs_omxil_core \
    212     $(TARGET_OUT_HEADERS)/khronos/openmax \
    213     $(TARGET_OUT_HEADERS)/libmix_videodecoder \
    214     $(TARGET_OUT_HEADERS)/libva \
    215     $(call include-path-for, frameworks-native)/media/hardware \
    216     $(call include-path-for, frameworks-native)/media/openmax \
    217     $(call include-path-for, libhardware)
    218 
    219 ifeq ($(TARGET_BOARD_PLATFORM),baytrail)
    220     LOCAL_C_INCLUDES += $(TARGET_OUT_HEADERS)/ufo
    221 endif
    222 
    223 LOCAL_SRC_FILES := \
    224     OMXComponentCodecBase.cpp \
    225     OMXVideoDecoderBase.cpp \
    226     OMXVideoDecoderVP9Hybrid.cpp
    227 
    228 LOCAL_CFLAGS += -Werror
    229 LOCAL_MODULE_TAGS := optional
    230 LOCAL_MODULE := libOMXVideoDecoderVP9Hybrid
    231 
    232 # OMXVideoDecoderVP9Hybrid.h hides overloaded virtual function FillRenderBuffer.
    233 LOCAL_CLANG_CFLAGS += -Wno-overloaded-virtual
    234 
    235 ifeq ($(TARGET_BOARD_PLATFORM),merrifield)
    236 LOCAL_CFLAGS += -DVED_TILING
    237 endif
    238 
    239 ifeq ($(TARGET_BOARD_PLATFORM),moorefield)
    240 LOCAL_CFLAGS += -DVED_TILING
    241 LOCAL_CFLAGS += -DUSE_META_DATA
    242 endif
    243 
    244 ifeq ($(TARGET_BOARD_PLATFORM),baytrail)
    245 LOCAL_CFLAGS += -DUSE_GEN_HW
    246 endif
    247 include $(BUILD_SHARED_LIBRARY)
    248 endif
    249 
    250 include $(CLEAR_VARS)
    251 ifeq ($(TARGET_HAS_ISV),true)
    252 LOCAL_CFLAGS += -DTARGET_HAS_ISV
    253 endif
    254 
    255 LOCAL_SHARED_LIBRARIES := \
    256     libwrs_omxil_common \
    257     libva_videodecoder \
    258     liblog \
    259     libva \
    260     libva-android
    261 
    262 LOCAL_C_INCLUDES := \
    263     $(TARGET_OUT_HEADERS)/wrs_omxil_core \
    264     $(TARGET_OUT_HEADERS)/khronos/openmax \
    265     $(TARGET_OUT_HEADERS)/libmix_videodecoder \
    266     $(TARGET_OUT_HEADERS)/libva \
    267     $(call include-path-for, frameworks-native)/media/hardware \
    268     $(call include-path-for, frameworks-native)/media/openmax \
    269     $(call include-path-for, libhardware)
    270 
    271 PLATFORM_USE_GEN_HW := \
    272     baytrail \
    273     cherrytrail
    274 
    275 ifneq ($(filter $(TARGET_BOARD_PLATFORM),$(PLATFORM_USE_GEN_HW)),)
    276 LOCAL_C_INCLUDES += $(TARGET_OUT_HEADERS)/ufo
    277 endif
    278 
    279 LOCAL_SRC_FILES := \
    280     OMXComponentCodecBase.cpp \
    281     OMXVideoDecoderBase.cpp \
    282     OMXVideoDecoderMPEG4.cpp
    283 
    284 LOCAL_CFLAGS += -Werror
    285 LOCAL_MODULE_TAGS := optional
    286 LOCAL_MODULE := libOMXVideoDecoderMPEG4
    287 ifeq ($(TARGET_BOARD_PLATFORM),clovertrail)
    288 LOCAL_CFLAGS += -DVED_TILING
    289 endif
    290 
    291 ifeq ($(TARGET_BOARD_PLATFORM),merrifield)
    292 LOCAL_CFLAGS += -DVED_TILING
    293 endif
    294 
    295 ifeq ($(TARGET_BOARD_PLATFORM),moorefield)
    296 LOCAL_CFLAGS += -DVED_TILING
    297 LOCAL_CFLAGS += -DUSE_META_DATA
    298 endif
    299 
    300 ifeq ($(TARGET_BOARD_PLATFORM),baytrail)
    301 LOCAL_CFLAGS += -DUSE_GEN_HW
    302 endif
    303 
    304 include $(BUILD_SHARED_LIBRARY)
    305 
    306 ################################################################################
    307 
    308 include $(CLEAR_VARS)
    309 ifeq ($(TARGET_HAS_ISV),true)
    310 LOCAL_CFLAGS += -DTARGET_HAS_ISV
    311 endif
    312 
    313 LOCAL_SHARED_LIBRARIES := \
    314     libwrs_omxil_common \
    315     libva_videodecoder \
    316     liblog \
    317     libva \
    318     libva-android
    319 
    320 LOCAL_C_INCLUDES := \
    321     $(TARGET_OUT_HEADERS)/wrs_omxil_core \
    322     $(TARGET_OUT_HEADERS)/khronos/openmax \
    323     $(TARGET_OUT_HEADERS)/libmix_videodecoder \
    324     $(TARGET_OUT_HEADERS)/libva \
    325     $(call include-path-for, frameworks-native)/media/hardware \
    326     $(call include-path-for, frameworks-native)/media/openmax \
    327     $(call include-path-for, libhardware)
    328 
    329 PLATFORM_USE_GEN_HW := \
    330     baytrail \
    331     cherrytrail
    332 
    333 ifneq ($(filter $(TARGET_BOARD_PLATFORM),$(PLATFORM_USE_GEN_HW)),)
    334 LOCAL_C_INCLUDES += $(TARGET_OUT_HEADERS)/ufo
    335 endif
    336 
    337 LOCAL_SRC_FILES := \
    338     OMXComponentCodecBase.cpp \
    339     OMXVideoDecoderBase.cpp \
    340     OMXVideoDecoderH263.cpp
    341 
    342 LOCAL_CFLAGS += -Werror
    343 LOCAL_MODULE_TAGS := optional
    344 LOCAL_MODULE := libOMXVideoDecoderH263
    345 ifeq ($(TARGET_BOARD_PLATFORM),clovertrail)
    346 LOCAL_CFLAGS += -DVED_TILING
    347 endif
    348 
    349 ifeq ($(TARGET_BOARD_PLATFORM),merrifield)
    350 LOCAL_CFLAGS += -DVED_TILING
    351 endif
    352 
    353 ifeq ($(TARGET_BOARD_PLATFORM),moorefield)
    354 LOCAL_CFLAGS += -DVED_TILING
    355 LOCAL_CFLAGS += -DUSE_META_DATA
    356 endif
    357 
    358 ifeq ($(TARGET_BOARD_PLATFORM),baytrail)
    359 LOCAL_CFLAGS += -DUSE_GEN_HW
    360 endif
    361 
    362 include $(BUILD_SHARED_LIBRARY)
    363 
    364 ################################################################################
    365 
    366 include $(CLEAR_VARS)
    367 ifeq ($(TARGET_HAS_ISV),true)
    368 LOCAL_CFLAGS += -DTARGET_HAS_ISV
    369 endif
    370 
    371 LOCAL_SHARED_LIBRARIES := \
    372     libwrs_omxil_common \
    373     libva_videodecoder \
    374     liblog \
    375     libva \
    376     libva-android
    377 
    378 LOCAL_C_INCLUDES := \
    379     $(TARGET_OUT_HEADERS)/wrs_omxil_core \
    380     $(TARGET_OUT_HEADERS)/khronos/openmax \
    381     $(TARGET_OUT_HEADERS)/libmix_videodecoder \
    382     $(TARGET_OUT_HEADERS)/libva \
    383     $(call include-path-for, frameworks-native)/media/hardware \
    384     $(call include-path-for, frameworks-native)/media/openmax \
    385     $(call include-path-for, libhardware)
    386 
    387 PLATFORM_USE_GEN_HW := \
    388     baytrail \
    389     cherrytrail
    390 
    391 ifneq ($(filter $(TARGET_BOARD_PLATFORM),$(PLATFORM_USE_GEN_HW)),)
    392 LOCAL_C_INCLUDES += $(TARGET_OUT_HEADERS)/ufo
    393 endif
    394 
    395 LOCAL_SRC_FILES := \
    396     OMXComponentCodecBase.cpp \
    397     OMXVideoDecoderBase.cpp \
    398     OMXVideoDecoderWMV.cpp
    399 
    400 LOCAL_CFLAGS += -Werror
    401 LOCAL_MODULE_TAGS := optional
    402 LOCAL_MODULE := libOMXVideoDecoderWMV
    403 ifeq ($(TARGET_BOARD_PLATFORM),clovertrail)
    404 LOCAL_CFLAGS += -DVED_TILING
    405 endif
    406 
    407 ifeq ($(TARGET_BOARD_PLATFORM),merrifield)
    408 LOCAL_CFLAGS += -DVED_TILING
    409 endif
    410 
    411 ifeq ($(TARGET_BOARD_PLATFORM),moorefield)
    412 LOCAL_CFLAGS += -DVED_TILING
    413 endif
    414 
    415 ifeq ($(TARGET_VPP_USE_GEN),true)
    416 LOCAL_CFLAGS += -DDEINTERLACE_EXT
    417 endif
    418 
    419 ifeq ($(TARGET_BOARD_PLATFORM),baytrail)
    420 LOCAL_CFLAGS += -DUSE_GEN_HW
    421 endif
    422 
    423 include $(BUILD_SHARED_LIBRARY)
    424 
    425 ################################################################################
    426 
    427 #Build secure AVC video decoder only on supported platforms
    428 ifeq ($(USE_INTEL_SECURE_AVC),true)
    429 
    430 include $(CLEAR_VARS)
    431 ifeq ($(TARGET_HAS_ISV),true)
    432 LOCAL_CFLAGS += -DTARGET_HAS_ISV
    433 endif
    434 
    435 LOCAL_SHARED_LIBRARIES := \
    436     libwrs_omxil_common \
    437     libdrm \
    438     libva_videodecoder \
    439     liblog \
    440     libva \
    441     libva-android
    442 
    443 LOCAL_C_INCLUDES := \
    444     $(TARGET_OUT_HEADERS)/wrs_omxil_core \
    445     $(TARGET_OUT_HEADERS)/khronos/openmax \
    446     $(TARGET_OUT_HEADERS)/libmix_videodecoder \
    447     $(TARGET_OUT_HEADERS)/libva \
    448     $(TARGET_OUT_HEADERS)/libdrm \
    449     $(call include-path-for, frameworks-native)/media/hardware \
    450     $(call include-path-for, frameworks-native)/media/openmax \
    451     $(call include-path-for, libhardware)
    452 
    453 LOCAL_SRC_FILES := \
    454     OMXComponentCodecBase.cpp \
    455     OMXVideoDecoderBase.cpp
    456 
    457 ifeq ($(TARGET_BOARD_PLATFORM),moorefield)
    458 LOCAL_SRC_FILES += \
    459     securevideo/moorefield/OMXVideoDecoderAVCSecure.cpp \
    460     securevideo/moorefield/drm_vendor_api.c
    461 LOCAL_CFLAGS += -DVED_TILING
    462 LOCAL_CFLAGS += -DUSE_META_DATA
    463 LOCAL_SHARED_LIBRARIES += libdl
    464 endif
    465 
    466 LOCAL_CFLAGS += -Werror
    467 LOCAL_MODULE_TAGS := optional
    468 LOCAL_MODULE := libOMXVideoDecoderAVCSecure
    469 
    470 include $(BUILD_SHARED_LIBRARY)
    471 
    472 endif #USE_INTEL_SECURE_AVC
    473 
    474 ################################################################################
    475 PLATFORM_SUPPORT_MPEG2 := \
    476     moorefield
    477 
    478 ifneq ($(filter $(TARGET_BOARD_PLATFORM),$(PLATFORM_SUPPORT_MPEG2)),)
    479 include $(CLEAR_VARS)
    480 
    481 ifeq ($(TARGET_HAS_ISV),true)
    482 LOCAL_CFLAGS += -DTARGET_HAS_ISV
    483 endif
    484 
    485 LOCAL_CPPFLAGS :=
    486 LOCAL_LDFLAGS :=
    487 
    488 LOCAL_SHARED_LIBRARIES := \
    489     libwrs_omxil_common \
    490     libva_videodecoder \
    491     liblog \
    492     libva \
    493     libva-android
    494 
    495 LOCAL_C_INCLUDES := \
    496     $(TARGET_OUT_HEADERS)/wrs_omxil_core \
    497     $(TARGET_OUT_HEADERS)/khronos/openmax \
    498     $(TARGET_OUT_HEADERS)/libmix_videodecoder \
    499     $(TARGET_OUT_HEADERS)/libva \
    500     $(call include-path-for, frameworks-native)/media/hardware \
    501     $(call include-path-for, frameworks-native)/media/openmax
    502 
    503 LOCAL_SRC_FILES := \
    504     OMXComponentCodecBase.cpp\
    505     OMXVideoDecoderBase.cpp\
    506     OMXVideoDecoderMPEG2.cpp
    507 
    508 LOCAL_MODULE_TAGS := optional
    509 LOCAL_MODULE := libOMXVideoDecoderMPEG2
    510 
    511 ifeq ($(TARGET_BOARD_PLATFORM),merrifield)
    512 LOCAL_CFLAGS += -DVED_TILING
    513 endif
    514 
    515 ifeq ($(TARGET_BOARD_PLATFORM),moorefield)
    516 LOCAL_CFLAGS += -DVED_TILING
    517 LOCAL_CFLAGS += -DUSE_META_DATA
    518 endif
    519 
    520 include $(BUILD_SHARED_LIBRARY)
    521 endif
    522 
    523 ################################################################################
    524 
    525 include $(CLEAR_VARS)
    526 ifeq ($(TARGET_HAS_ISV),true)
    527 LOCAL_CFLAGS += -DTARGET_HAS_ISV
    528 endif
    529 
    530 LOCAL_SHARED_LIBRARIES := \
    531     libwrs_omxil_common \
    532     liblog \
    533     libva_videoencoder \
    534     libva \
    535     libva-android \
    536     libva-tpi \
    537     libutils \
    538     libcutils \
    539     libhardware \
    540     libintelmetadatabuffer
    541 
    542 LOCAL_C_INCLUDES := \
    543     $(TARGET_OUT_HEADERS)/wrs_omxil_core \
    544     $(TARGET_OUT_HEADERS)/khronos/openmax \
    545     $(TARGET_OUT_HEADERS)/libmix_videoencoder \
    546     $(TARGET_OUT_HEADERS)/libva \
    547     $(call include-path-for, frameworks-native)/media/hardware \
    548     $(call include-path-for, frameworks-native)/media/openmax \
    549 
    550 LOCAL_SRC_FILES := \
    551     OMXComponentCodecBase.cpp \
    552     OMXVideoEncoderBase.cpp \
    553     OMXVideoEncoderAVC.cpp
    554 
    555 LOCAL_CFLAGS += $(LOCAL_C_FLAGS)
    556 LOCAL_CFLAGS += -Werror
    557 LOCAL_MODULE_TAGS := optional
    558 LOCAL_MODULE := libOMXVideoEncoderAVC
    559 include $(BUILD_SHARED_LIBRARY)
    560 
    561 ################################################################################
    562 
    563 include $(CLEAR_VARS)
    564 ifeq ($(TARGET_HAS_ISV),true)
    565 LOCAL_CFLAGS += -DTARGET_HAS_ISV
    566 endif
    567 
    568 LOCAL_SHARED_LIBRARIES := \
    569     libwrs_omxil_common \
    570     liblog \
    571     libva_videoencoder \
    572     libva \
    573     libva-android \
    574     libva-tpi \
    575     libutils \
    576     libcutils \
    577     libhardware \
    578     libintelmetadatabuffer
    579 
    580 LOCAL_C_INCLUDES := \
    581     $(TARGET_OUT_HEADERS)/wrs_omxil_core \
    582     $(TARGET_OUT_HEADERS)/khronos/openmax \
    583     $(TARGET_OUT_HEADERS)/libmix_videoencoder \
    584     $(TARGET_OUT_HEADERS)/libva \
    585     $(call include-path-for, frameworks-native)/media/hardware \
    586     $(call include-path-for, frameworks-native)/media/openmax \
    587 
    588 LOCAL_SRC_FILES := \
    589     OMXComponentCodecBase.cpp \
    590     OMXVideoEncoderBase.cpp \
    591     OMXVideoEncoderH263.cpp
    592 
    593 LOCAL_CFLAGS += $(LOCAL_C_FLAGS)
    594 
    595 ifeq ($(SW_MPEG4_ENCODER),true)
    596     LOCAL_CFLAGS += -DSYNC_MODE
    597 endif
    598 LOCAL_CFLAGS += -Werror
    599 LOCAL_MODULE_TAGS := optional
    600 LOCAL_MODULE := libOMXVideoEncoderH263
    601 include $(BUILD_SHARED_LIBRARY)
    602 
    603 ################################################################################
    604 
    605 include $(CLEAR_VARS)
    606 ifeq ($(TARGET_HAS_ISV),true)
    607 LOCAL_CFLAGS += -DTARGET_HAS_ISV
    608 endif
    609 
    610 LOCAL_SHARED_LIBRARIES := \
    611     libwrs_omxil_common \
    612     liblog \
    613     libva_videoencoder \
    614     libva \
    615     libva-android \
    616     libva-tpi \
    617     libutils \
    618     libcutils \
    619     libhardware \
    620     libintelmetadatabuffer
    621 
    622 LOCAL_C_INCLUDES := \
    623     $(TARGET_OUT_HEADERS)/wrs_omxil_core \
    624     $(TARGET_OUT_HEADERS)/khronos/openmax \
    625     $(TARGET_OUT_HEADERS)/libmix_videoencoder \
    626     $(TARGET_OUT_HEADERS)/libva \
    627     $(call include-path-for, frameworks-native)/media/hardware \
    628     $(call include-path-for, frameworks-native)/media/openmax \
    629 
    630 LOCAL_SRC_FILES := \
    631     OMXComponentCodecBase.cpp \
    632     OMXVideoEncoderBase.cpp \
    633     OMXVideoEncoderMPEG4.cpp
    634 
    635 LOCAL_CFLAGS += $(LOCAL_C_FLAGS)
    636 
    637 LOCAL_CFLAGS += -Werror
    638 LOCAL_MODULE_TAGS := optional
    639 LOCAL_MODULE := libOMXVideoEncoderMPEG4
    640 include $(BUILD_SHARED_LIBRARY)
    641 
    642 ################################################################################
    643 
    644 include $(CLEAR_VARS)
    645 ifeq ($(TARGET_HAS_ISV),true)
    646 LOCAL_CFLAGS += -DTARGET_HAS_ISV
    647 endif
    648 
    649 LOCAL_SHARED_LIBRARIES := \
    650     libwrs_omxil_common \
    651     libva_videodecoder \
    652     liblog \
    653     libva \
    654     libva-android
    655 
    656 LOCAL_C_INCLUDES := \
    657     $(TARGET_OUT_HEADERS)/wrs_omxil_core \
    658     $(TARGET_OUT_HEADERS)/khronos/openmax \
    659     $(TARGET_OUT_HEADERS)/libmix_videodecoder \
    660     $(TARGET_OUT_HEADERS)/libva \
    661     $(call include-path-for, frameworks-native)/media/hardware \
    662     $(call include-path-for, frameworks-native)/media/openmax \
    663     $(call include-path-for, libhardware)
    664 
    665 LOCAL_SRC_FILES := \
    666     OMXComponentCodecBase.cpp \
    667     OMXVideoDecoderBase.cpp \
    668     OMXVideoDecoderPAVC.cpp
    669 
    670 LOCAL_CFLAGS += -Werror
    671 LOCAL_MODULE_TAGS := optional
    672 LOCAL_MODULE := libOMXVideoDecoderPAVC
    673 ifeq ($(TARGET_BOARD_PLATFORM),clovertrail)
    674 LOCAL_CFLAGS += -DVED_TILING
    675 endif
    676 
    677 ifeq ($(TARGET_BOARD_PLATFORM),merrifield)
    678 LOCAL_CFLAGS += -DVED_TILING
    679 endif
    680 
    681 ifeq ($(TARGET_BOARD_PLATFORM),moorefield)
    682 LOCAL_CFLAGS += -DVED_TILING
    683 endif
    684 
    685 include $(BUILD_SHARED_LIBRARY)
    686 
    687 ################################################################################
    688 
    689 include $(CLEAR_VARS)
    690 ifeq ($(TARGET_HAS_ISV),true)
    691 LOCAL_CFLAGS += -DTARGET_HAS_ISV
    692 endif
    693 
    694 LOCAL_SHARED_LIBRARIES := \
    695     libwrs_omxil_common \
    696     liblog \
    697     libva_videoencoder \
    698     libva \
    699     libva-android \
    700     libva-tpi \
    701     libutils \
    702     libcutils \
    703     libhardware \
    704     libintelmetadatabuffer
    705 
    706 LOCAL_C_INCLUDES := \
    707     $(TARGET_OUT_HEADERS)/wrs_omxil_core \
    708     $(TARGET_OUT_HEADERS)/khronos/openmax \
    709     $(TARGET_OUT_HEADERS)/libmix_videoencoder \
    710     $(TARGET_OUT_HEADERS)/libva \
    711     $(call include-path-for, frameworks-native)/media/hardware \
    712     $(call include-path-for, frameworks-native)/media/openmax \
    713 
    714 LOCAL_SRC_FILES := \
    715     OMXComponentCodecBase.cpp \
    716     OMXVideoEncoderBase.cpp \
    717     OMXVideoEncoderVP8.cpp
    718 
    719 LOCAL_CFLAGS += $(LOCAL_C_FLAGS)
    720 LOCAL_CFLAGS += -Werror
    721 LOCAL_MODULE_TAGS := optional
    722 LOCAL_MODULE := libOMXVideoEncoderVP8
    723 include $(BUILD_SHARED_LIBRARY)
    724 
    725 endif # ifeq ($(strip $(BOARD_USES_WRS_OMXIL_CORE)),true)
    726