summaryrefslogtreecommitdiff
path: root/third_party/build/os-auto.mak.in
diff options
context:
space:
mode:
authorLiong Sauw Ming <ming@teluu.com>2016-08-25 01:36:33 +0000
committerLiong Sauw Ming <ming@teluu.com>2016-08-25 01:36:33 +0000
commit78d67a9205358ec4f5c38fa4191f7042d3983047 (patch)
tree8af5992cbaec463de76ed49c8538fc7a69ff398a /third_party/build/os-auto.mak.in
parente9fc0d90805002cbca667c7c1d8c275adc458bc6 (diff)
Re #1954: Add WebRTC to third party component
* Add build config for GNU build systems git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@5428 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'third_party/build/os-auto.mak.in')
-rw-r--r--third_party/build/os-auto.mak.in40
1 files changed, 40 insertions, 0 deletions
diff --git a/third_party/build/os-auto.mak.in b/third_party/build/os-auto.mak.in
index 66653fa1..5eac2fd2 100644
--- a/third_party/build/os-auto.mak.in
+++ b/third_party/build/os-auto.mak.in
@@ -64,3 +64,43 @@ else
DIRS += yuv
endif
endif
+
+ifneq (@ac_no_webrtc@,1)
+ifeq (@ac_external_webrtc@,1)
+# External webrtc
+else
+DIRS += webrtc
+WEBRTC_OTHER_CFLAGS = -fexceptions -DWEBRTC_POSIX=1 @ac_webrtc_cflags@
+ifneq ($(findstring sse2,@ac_webrtc_instset@),)
+ WEBRTC_SRC = \
+ modules/audio_processing/aec/aec_core_sse2.o \
+ modules/audio_processing/aec/aec_rdft_sse2.o \
+ modules/audio_processing/aecm/aecm_core_c.o \
+ modules/audio_processing/ns/nsx_core_c.o \
+ system_wrappers/source/cpu_features.o
+else ifneq ($(findstring neon,@ac_webrtc_instset@),)
+ WEBRTC_SRC = \
+ modules/audio_processing/aec/aec_core_neon.o \
+ modules/audio_processing/aec/aec_rdft_neon.o \
+ modules/audio_processing/aecm/aecm_core_c.o \
+ modules/audio_processing/aecm/aecm_core_neon.o \
+ modules/audio_processing/ns/nsx_core_c.o \
+ modules/audio_processing/ns/nsx_core_neon.o \
+ common_audio/signal_processing/cross_correlation_neon.o \
+ common_audio/signal_processing/downsample_fast_neon.o \
+ common_audio/signal_processing/min_max_operations_neon.o
+ WEBRTC_OTHER_CFLAGS += -DWEBRTC_HAS_NEON
+else ifneq ($(findstring mips,@ac_webrtc_instset@),)
+ WEBRTC_SRC = \
+ modules/audio_processing/aec/aec_core_mips.o \
+ modules/audio_processing/aec/aec_rdft_mips.o \
+ modules/audio_processing/aecm/aecm_core_mips.o \
+ modules/audio_processing/ns/nsx_core_mips.o \
+ common_audio/signal_processing/cross_correlation_mips.o \
+ common_audio/signal_processing/downsample_fast_mips.o \
+ common_audio/signal_processing/min_max_operations_mips.o
+
+ WEBRTC_OTHER_CFLAGS += -DMIPS_FPU_LE
+endif
+endif
+endif