pjproject_bundled: Make build single threaded
[asterisk/asterisk.git] / third-party / pjproject / Makefile.rules
index f39629b..ae4b6a5 100644 (file)
@@ -1,7 +1,37 @@
 PJPROJECT_URL = http://www.pjsip.org/release/$(PJPROJECT_VERSION)
 
 # Even though we're not installing pjproject, we're setting prefix to /opt/pjproject to be safe
-PJPROJECT_CONFIG_OPTS = --prefix=/opt/pjproject --with-external-speex --with-external-gsm --with-external-srtp \
-       --with-external-pa --disable-video --disable-v4l2 --disable-sound \
-       --disable-opencore-amr --disable-ilbc-codec --without-libyuv --disable-g7221-codec \
-       --enable-epoll
+
+PJPROJECT_CONFIG_OPTS = --prefix=/opt/pjproject \
+       --disable-speex-codec \
+       --disable-speex-aec \
+       --disable-speex-aec \
+       --disable-gsm-codec \
+       --disable-ilbc-codec \
+       --disable-l16-codec \
+       --disable-g722-codec \
+       --disable-g7221-codec \
+       --disable-opencore-amr \
+       --disable-webrtc \
+       --disable-silk \
+       --disable-opus \
+       --disable-video \
+       --disable-v4l2 \
+       --disable-sound \
+       --disable-ext-sound \
+       --disable-oss \
+       --disable-sdl \
+       --disable-libyuv \
+       --disable-ffmpeg \
+       --disable-openh264 \
+       --disable-ipp \
+       --without-external-pa \
+       --without-external-srtp
+
+ifeq ($(findstring TEST_FRAMEWORK,$(MENUSELECT_CFLAGS)),)
+    PJPROJECT_CONFIG_OPTS += --disable-resample --disable-g711-codec
+endif
+
+ifeq ($(shell uname -s),Linux)
+    PJPROJECT_CONFIG_OPTS +=  --enable-epoll
+endif