-
Notifications
You must be signed in to change notification settings - Fork 5
/
Makefile
24 lines (21 loc) · 1.05 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#SHELL := /bin/bash
all: android
android:
@echo "Step: Generating Android builds"
@echo "1: arm64-v8a"
cargo ndk -t arm64-v8a build -p ur-registry-ffi --release
@echo "2: armeabi-v7a"
cargo ndk -t armeabi-v7a build -p ur-registry-ffi --release
@echo "3: x86"
cargo ndk -t x86 build -p ur-registry-ffi --release
@echo "4: x86_64"
cargo ndk -t x86_64 build -p ur-registry-ffi --release
@echo "Android buildup"
generate_xcframework:
@echo "Step: Generate XCFramework"
cargo build -r --target aarch64-apple-ios --no-default-features
cargo build -r --target x86_64-apple-ios --no-default-features
cargo build -r --target aarch64-apple-ios-sim --no-default-features
mkdir -p target/sim
lipo target/aarch64-apple-ios-sim/release/libur_registry_ffi.a target/x86_64-apple-ios/release/libur_registry_ffi.a -create -output target/sim/libur_registry_ffi.a
xcodebuild -create-xcframework -library target/sim/libur_registry_ffi.a -headers include -library target/aarch64-apple-ios/release/libur_registry_ffi.a -headers include -output target/URRegistryFFI.xcframework