Skip to content

Commit bd87600

Browse files
Merge pull request #3 from PurpShell/master
Split iOS binaries
2 parents bb59d3e + f3783b5 commit bd87600

File tree

10 files changed

+13
-8
lines changed

10 files changed

+13
-8
lines changed

OpusLibs/iOS/.DS_Store

6 KB
Binary file not shown.

OpusLibs/iOS/README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,13 @@ brew install autoconf automake libtool
1010

1111
You also need to have the latest Xcode tools (`xcode-select --install`).
1212

13+
## Configuring the libopus version
14+
15+
You can set the version of libopus by opening the `compile.sh` file and finding the `OPUS_VERSION` variable. Modify it to your heart's content.
16+
1317
## Run the script
1418

15-
Simply run the script!
19+
Simply run the script:
1620

1721
```
1822
./compile.sh

OpusLibs/iOS/compile.sh

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -74,12 +74,9 @@ for ARCH in $ARCHS; do
7474
cd ../../
7575
done
7676

77-
# Use lipo to create a universal library
78-
echo "Creating universal library..."
79-
LIPO_LIBS=""
77+
echo "Copying binaries to output dir..."
8078
for ARCH in $ARCHS; do
81-
LIPO_LIBS="$LIPO_LIBS $BUILD_DIR/$ARCH/installed/lib/libopus.a"
79+
cp $BUILD_DIR/$ARCH/installed/lib/libopus.a $OUTPUT_DIR/libopus_$ARCH.a
8280
done
83-
lipo -create $LIPO_LIBS -output $OUTPUT_DIR/libopus.a
8481

85-
echo "libopus.a has been created at $OUTPUT_DIR/libopus.a"
82+
echo "libopus.a has been created for each arch at $OUTPUT_DIR"

OpusSharp.iOS/OpusSharp.iOS.nuspec

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@
1313
</metadata>
1414

1515
<files>
16-
<file src="lib/libopus.a" target="runtime/ios/native" />
16+
<file src="lib/libopus_arm64.a" target="runtimes/ios-arm64/native" />
17+
<file src="lib/libopus_armv7.a" target="runtimes/ios-armv7/native" />
18+
<file src="lib/libopus_armv7s.a" target="runtimes/ios-armv7s/native" />
19+
<file src="lib/libopus_i386.a" target="runtimes/ios-i386/native" />
20+
<file src="lib/libopus_x86_64.a" target="runtimes/ios-x64/native" />
1721
</files>
1822
</package>

OpusSharp.iOS/lib/libopus.a

-3.6 MB
Binary file not shown.

OpusSharp.iOS/lib/libopus_arm64.a

761 KB
Binary file not shown.

OpusSharp.iOS/lib/libopus_armv7.a

624 KB
Binary file not shown.

OpusSharp.iOS/lib/libopus_armv7s.a

650 KB
Binary file not shown.

OpusSharp.iOS/lib/libopus_i386.a

831 KB
Binary file not shown.

OpusSharp.iOS/lib/libopus_x86_64.a

826 KB
Binary file not shown.

0 commit comments

Comments
 (0)