summaryrefslogtreecommitdiff
path: root/pjmedia
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 /pjmedia
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 'pjmedia')
-rw-r--r--pjmedia/build/os-auto.mak.in24
1 files changed, 18 insertions, 6 deletions
diff --git a/pjmedia/build/os-auto.mak.in b/pjmedia/build/os-auto.mak.in
index 63e95a3c..4754030b 100644
--- a/pjmedia/build/os-auto.mak.in
+++ b/pjmedia/build/os-auto.mak.in
@@ -32,18 +32,14 @@ ANDROID_CFLAGS = @ac_android_cflags@
OPENH264_CFLAGS = @ac_openh264_cflags@
OPENH264_LDFLAGS = @ac_openh264_ldflags@
-# WebRtc
-WEBRTC_CFLAGS = @ac_webrtc_cflags@
-WEBRTC_LDFLAGS = @ac_webrtc_ldflags@
-
# PJMEDIA features exclusion
export CFLAGS += @ac_no_small_filter@ @ac_no_large_filter@ @ac_no_speex_aec@ \
$(SDL_CFLAGS) $(FFMPEG_CFLAGS) $(V4L2_CFLAGS) $(QT_CFLAGS) \
$(DARWIN_CFLAGS) $(ANDROID_CFLAGS) \
- $(OPENH264_CFLAGS) $(WEBRTC_CFLAGS)
+ $(OPENH264_CFLAGS)
export LDFLAGS += $(SDL_LDFLAGS) $(FFMPEG_LDFLAGS) $(V4L2_LDFLAGS) \
- $(OPENH264_LDFLAGS) $(WEBRTC_LDFLAGS)
+ $(OPENH264_LDFLAGS)
# Define the desired sound device backend
# Valid values are:
@@ -203,6 +199,22 @@ export CFLAGS += -I$(THIRD_PARTY)/yuv/include
endif
endif
+#
+# libwebrtc
+#
+ifeq (@ac_no_webrtc@,1)
+export CFLAGS += -DPJMEDIA_HAS_WEBRTC_AEC=0
+else
+export CFLAGS += -DPJMEDIA_HAS_WEBRTC_AEC=1
+ifneq ($(findstring arm,$(@ac_webrtc_instset@)),)
+export CFLAGS += -DPJMEDIA_WEBRTC_AEC_USE_MOBILE=1
+endif
+
+ifeq (@ac_external_webrtc@,0)
+export CFLAGS += -I$(THIRD_PARTY)/webrtc/src
+endif
+endif
+
#
# MacOSX specific