diff --git a/LICENSE b/LICENSE index 261eeb9..bdb8bb8 100644 --- a/LICENSE +++ b/LICENSE @@ -186,7 +186,7 @@ same "printed page" as the copyright notice for easier 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"); you may not use this file except in compliance with the License. diff --git a/libs/aarch64-apple-darwin/librln.a b/libs/aarch64-apple-darwin/librln.a new file mode 100644 index 0000000..757a0bb Binary files /dev/null and b/libs/aarch64-apple-darwin/librln.a differ diff --git a/libs/x86_64-apple-darwin/librln.a b/libs/x86_64-apple-darwin/librln.a new file mode 100644 index 0000000..ae02cfa Binary files /dev/null and b/libs/x86_64-apple-darwin/librln.a differ diff --git a/libs/x86_64-apple-ios/librln.a b/libs/x86_64-apple-ios/librln.a new file mode 100644 index 0000000..d035cf1 Binary files /dev/null and b/libs/x86_64-apple-ios/librln.a differ diff --git a/rln/link.go b/rln/link.go index e890a19..9e47335 100644 --- a/rln/link.go +++ b/rln/link.go @@ -20,6 +20,7 @@ package rln #cgo darwin,386,!ios LDFLAGS:-L${SRCDIR}/../libs/i686-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 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" diff --git a/scripts/build.sh b/scripts/build.sh index 8ace3b3..b303c23 100755 --- a/scripts/build.sh +++ b/scripts/build.sh @@ -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=i686-pc-windows-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-pc-windows-gnu cross build --release --lib --target=x86_64-unknown-linux-gnu cross build --release --lib --target=x86_64-unknown-linux-musl # TODO: these work only on iOS -#rustup target add aarch64-apple-ios x86_64-apple-ios -#cross build --release --target=x86_64-apple-darwin --lib -#cross build --release --target=aarch64-apple-darwin --lib -#cargo lipo --release --targets=aarch64-apple-ios,x86_64-apple-ios - +rustup target add aarch64-apple-ios x86_64-apple-ios x86_64-apple-darwin aarch64-apple-darwin +cargo build --release --target=x86_64-apple-darwin --lib +cargo build --release --target=aarch64-apple-darwin --lib +cargo build --release --target=x86_64-apple-ios --lib +cargo build --release --target=aarch64-apple-ios --lib +#cargo lipo --release popd TOOLS_DIR=`dirname $0` 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` do PLATFORM_DIR=${DIRECTORY}/$platform