From 78d67a9205358ec4f5c38fa4191f7042d3983047 Mon Sep 17 00:00:00 2001 From: Liong Sauw Ming Date: Thu, 25 Aug 2016 01:36:33 +0000 Subject: 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 --- pjmedia/build/os-auto.mak.in | 24 ++++++++++++++++++------ 1 file changed, 18 insertions(+), 6 deletions(-) (limited to 'pjmedia') 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 -- cgit v1.2.3