| 1 |
|
| 2 |
ifneq (@ac_no_gsm_codec@,1) |
| 3 |
ifeq (@ac_external_gsm@,1) |
| 4 |
# External |
| 5 |
else |
| 6 |
DIRS += gsm |
| 7 |
endif |
| 8 |
endif |
| 9 |
|
| 10 |
ifneq (@ac_no_ilbc_codec@,1) |
| 11 |
DIRS += ilbc |
| 12 |
endif |
| 13 |
|
| 14 |
# Exclude Speex? |
| 15 |
EXCLUDE_SPEEX = 0 |
| 16 |
ifeq (@ac_no_speex_codec@,1) |
| 17 |
ifneq (@ac_no_speex_aec@,) |
| 18 |
EXCLUDE_SPEEX = 1 |
| 19 |
endif |
| 20 |
endif |
| 21 |
|
| 22 |
ifneq ($(EXCLUDE_SPEEX),1) |
| 23 |
ifeq (@ac_external_speex@,1) |
| 24 |
# External speex |
| 25 |
else |
| 26 |
DIRS += speex |
| 27 |
endif |
| 28 |
endif |
| 29 |
|
| 30 |
ifneq (@ac_no_g7221_codec@,1) |
| 31 |
DIRS += g7221 |
| 32 |
endif |
| 33 |
|
| 34 |
ifneq ($(findstring pa,@ac_pjmedia_snd@),) |
| 35 |
ifeq (@ac_external_pa@,1) |
| 36 |
# External PA |
| 37 |
else |
| 38 |
#DIRS += portaudio |
| 39 |
endif |
| 40 |
endif |
| 41 |
|
| 42 |
ifneq ($(findstring windows_os,@ac_pjmedia_video@),) |
| 43 |
DIRS += baseclasses |
| 44 |
endif |
| 45 |
|
| 46 |
ifneq (@ac_no_srtp@,1) |
| 47 |
ifneq (@ac_external_srtp@,0) |
| 48 |
# External SRTP |
| 49 |
else |
| 50 |
DIRS += srtp |
| 51 |
endif |
| 52 |
|
| 53 |
ifeq (@ac_ssl_has_aes_gcm@,0) |
| 54 |
CIPHERS_SRC = crypto/cipher/aes.o crypto/cipher/aes_icm.o \ |
| 55 |
# crypto/cipher/aes_cbc.o |
| 56 |
HASHES_SRC = crypto/hash/sha1.o crypto/hash/hmac.o \ |
| 57 |
# crypto/hash/tmmhv2.o |
| 58 |
RNG_SRC = # crypto/rng/rand_source.o crypto/rng/prng.o \ |
| 59 |
# crypto/rng/ctr_prng.o |
| 60 |
else |
| 61 |
CIPHERS_SRC = crypto/cipher/aes_icm_ossl.o crypto/cipher/aes_gcm_ossl.o |
| 62 |
HASHES_SRC = crypto/hash/hmac_ossl.o |
| 63 |
RNG_SRC = # crypto/rng/rand_source_ossl.o |
| 64 |
SRTP_OTHER_CFLAGS = -DOPENSSL -DGCM |
| 65 |
endif |
| 66 |
|
| 67 |
|
| 68 |
endif |
| 69 |
|
| 70 |
ifeq (@ac_pjmedia_resample@,libresample) |
| 71 |
DIRS += resample |
| 72 |
endif |
| 73 |
|
| 74 |
ifneq (@ac_no_yuv@,1) |
| 75 |
ifeq (@ac_external_yuv@,1) |
| 76 |
# External yuv |
| 77 |
else |
| 78 |
DIRS += yuv |
| 79 |
endif |
| 80 |
endif |
| 81 |
|
| 82 |
ifneq (@ac_no_webrtc@,1) |
| 83 |
ifeq (@ac_external_webrtc@,1) |
| 84 |
# External webrtc |
| 85 |
else |
| 86 |
DIRS += webrtc |
| 87 |
WEBRTC_OTHER_CFLAGS = -fexceptions -DWEBRTC_POSIX=1 @ac_webrtc_cflags@ |
| 88 |
ifneq ($(findstring sse2,@ac_webrtc_instset@),) |
| 89 |
WEBRTC_SRC = \ |
| 90 |
modules/audio_processing/aec/aec_core_sse2.o \ |
| 91 |
modules/audio_processing/aec/aec_rdft_sse2.o \ |
| 92 |
modules/audio_processing/aecm/aecm_core_c.o \ |
| 93 |
modules/audio_processing/ns/nsx_core_c.o \ |
| 94 |
system_wrappers/source/cpu_features.o |
| 95 |
else ifneq ($(findstring neon,@ac_webrtc_instset@),) |
| 96 |
WEBRTC_SRC = \ |
| 97 |
modules/audio_processing/aec/aec_core_neon.o \ |
| 98 |
modules/audio_processing/aec/aec_rdft_neon.o \ |
| 99 |
modules/audio_processing/aecm/aecm_core_c.o \ |
| 100 |
modules/audio_processing/aecm/aecm_core_neon.o \ |
| 101 |
modules/audio_processing/ns/nsx_core_c.o \ |
| 102 |
modules/audio_processing/ns/nsx_core_neon.o \ |
| 103 |
common_audio/signal_processing/cross_correlation_neon.o \ |
| 104 |
common_audio/signal_processing/downsample_fast_neon.o \ |
| 105 |
common_audio/signal_processing/min_max_operations_neon.o |
| 106 |
WEBRTC_OTHER_CFLAGS += -DWEBRTC_HAS_NEON |
| 107 |
else ifneq ($(findstring mips,@ac_webrtc_instset@),) |
| 108 |
WEBRTC_SRC = \ |
| 109 |
modules/audio_processing/aec/aec_core_mips.o \ |
| 110 |
modules/audio_processing/aec/aec_rdft_mips.o \ |
| 111 |
modules/audio_processing/aecm/aecm_core_mips.o \ |
| 112 |
modules/audio_processing/ns/nsx_core_mips.o \ |
| 113 |
common_audio/signal_processing/cross_correlation_mips.o \ |
| 114 |
common_audio/signal_processing/downsample_fast_mips.o \ |
| 115 |
common_audio/signal_processing/min_max_operations_mips.o |
| 116 |
|
| 117 |
WEBRTC_OTHER_CFLAGS += -DMIPS_FPU_LE |
| 118 |
else # Generic fixed point |
| 119 |
WEBRTC_SRC = \ |
| 120 |
modules/audio_processing/aecm/aecm_core_c.o \ |
| 121 |
modules/audio_processing/ns/nsx_core_c.o \ |
| 122 |
common_audio/signal_processing/complex_fft.o |
| 123 |
endif |
| 124 |
endif |
| 125 |
endif |
| 126 |
|
| 127 |
ifneq (@ac_no_webrtc_aec3@,1) |
| 128 |
ifeq (@ac_external_webrtc_aec3@,1) |
| 129 |
# External webrtc AEC3 |
| 130 |
else |
| 131 |
DIRS += webrtc_aec3 |
| 132 |
WEBRTC_AEC3_OTHER_CFLAGS = -fexceptions @ac_webrtc_aec3_cflags@ |
| 133 |
WEBRTC_AEC3_OTHER_CFLAGS += -Wno-unknown-warning-option -Wno-address -Wno-nonnull-compare -Wno-return-type -Wno-deprecated-builtins |
| 134 |
ifneq ($(findstring sse2,@ac_webrtc_aec3_instset@),) |
| 135 |
export WEBRTC_AEC3_SRC = \ |
| 136 |
common_audio/resampler/sinc_resampler_sse.o \ |
| 137 |
common_audio/third_party/ooura/fft_size_128/ooura_fft_sse2.o |
| 138 |
export WEBRTC_AEC3_SRC += \ |
| 139 |
common_audio/resampler/sinc_resampler_avx2.o \ |
| 140 |
modules/audio_processing/aec3/adaptive_fir_filter_erl_avx2.o \ |
| 141 |
modules/audio_processing/aec3/adaptive_fir_filter_avx2.o \ |
| 142 |
modules/audio_processing/aec3/fft_data_avx2.o \ |
| 143 |
modules/audio_processing/aec3/matched_filter_avx2.o \ |
| 144 |
modules/audio_processing/aec3/vector_math_avx2.o \ |
| 145 |
modules/audio_processing/agc2/rnn_vad/rnn_vector_math_avx2.o |
| 146 |
WEBRTC_AEC3_OTHER_CFLAGS += -mfma |
| 147 |
else ifneq ($(findstring neon,@ac_webrtc_aec3_instset@),) |
| 148 |
export WEBRTC_AEC3_SRC = \ |
| 149 |
common_audio/resampler/sinc_resampler_neon.o \ |
| 150 |
common_audio/third_party/ooura/fft_size_128/ooura_fft_neon.o |
| 151 |
WEBRTC_AEC3_OTHER_CFLAGS += -DWEBRTC_HAS_NEON |
| 152 |
endif |
| 153 |
endif |
| 154 |
endif |