Home | History | Annotate | Download | only in videoencoder
      1 LOCAL_PATH := $(call my-dir)
      2 include $(CLEAR_VARS)
      3 
      4 ifeq ($(ENABLE_IMG_GRAPHICS),)
      5 LOCAL_CFLAGS += \
      6     -DBX_RC \
      7     -DOSCL_IMPORT_REF= \
      8     -DOSCL_UNUSED_ARG= \
      9     -DOSCL_EXPORT_REF=
     10 
     11 LOCAL_STATIC_LIBRARIES := \
     12     libstagefright_m4vh263enc
     13 endif
     14 
     15 LOCAL_SRC_FILES := \
     16     VideoEncoderBase.cpp \
     17     VideoEncoderAVC.cpp \
     18     VideoEncoderH263.cpp \
     19     VideoEncoderMP4.cpp \
     20     VideoEncoderVP8.cpp \
     21     VideoEncoderUtils.cpp \
     22     VideoEncoderHost.cpp
     23 
     24 # VideoEncoderAVC.cpp has extraneous parentheses and
     25 # uses va_enc_h264.h with empty union.
     26 LOCAL_CLANG_CFLAGS += \
     27     -Wno-parentheses-equality \
     28     -Wno-extern-c-compat
     29 
     30 ifeq ($(ENABLE_IMG_GRAPHICS),)
     31     LOCAL_SRC_FILES += PVSoftMPEG4Encoder.cpp
     32 endif
     33 
     34 LOCAL_C_INCLUDES := \
     35     $(TARGET_OUT_HEADERS)/libva \
     36     $(call include-path-for, frameworks-native) \
     37     $(TARGET_OUT_HEADERS)/pvr/hal
     38 
     39 ifeq ($(ENABLE_IMG_GRAPHICS),)
     40 LOCAL_C_INCLUDES += \
     41     frameworks/av/media/libstagefright/codecs/m4v_h263/enc/include \
     42     frameworks/av/media/libstagefright/codecs/m4v_h263/enc/src \
     43     frameworks/av/media/libstagefright/codecs/common/include \
     44     frameworks/native/include/media/openmax \
     45     frameworks/native/include/media/hardware \
     46     frameworks/av/media/libstagefright/include
     47 endif
     48 
     49 LOCAL_SHARED_LIBRARIES := \
     50     liblog \
     51     libcutils \
     52     libion \
     53     libutils \
     54     libva \
     55     libva-android \
     56     libva-tpi \
     57     libhardware \
     58     libintelmetadatabuffer \
     59     libsync
     60 
     61 LOCAL_COPY_HEADERS_TO  := libmix_videoencoder
     62 
     63 LOCAL_COPY_HEADERS := \
     64     VideoEncoderHost.h \
     65     VideoEncoderInterface.h \
     66     VideoEncoderDef.h
     67 
     68 ifeq ($(VIDEO_ENC_LOG_ENABLE),true)
     69 LOCAL_CPPFLAGS += -DVIDEO_ENC_LOG_ENABLE
     70 endif
     71 
     72 ifeq ($(NO_BUFFER_SHARE),true)
     73 LOCAL_CPPFLAGS += -DNO_BUFFER_SHARE
     74 endif
     75 
     76 ifeq ($(VIDEO_ENC_STATISTICS_ENABLE),true)
     77 LOCAL_CPPFLAGS += -DVIDEO_ENC_STATISTICS_ENABLE
     78 endif
     79 
     80 ifeq ($(ENABLE_IMG_GRAPHICS),true)
     81     LOCAL_CFLAGS += -DIMG_GFX
     82 
     83     ifeq ($(ENABLE_MRFL_GRAPHICS),true)
     84         LOCAL_CFLAGS += -DMRFLD_GFX
     85     endif
     86 endif
     87 
     88 LOCAL_CFLAGS += -Werror
     89 LOCAL_MODULE_TAGS := optional
     90 LOCAL_MODULE := libva_videoencoder
     91 
     92 include $(BUILD_SHARED_LIBRARY)
     93 
     94 # For libintelmetadatabuffer
     95 # =====================================================
     96 
     97 include $(CLEAR_VARS)
     98 
     99 VIDEO_ENC_LOG_ENABLE := true
    100 
    101 LOCAL_SRC_FILES := \
    102     IntelMetadataBuffer.cpp
    103 
    104 LOCAL_COPY_HEADERS_TO  := libmix_videoencoder
    105 
    106 LOCAL_COPY_HEADERS := \
    107     IntelMetadataBuffer.h
    108 
    109 ifeq ($(INTEL_VIDEO_XPROC_SHARING),true)
    110 LOCAL_SHARED_LIBRARIES := liblog libutils libbinder libgui \
    111                           libui libcutils libhardware
    112 endif
    113 LOCAL_CFLAGS += -Werror
    114 LOCAL_MODULE_TAGS := optional
    115 LOCAL_MODULE := libintelmetadatabuffer
    116 
    117 include $(BUILD_SHARED_LIBRARY)
    118