159f566c4ec3dfc097ad8163523e522280b27e5c3James DongLOCAL_PATH := $(call my-dir)
259f566c4ec3dfc097ad8163523e522280b27e5c3James Donginclude $(CLEAR_VARS)
359f566c4ec3dfc097ad8163523e522280b27e5c3James Dong
459f566c4ec3dfc097ad8163523e522280b27e5c3James DongLOCAL_SRC_FILES := \
559f566c4ec3dfc097ad8163523e522280b27e5c3James Dong    src/bitstream_io.cpp \
659f566c4ec3dfc097ad8163523e522280b27e5c3James Dong    src/combined_encode.cpp \
759f566c4ec3dfc097ad8163523e522280b27e5c3James Dong    src/datapart_encode.cpp \
859f566c4ec3dfc097ad8163523e522280b27e5c3James Dong    src/dct.cpp \
959f566c4ec3dfc097ad8163523e522280b27e5c3James Dong    src/findhalfpel.cpp \
1059f566c4ec3dfc097ad8163523e522280b27e5c3James Dong    src/fastcodemb.cpp \
1159f566c4ec3dfc097ad8163523e522280b27e5c3James Dong    src/fastidct.cpp \
1259f566c4ec3dfc097ad8163523e522280b27e5c3James Dong    src/fastquant.cpp \
1359f566c4ec3dfc097ad8163523e522280b27e5c3James Dong    src/me_utils.cpp \
1459f566c4ec3dfc097ad8163523e522280b27e5c3James Dong    src/mp4enc_api.cpp \
1559f566c4ec3dfc097ad8163523e522280b27e5c3James Dong    src/rate_control.cpp \
1659f566c4ec3dfc097ad8163523e522280b27e5c3James Dong    src/motion_est.cpp \
1759f566c4ec3dfc097ad8163523e522280b27e5c3James Dong    src/motion_comp.cpp \
1859f566c4ec3dfc097ad8163523e522280b27e5c3James Dong    src/sad.cpp \
1959f566c4ec3dfc097ad8163523e522280b27e5c3James Dong    src/sad_halfpel.cpp \
2059f566c4ec3dfc097ad8163523e522280b27e5c3James Dong    src/vlc_encode.cpp \
2159f566c4ec3dfc097ad8163523e522280b27e5c3James Dong    src/vop.cpp
2259f566c4ec3dfc097ad8163523e522280b27e5c3James Dong
2359f566c4ec3dfc097ad8163523e522280b27e5c3James Dong
2459f566c4ec3dfc097ad8163523e522280b27e5c3James DongLOCAL_MODULE := libstagefright_m4vh263enc
2559f566c4ec3dfc097ad8163523e522280b27e5c3James Dong
2659f566c4ec3dfc097ad8163523e522280b27e5c3James DongLOCAL_CFLAGS := \
2759f566c4ec3dfc097ad8163523e522280b27e5c3James Dong    -DBX_RC \
2859f566c4ec3dfc097ad8163523e522280b27e5c3James Dong    -DOSCL_IMPORT_REF= -DOSCL_UNUSED_ARG= -DOSCL_EXPORT_REF=
2959f566c4ec3dfc097ad8163523e522280b27e5c3James Dong
3059f566c4ec3dfc097ad8163523e522280b27e5c3James DongLOCAL_C_INCLUDES := \
3159f566c4ec3dfc097ad8163523e522280b27e5c3James Dong    $(LOCAL_PATH)/src \
3259f566c4ec3dfc097ad8163523e522280b27e5c3James Dong    $(LOCAL_PATH)/include \
33559bf2836f5da25b75bfb229fec0d20d540ee426James Dong    $(TOP)/frameworks/av/media/libstagefright/include \
346c6b4d0d2b98a7ceee8b697daaf611f8df3254fbJames Dong    $(TOP)/frameworks/native/include/media/openmax
3559f566c4ec3dfc097ad8163523e522280b27e5c3James Dong
3684333e0475bc911adc16417f4ca327c975cf6c36Andreas HuberLOCAL_CFLAGS += -Werror
3784333e0475bc911adc16417f4ca327c975cf6c36Andreas Huber
3859f566c4ec3dfc097ad8163523e522280b27e5c3James Donginclude $(BUILD_STATIC_LIBRARY)
391700744ae0ce2fcf722816453ae0af2cd5646458James Dong
401700744ae0ce2fcf722816453ae0af2cd5646458James Dong################################################################################
411700744ae0ce2fcf722816453ae0af2cd5646458James Dong
421700744ae0ce2fcf722816453ae0af2cd5646458James Donginclude $(CLEAR_VARS)
431700744ae0ce2fcf722816453ae0af2cd5646458James Dong
441700744ae0ce2fcf722816453ae0af2cd5646458James DongLOCAL_SRC_FILES := \
451700744ae0ce2fcf722816453ae0af2cd5646458James Dong        SoftMPEG4Encoder.cpp
461700744ae0ce2fcf722816453ae0af2cd5646458James Dong
471700744ae0ce2fcf722816453ae0af2cd5646458James DongLOCAL_C_INCLUDES := \
481700744ae0ce2fcf722816453ae0af2cd5646458James Dong        frameworks/av/media/libstagefright/include \
491700744ae0ce2fcf722816453ae0af2cd5646458James Dong        frameworks/native/include/media/openmax \
50bf5bea96f236adb5eef78c2f414ef82b3602a0f7Eino-Ville Talvala        frameworks/native/include/media/hardware \
511700744ae0ce2fcf722816453ae0af2cd5646458James Dong        $(LOCAL_PATH)/src \
521700744ae0ce2fcf722816453ae0af2cd5646458James Dong        $(LOCAL_PATH)/include \
531700744ae0ce2fcf722816453ae0af2cd5646458James Dong        $(LOCAL_PATH)/../common/include \
541700744ae0ce2fcf722816453ae0af2cd5646458James Dong        $(LOCAL_PATH)/../common
551700744ae0ce2fcf722816453ae0af2cd5646458James Dong
561700744ae0ce2fcf722816453ae0af2cd5646458James DongLOCAL_CFLAGS := \
571700744ae0ce2fcf722816453ae0af2cd5646458James Dong    -DBX_RC \
581700744ae0ce2fcf722816453ae0af2cd5646458James Dong    -DOSCL_IMPORT_REF= -DOSCL_UNUSED_ARG= -DOSCL_EXPORT_REF=
591700744ae0ce2fcf722816453ae0af2cd5646458James Dong
601700744ae0ce2fcf722816453ae0af2cd5646458James Dong
611700744ae0ce2fcf722816453ae0af2cd5646458James DongLOCAL_STATIC_LIBRARIES := \
621700744ae0ce2fcf722816453ae0af2cd5646458James Dong        libstagefright_m4vh263enc
631700744ae0ce2fcf722816453ae0af2cd5646458James Dong
641700744ae0ce2fcf722816453ae0af2cd5646458James DongLOCAL_SHARED_LIBRARIES := \
651700744ae0ce2fcf722816453ae0af2cd5646458James Dong        libstagefright \
661700744ae0ce2fcf722816453ae0af2cd5646458James Dong        libstagefright_enc_common \
671700744ae0ce2fcf722816453ae0af2cd5646458James Dong        libstagefright_foundation \
681700744ae0ce2fcf722816453ae0af2cd5646458James Dong        libstagefright_omx \
691700744ae0ce2fcf722816453ae0af2cd5646458James Dong        libutils \
70da0dc0af0effe9fbfb3ce3187c8472fca2baf3c6Ying Wang        liblog \
71bf5bea96f236adb5eef78c2f414ef82b3602a0f7Eino-Ville Talvala        libui
721700744ae0ce2fcf722816453ae0af2cd5646458James Dong
731700744ae0ce2fcf722816453ae0af2cd5646458James Dong
741700744ae0ce2fcf722816453ae0af2cd5646458James DongLOCAL_MODULE := libstagefright_soft_mpeg4enc
751700744ae0ce2fcf722816453ae0af2cd5646458James DongLOCAL_MODULE_TAGS := optional
761700744ae0ce2fcf722816453ae0af2cd5646458James Dong
7784333e0475bc911adc16417f4ca327c975cf6c36Andreas HuberLOCAL_CFLAGS += -Werror
7884333e0475bc911adc16417f4ca327c975cf6c36Andreas Huber
791700744ae0ce2fcf722816453ae0af2cd5646458James Donginclude $(BUILD_SHARED_LIBRARY)
80