mirror of
https://github.com/logos-messaging/go-zerokit-rln.git
synced 2026-01-02 05:03:10 +00:00
chore: add iOS libraries (#2)
This commit is contained in:
parent
d0d27bf242
commit
77983a6504
2
LICENSE
2
LICENSE
@ -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.
|
||||||
|
|||||||
BIN
libs/aarch64-apple-darwin/librln.a
Normal file
BIN
libs/aarch64-apple-darwin/librln.a
Normal file
Binary file not shown.
BIN
libs/x86_64-apple-darwin/librln.a
Normal file
BIN
libs/x86_64-apple-darwin/librln.a
Normal file
Binary file not shown.
BIN
libs/x86_64-apple-ios/librln.a
Normal file
BIN
libs/x86_64-apple-ios/librln.a
Normal file
Binary file not shown.
@ -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"
|
||||||
|
|||||||
@ -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
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user