Skip to content

Commit f410e21

Browse files
Merge pull request #9 from weslleymurdock/main
sync
2 parents c7697d9 + 4415e8a commit f410e21

File tree

4 files changed

+30
-23
lines changed

4 files changed

+30
-23
lines changed

.github/workflows/pjsua2.yml

+7-5
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,12 @@ jobs:
1414
permissions:
1515
contents: write
1616
steps:
17-
- name: Setup Xcode
18-
uses: maxim-lobanov/[email protected]
19-
with:
20-
xcode-version: '15.1'
17+
- name: Selecting Xcode Version
18+
run: sudo xcode-select -switch /Applications/Xcode_15.2.app
19+
20+
- name: Running Xcode version Is?
21+
run: /usr/bin/xcodebuild -version
22+
2123
- name: Checkout
2224
uses: actions/checkout@v4
2325
with:
@@ -27,7 +29,7 @@ jobs:
2729
brew install nasm autoconf automake libtool swig
2830
sudo mv /Applications/Xcode_15.1.app /Applications/Xcode.app
2931
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
32+
./build --ssl --opus --h264 -a=x86_64,arm64 --ci
3133
- uses: actions/upload-artifact@v3
3234
with:
3335
name: libpjsua2-ios

.github/workflows/release.yml

+7-5
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,12 @@ jobs:
1111
permissions:
1212
contents: write
1313
steps:
14-
- name: Setup Xcode
15-
uses: maxim-lobanov/[email protected]
16-
with:
17-
xcode-version: '15.1'
14+
- name: Selecting Xcode Version
15+
run: sudo xcode-select -switch /Applications/Xcode_15.2.app
16+
17+
- name: Running Xcode version Is?
18+
run: /usr/bin/xcodebuild -version
19+
1820
- name: Checkout
1921
uses: actions/checkout@v4
2022
with:
@@ -23,7 +25,7 @@ jobs:
2325
run: |
2426
brew install nasm autoconf automake libtool swig
2527
sed -i'' -e 's/xamarin/maui/g' ${{ github.workspace }}/pjproject/pjsip-apps/src/swig/csharp/Makefile
26-
./build h264 opus ssl -a=x86_64,arm64
28+
./build h264 opus ssl -a=x86_64,arm64 --ci
2729
tar -zcvf libpjsua2.tar.gz ./libpjsua2
2830
- name: release
2931
uses: actions/create-release@v1

build

+15-12
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,7 @@ 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"
1716
export IOS_SDK_VERSION="17.2"
@@ -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)