1 LOCAL_PATH := $(call my-dir) 2 include $(CLEAR_VARS) 3 include frameworks/av/media/libstagefright/codecs/common/Config.mk 4 5 AAC_LIBRARY = fraunhofer 6 7 LOCAL_SRC_FILES := basic_op/basicop2.c basic_op/oper_32b.c 8 9 LOCAL_SRC_FILES += \ 10 AACEncoder.cpp \ 11 src/aac_rom.c \ 12 src/aacenc.c \ 13 src/aacenc_core.c \ 14 src/adj_thr.c \ 15 src/band_nrg.c \ 16 src/bit_cnt.c \ 17 src/bitbuffer.c \ 18 src/bitenc.c \ 19 src/block_switch.c \ 20 src/channel_map.c \ 21 src/dyn_bits.c \ 22 src/grp_data.c \ 23 src/interface.c \ 24 src/line_pe.c \ 25 src/ms_stereo.c \ 26 src/pre_echo_control.c \ 27 src/psy_configuration.c \ 28 src/psy_main.c \ 29 src/qc_main.c \ 30 src/quantize.c \ 31 src/sf_estim.c \ 32 src/spreading.c \ 33 src/stat_bits.c \ 34 src/tns.c \ 35 src/transform.c \ 36 src/memalign.c 37 38 ifeq ($(VOTT), v5) 39 LOCAL_SRC_FILES += \ 40 src/asm/ARMV5E/AutoCorrelation_v5.s \ 41 src/asm/ARMV5E/band_nrg_v5.s \ 42 src/asm/ARMV5E/CalcWindowEnergy_v5.s \ 43 src/asm/ARMV5E/PrePostMDCT_v5.s \ 44 src/asm/ARMV5E/R4R8First_v5.s \ 45 src/asm/ARMV5E/Radix4FFT_v5.s 46 endif 47 48 ifeq ($(VOTT), v7) 49 LOCAL_SRC_FILES += \ 50 src/asm/ARMV5E/AutoCorrelation_v5.s \ 51 src/asm/ARMV5E/band_nrg_v5.s \ 52 src/asm/ARMV5E/CalcWindowEnergy_v5.s \ 53 src/asm/ARMV7/PrePostMDCT_v7.s \ 54 src/asm/ARMV7/R4R8First_v7.s \ 55 src/asm/ARMV7/Radix4FFT_v7.s 56 endif 57 58 LOCAL_MODULE := libstagefright_aacenc 59 60 LOCAL_ARM_MODE := arm 61 62 LOCAL_STATIC_LIBRARIES := 63 64 LOCAL_SHARED_LIBRARIES := 65 66 LOCAL_C_INCLUDES := \ 67 frameworks/av/include \ 68 frameworks/av/media/libstagefright/include \ 69 frameworks/av/media/libstagefright/codecs/common/include \ 70 $(LOCAL_PATH)/src \ 71 $(LOCAL_PATH)/inc \ 72 $(LOCAL_PATH)/basic_op 73 74 ifeq ($(VOTT), v5) 75 LOCAL_CFLAGS += -DARMV5E -DARM_INASM -DARMV5_INASM 76 LOCAL_C_INCLUDES += $(LOCAL_PATH)/src/asm/ARMV5E 77 endif 78 79 ifeq ($(VOTT), v7) 80 LOCAL_CFLAGS += -DARMV5E -DARMV7Neon -DARM_INASM -DARMV5_INASM -DARMV6_INASM 81 LOCAL_C_INCLUDES += $(LOCAL_PATH)/src/asm/ARMV5E 82 LOCAL_C_INCLUDES += $(LOCAL_PATH)/src/asm/ARMV7 83 endif 84 85 LOCAL_CFLAGS += -Werror 86 87 include $(BUILD_STATIC_LIBRARY) 88 89 ################################################################################ 90 91 include $(CLEAR_VARS) 92 93 ifeq ($(AAC_LIBRARY), fraunhofer) 94 95 include $(CLEAR_VARS) 96 97 LOCAL_SRC_FILES := \ 98 SoftAACEncoder2.cpp 99 100 LOCAL_C_INCLUDES := \ 101 frameworks/av/media/libstagefright/include \ 102 frameworks/native/include/media/openmax \ 103 external/aac/libAACenc/include \ 104 external/aac/libFDK/include \ 105 external/aac/libMpegTPEnc/include \ 106 external/aac/libSBRenc/include \ 107 external/aac/libSYS/include 108 109 LOCAL_CFLAGS := 110 111 LOCAL_CFLAGS += -Werror 112 113 LOCAL_STATIC_LIBRARIES := libFraunhoferAAC 114 115 LOCAL_SHARED_LIBRARIES := \ 116 libstagefright_omx libstagefright_foundation libutils liblog 117 118 LOCAL_MODULE := libstagefright_soft_aacenc 119 LOCAL_MODULE_TAGS := optional 120 121 include $(BUILD_SHARED_LIBRARY) 122 123 else # visualon 124 125 LOCAL_SRC_FILES := \ 126 SoftAACEncoder.cpp 127 128 LOCAL_C_INCLUDES := \ 129 frameworks/av/media/libstagefright/include \ 130 frameworks/av/media/libstagefright/codecs/common/include \ 131 frameworks/native/include/media/openmax 132 133 LOCAL_CFLAGS := -DOSCL_IMPORT_REF= 134 135 LOCAL_CFLAGS += -Werror 136 137 LOCAL_STATIC_LIBRARIES := \ 138 libstagefright_aacenc 139 140 LOCAL_SHARED_LIBRARIES := \ 141 libstagefright_omx libstagefright_foundation libutils liblog \ 142 libstagefright_enc_common 143 144 LOCAL_MODULE := libstagefright_soft_aacenc 145 LOCAL_MODULE_TAGS := optional 146 147 include $(BUILD_SHARED_LIBRARY) 148 149 endif # $(AAC_LIBRARY) 150