Skip to content

Commit df31e24

Browse files
Merge pull request #7 from weslleymurdock/upgrade-pjsip
upgraded pjsip
2 parents c7697d9 + 039eec1 commit df31e24

File tree

3 files changed

+18
-15
lines changed

3 files changed

+18
-15
lines changed

Diff for: .github/workflows/pjsua2.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
brew install nasm autoconf automake libtool swig
2828
sudo mv /Applications/Xcode_15.1.app /Applications/Xcode.app
2929
sed -i'' -e 's/xamarin/maui/g' ${{ github.workspace }}/pjproject/pjsip-apps/src/swig/csharp/Makefile
30-
./build --ssl --opus --h264 -a=x86_64,arm64
30+
./build --ssl --opus --h264 -a=x86_64,arm64 --ci
3131
- uses: actions/upload-artifact@v3
3232
with:
3333
name: libpjsua2-ios

Diff for: build

+16-13
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,10 @@ AVAILABLE_ARCHS=(
1010
)
1111
export PATH_REPO="/Users/runner/work/libpjsua2-ios/libpjsua2-ios"
1212

13-
#export BASE_DIR=`pwd -P`
14-
export BASE_DIR="$PATH_REPO"
13+
export BASE_DIR=`pwd -P`
1514

1615
export MIN_IOS_VERSION="11.0"
17-
export IOS_SDK_VERSION="17.2"
16+
export IOS_SDK_VERSION="17.0"
1817
export AVAILABLE_ARCHS
1918
export USE_ARCHS=()
2019

@@ -28,7 +27,7 @@ export ENABLE_ZRTP=false
2827
export HAS_BITCODE=true
2928
export HAS_IPV6=false
3029
export SHOW_HELP=false
31-
export PJSIP_VERSION="2.14"
30+
export PJSIP_VERSION="2.14.1"
3231
export PJSIP_BASE_URL="https://github.com/pjsip/pjproject.git"
3332
export PJSIP_DIR="$BASE_DIR/pjsip"
3433
export PJSIP_FINAL_LIB_DIR="$BASE_DIR/lib"
@@ -50,8 +49,8 @@ export ZRTP_BUILD_DIR="$BUILD_DIR/zrtp"
5049
export OPUS_BUILD_DIR="$BUILD_DIR/opus"
5150
export H264_BUILD_DIR="$BUILD_DIR/openh264"
5251

53-
export XCODE_SIMULATOR_DEV_PATH="`xcrun -sdk iphonesimulator --show-sdk-platform-path`/Developer"
54-
export XCODE_DEVICE_DEV_PATH="`xcrun -sdk iphoneos --show-sdk-platform-path`/Developer"
52+
export XCODE_SIMULATOR_DEV_PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer"
53+
export XCODE_DEVICE_DEV_PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer"
5554

5655
set -e
5756

@@ -68,6 +67,10 @@ for i in "$@"; do
6867
done <<< $ARCHS
6968
shift
7069
;;
70+
--ci)
71+
export BASE_DIR="$PATH_REPO"
72+
shift
73+
;;
7174
--no-download-pjsip-src)
7275
DOWNLOAD_PJSIP_SRC=false
7376
shift
@@ -133,6 +136,8 @@ function show_help () {
133136
echo " -a, --arch Compile for specific architecture. Input the architectures comma separated."
134137
echo " If empty all architectures will be build (armv7,armv7s,arm64,i386,x86_64)"
135138
echo
139+
echo " --ci Set script to use path's of ci build server"
140+
echo
136141
echo " -h264, --h264, h264 Wheter to include h264/video support in PJSIP. (default: not build)"
137142
echo
138143
echo " -ssl, --ssl, ssl Include SSL for encrypted calling. (default: not build)"
@@ -240,9 +245,7 @@ function build_ssl () {
240245
done
241246

242247
./build-libssl.sh --version=1.1.1d --archs="${USE_ARCHS[*]// /\s}" --ios-min-sdk=${MIN_IOS_VERSION} --targets="$targets"|| exit
243-
mv include include2
244-
mkdir -p include
245-
mv include2/openssl include/openssl
248+
246249
popd > /dev/null
247250
echo "Using SSL..."
248251
rm -rf lib
@@ -503,7 +506,7 @@ function _build () {
503506
export LDFLAGS="${LDFLAGS} -L${H264_BUILD_DIR}/builds/$arch/lib"
504507
fi
505508

506-
export LDFLAGS="${LDFLAGS} -lstdc++"
509+
export LDFLAGS="${LDFLAGS} -lstdc++ -ld_classic"
507510

508511
if [ "$arch" == "i386" ] || [ "$arch" == "x86_64" ]; then
509512
export MIN_IOS="-mios-simulator-version-min=${MIN_IOS_VERSION}"
@@ -515,11 +518,11 @@ function _build () {
515518

516519
cp $PJSIP_CONFIG_SITE_H "$PJSIP_SRC_DIR/pjlib/include/pj"
517520

518-
ARCH="-arch $arch" $configure #>> $arch_log 2>&1 || exit
521+
ARCH="-arch $arch " $configure #>> $arch_log 2>&1 || exit
519522
echo "make dep"
520-
make dep >> $arch_log 2>&1
523+
make dep >> $arch_log 2>&1 || exit
521524
echo "make "
522-
make >> $arch_log 2>&1
525+
make >> $arch_log 2>&1 || exit
523526

524527
if [ $SSL_SUPPORT = true ]; then
525528
if [ $ENABLE_ZRTP = true ]; then

0 commit comments

Comments
 (0)