diff options
Diffstat (limited to 'pjmedia')
-rw-r--r-- | pjmedia/build/os-auto.mak.in | 24 |
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 |