Select Git revision
compile_pjsip.sh
-
Tristan Matthews authored
They've been fixed upstream. Refs #44894
Tristan Matthews authoredThey've been fixed upstream. Refs #44894
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
compile_pjsip.sh 835 B
#!/bin/bash
if [ "$#" -eq "0" ]
then
CONFIGURE=./configure
MAKE="make dep && make"
elif [ "$1" == "-a" ]
then
CONFIGURE=./configure-android
# android doesn't need make
MAKE="make dep"
else
echo "Usage: $0 [or -a for android]"
exit 1
fi
OPTIONS="--disable-oss
--disable-sound
--disable-video
--enable-ext-sound
--disable-speex-aec
--disable-g711-codec
--disable-l16-codec
--disable-gsm-codec
--disable-g722-codec
--disable-g7221-codec
--disable-speex-codec
--disable-ilbc-codec
--disable-sdl
--disable-ffmpeg
--disable-v4l2"
# TODO: autotools should be doing this
cd "`dirname $BASH_SOURCE`"/pjproject-2.2.1
CFLAGS=-g $CONFIGURE $OPTIONS && sh -c "$MAKE" && echo "pjsip successfully compiled"