1LOCAL_PATH := $(call my-dir) 2include $(CLEAR_VARS) 3 4libavce_source_dir := $(LOCAL_PATH) 5 6## Arch-common settings 7LOCAL_MODULE := libavcenc 8#LOCAL_32_BIT_ONLY := true 9 10LOCAL_MODULE_CLASS := STATIC_LIBRARIES 11 12LOCAL_CFLAGS += -DNDEBUG -UHP_PL -DN_MB_ENABLE -fPIC 13LOCAL_CFLAGS += -O3 14 15LOCAL_C_INCLUDES := $(LOCAL_PATH)/encoder $(LOCAL_PATH)/common 16 17libavce_srcs_c += common/ih264_resi_trans_quant.c 18libavce_srcs_c += common/ih264_iquant_itrans_recon.c 19libavce_srcs_c += common/ih264_ihadamard_scaling.c 20libavce_srcs_c += common/ih264_inter_pred_filters.c 21libavce_srcs_c += common/ih264_luma_intra_pred_filters.c 22libavce_srcs_c += common/ih264_chroma_intra_pred_filters.c 23libavce_srcs_c += common/ih264_padding.c 24libavce_srcs_c += common/ih264_mem_fns.c 25libavce_srcs_c += common/ih264_deblk_edge_filters.c 26libavce_srcs_c += common/ih264_deblk_tables.c 27libavce_srcs_c += common/ih264_cavlc_tables.c 28libavce_srcs_c += common/ih264_cabac_tables.c 29libavce_srcs_c += common/ih264_common_tables.c 30libavce_srcs_c += common/ih264_trans_data.c 31libavce_srcs_c += common/ih264_buf_mgr.c 32libavce_srcs_c += common/ih264_dpb_mgr.c 33libavce_srcs_c += common/ih264_list.c 34 35 36libavce_srcs_c += common/ithread.c 37 38libavce_srcs_c += encoder/ih264e_globals.c 39libavce_srcs_c += encoder/ih264e_intra_modes_eval.c 40libavce_srcs_c += encoder/ih264e_half_pel.c 41libavce_srcs_c += encoder/ih264e_mc.c 42libavce_srcs_c += encoder/ih264e_me.c 43libavce_srcs_c += encoder/ih264e_rc_mem_interface.c 44libavce_srcs_c += encoder/ih264e_time_stamp.c 45libavce_srcs_c += encoder/ih264e_modify_frm_rate.c 46libavce_srcs_c += encoder/ih264e_rate_control.c 47libavce_srcs_c += encoder/ih264e_core_coding.c 48libavce_srcs_c += encoder/ih264e_deblk.c 49libavce_srcs_c += encoder/ih264e_api.c 50libavce_srcs_c += encoder/ih264e_process.c 51libavce_srcs_c += encoder/ih264e_encode.c 52libavce_srcs_c += encoder/ih264e_utils.c 53libavce_srcs_c += encoder/ih264e_version.c 54libavce_srcs_c += encoder/ih264e_bitstream.c 55libavce_srcs_c += encoder/ih264e_cavlc.c 56libavce_srcs_c += encoder/ih264e_cabac_init.c 57libavce_srcs_c += encoder/ih264e_cabac.c 58libavce_srcs_c += encoder/ih264e_cabac_encode.c 59libavce_srcs_c += encoder/ih264e_encode_header.c 60libavce_srcs_c += encoder/ih264e_function_selector_generic.c 61libavce_srcs_c += encoder/ih264e_fmt_conv.c 62 63#Rate Control 64libavce_srcs_c += encoder/irc_rate_control_api.c 65libavce_srcs_c += encoder/irc_bit_allocation.c 66libavce_srcs_c += encoder/irc_cbr_buffer_control.c 67libavce_srcs_c += encoder/irc_est_sad.c 68libavce_srcs_c += encoder/irc_fixed_point_error_bits.c 69libavce_srcs_c += encoder/irc_frame_info_collector.c 70libavce_srcs_c += encoder/irc_mb_model_based.c 71libavce_srcs_c += encoder/irc_picture_type.c 72libavce_srcs_c += encoder/irc_rd_model.c 73libavce_srcs_c += encoder/irc_vbr_storage_vbv.c 74libavce_srcs_c += encoder/irc_vbr_str_prms.c 75 76#ME files 77libavce_srcs_c += encoder/ime.c 78libavce_srcs_c += encoder/ime_distortion_metrics.c 79 80 81 82LOCAL_SRC_FILES := $(libavce_srcs_c) $(libavce_srcs_asm) 83 84 85# Load the arch-specific settings 86include $(LOCAL_PATH)/encoder.arm.mk 87include $(LOCAL_PATH)/encoder.arm64.mk 88include $(LOCAL_PATH)/encoder.x86.mk 89include $(LOCAL_PATH)/encoder.x86_64.mk 90include $(LOCAL_PATH)/encoder.mips.mk 91include $(LOCAL_PATH)/encoder.mips64.mk 92 93include $(BUILD_STATIC_LIBRARY) 94