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 ifeq ($(ENABLE_IMG_GRAPHICS),)
     25     LOCAL_SRC_FILES += PVSoftMPEG4Encoder.cpp
     26 endif
     27 
     28 LOCAL_C_INCLUDES := \
     29     $(TARGET_OUT_HEADERS)/libva \
     30     $(call include-path-for, frameworks-native) \
     31     $(TARGET_OUT_HEADERS)/pvr
     32 
     33 ifeq ($(ENABLE_IMG_GRAPHICS),)
     34 LOCAL_C_INCLUDES += \
     35     frameworks/av/media/libstagefright/codecs/m4v_h263/enc/include \
     36     frameworks/av/media/libstagefright/codecs/m4v_h263/enc/src \
     37     frameworks/av/media/libstagefright/codecs/common/include \
     38     frameworks/native/include/media/openmax \
     39     frameworks/native/include/media/hardware \
     40     frameworks/av/media/libstagefright/include
     41 endif
     42 
     43 LOCAL_SHARED_LIBRARIES := \
     44     libcutils \
     45     libutils \
     46     libva \
     47     libva-android \
     48     libva-tpi \
     49     libhardware \
     50     libintelmetadatabuffer
     51 
     52 LOCAL_COPY_HEADERS_TO  := libmix_videoencoder
     53 
     54 LOCAL_COPY_HEADERS := \
     55     VideoEncoderHost.h \
     56     VideoEncoderInterface.h \
     57     VideoEncoderDef.h
     58 
     59 ifeq ($(VIDEO_ENC_LOG_ENABLE),true)
     60 LOCAL_CPPFLAGS += -DVIDEO_ENC_LOG_ENABLE
     61 endif
     62 
     63 ifeq ($(NO_BUFFER_SHARE),true)
     64 LOCAL_CPPFLAGS += -DNO_BUFFER_SHARE
     65 endif
     66 
     67 ifeq ($(VIDEO_ENC_STATISTICS_ENABLE),true)
     68 LOCAL_CPPFLAGS += -DVIDEO_ENC_STATISTICS_ENABLE
     69 endif
     70 
     71 ifeq ($(ENABLE_IMG_GRAPHICS),true)
     72     LOCAL_CFLAGS += -DIMG_GFX
     73 
     74     ifeq ($(ENABLE_MRFL_GRAPHICS),true)
     75         LOCAL_CFLAGS += -DMRFLD_GFX
     76     endif
     77 endif
     78 
     79 LOCAL_CFLAGS += -Werror
     80 LOCAL_MODULE_TAGS := optional
     81 LOCAL_MODULE := libva_videoencoder
     82 
     83 include $(BUILD_SHARED_LIBRARY)
     84 
     85 # For libintelmetadatabuffer
     86 # =====================================================
     87 
     88 include $(CLEAR_VARS)
     89 
     90 VIDEO_ENC_LOG_ENABLE := true
     91 
     92 LOCAL_SRC_FILES := \
     93     IntelMetadataBuffer.cpp
     94 
     95 LOCAL_COPY_HEADERS_TO  := libmix_videoencoder
     96 
     97 LOCAL_COPY_HEADERS := \
     98     IntelMetadataBuffer.h
     99 
    100 ifeq ($(INTEL_VIDEO_XPROC_SHARING),true)
    101 LOCAL_SHARED_LIBRARIES := liblog libutils libbinder libgui \
    102                           libui libcutils libhardware
    103 endif
    104 LOCAL_CFLAGS += -Werror
    105 LOCAL_MODULE_TAGS := optional
    106 LOCAL_MODULE := libintelmetadatabuffer
    107 
    108 include $(BUILD_SHARED_LIBRARY)
    109