chore: add iOS libraries (#2)

This commit is contained in:
Richard Ramos 2022-09-07 15:15:58 -04:00
parent d0d27bf242
commit 77983a6504
No known key found for this signature in database
GPG Key ID: BD36D48BC9FFC88C
6 changed files with 10 additions and 12 deletions

View File

@ -186,7 +186,7 @@
same "printed page" as the copyright notice for easier same "printed page" as the copyright notice for easier
identification within third-party archives. identification within third-party archives.
Copyright [yyyy] [name of copyright owner] Copyright (c) 2022 Status Research & Development GmbH
Licensed under the Apache License, Version 2.0 (the "License"); Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License. you may not use this file except in compliance with the License.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -20,6 +20,7 @@ package rln
#cgo darwin,386,!ios LDFLAGS:-L${SRCDIR}/../libs/i686-apple-darwin #cgo darwin,386,!ios LDFLAGS:-L${SRCDIR}/../libs/i686-apple-darwin
#cgo darwin,arm64,!ios LDFLAGS:-L${SRCDIR}/../libs/aarch64-apple-darwin #cgo darwin,arm64,!ios LDFLAGS:-L${SRCDIR}/../libs/aarch64-apple-darwin
#cgo darwin,amd64,!ios LDFLAGS:-L${SRCDIR}/../libs/x86_64-apple-darwin #cgo darwin,amd64,!ios LDFLAGS:-L${SRCDIR}/../libs/x86_64-apple-darwin
#cgo ios LDFLAGS:-L${SRCDIR}/../libs/universal -framework Security -framework Foundation #cgo ios,amd64 LDFLAGS:-L${SRCDIR}/../libs/x86_64-apple-ios -framework Security -framework Foundation
#cgo ios,arm64 LDFLAGS:-L${SRCDIR}/../libs/aarch64-apple-ios -framework Security -framework Foundation
*/ */
import "C" import "C"

View File

@ -38,26 +38,23 @@ cross build --release --lib --target=arm-unknown-linux-gnueabihf
cross build --release --lib --target=armv7-linux-androideabi cross build --release --lib --target=armv7-linux-androideabi
cross build --release --lib --target=i686-pc-windows-gnu cross build --release --lib --target=i686-pc-windows-gnu
cross build --release --lib --target=i686-unknown-linux-gnu cross build --release --lib --target=i686-unknown-linux-gnu
cross build --release --lib --target=mips-unknown-linux-gnu
cross build --release --lib --target=mips64-unknown-linux-gnuabi64
cross build --release --lib --target=mips64el-unknown-linux-gnuabi64
cross build --release --lib --target=mipsel-unknown-linux-gnu
cross build --release --lib --target=x86_64-linux-android cross build --release --lib --target=x86_64-linux-android
cross build --release --lib --target=x86_64-pc-windows-gnu cross build --release --lib --target=x86_64-pc-windows-gnu
cross build --release --lib --target=x86_64-unknown-linux-gnu cross build --release --lib --target=x86_64-unknown-linux-gnu
cross build --release --lib --target=x86_64-unknown-linux-musl cross build --release --lib --target=x86_64-unknown-linux-musl
# TODO: these work only on iOS # TODO: these work only on iOS
#rustup target add aarch64-apple-ios x86_64-apple-ios rustup target add aarch64-apple-ios x86_64-apple-ios x86_64-apple-darwin aarch64-apple-darwin
#cross build --release --target=x86_64-apple-darwin --lib cargo build --release --target=x86_64-apple-darwin --lib
#cross build --release --target=aarch64-apple-darwin --lib cargo build --release --target=aarch64-apple-darwin --lib
#cargo lipo --release --targets=aarch64-apple-ios,x86_64-apple-ios cargo build --release --target=x86_64-apple-ios --lib
cargo build --release --target=aarch64-apple-ios --lib
#cargo lipo --release
popd popd
TOOLS_DIR=`dirname $0` TOOLS_DIR=`dirname $0`
COMPILE_DIR=${TOOLS_DIR}/../zerokit/target COMPILE_DIR=${TOOLS_DIR}/../zerokit/target
#rm -rf $COMPILE_DIR/x86_64-apple-ios $COMPILE_DIR/aarch64-apple-ios rm -rf $COMPILE_DIR/x86_64-apple-ios $COMPILE_DIR/aarch64-apple-ios
for platform in `ls ${COMPILE_DIR} | grep -v release | grep -v debug` for platform in `ls ${COMPILE_DIR} | grep -v release | grep -v debug`
do do
PLATFORM_DIR=${DIRECTORY}/$platform PLATFORM_DIR=${DIRECTORY}/$platform