forked from jkcoxson/em_proxy
-
Notifications
You must be signed in to change notification settings - Fork 18
Expand file tree
/
Copy pathjustfile
More file actions
28 lines (22 loc) · 1.22 KB
/
Copy pathjustfile
File metadata and controls
28 lines (22 loc) · 1.22 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
xcframework: apple-build
rm -rf libs
mkdir -p libs
xcodebuild -create-xcframework \
-library target/aarch64-apple-ios/release/libem_proxy.a -headers include \
-library target/aarch64-apple-ios-sim/release/libem_proxy.a -headers include \
-library target/aarch64-apple-tvos/release/libem_proxy.a -headers include \
-library target/aarch64-apple-tvos-sim/release/libem_proxy.a -headers include \
-library target/aarch64-apple-darwin/release/libem_proxy.a -headers include \
-output libs/EMProxy.xcframework
apple-build:
BINDGEN_EXTRA_CLANG_ARGS="--sysroot=$(xcrun --sdk iphoneos --show-sdk-path)" \
IPHONEOS_DEPLOYMENT_TARGET=15.0 \
cargo build --release --target aarch64-apple-ios
BINDGEN_EXTRA_CLANG_ARGS="--sysroot=$(xcrun --sdk iphonesimulator --show-sdk-path)" \
cargo build --release --target aarch64-apple-ios-sim
BINDGEN_EXTRA_CLANG_ARGS="--sysroot=$(xcrun --sdk appletvos --show-sdk-path)" \
TVOS_DEPLOYMENT_TARGET=15.0 \
cargo build --release --target aarch64-apple-tvos
BINDGEN_EXTRA_CLANG_ARGS="--sysroot=$(xcrun --sdk appletvsimulator --show-sdk-path)" \
cargo build --release --target aarch64-apple-tvos-sim
cargo build --release --target aarch64-apple-darwin