Skip to content

Commit

Permalink
zmq lib fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
abhishekinstnt committed Sep 30, 2024
1 parent 175c1a6 commit 30a1dda
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
1 change: 1 addition & 0 deletions aries_framework_vcx/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ edition = "2021"
[dependencies]
uniffi = { version = "0.28.0", features = ["cli"] }
openssl = { version = "0.10", features = ["vendored"] }
aries_vcx_anoncreds = { path = "../aries/aries_vcx_anoncreds" }
aries_vcx = { path = "../aries/aries_vcx", features = [
"askar_wallet",
] }
Expand Down
14 changes: 10 additions & 4 deletions aries_framework_vcx/src/scripts/ios.build.cargo.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,20 @@
TARGET_NICKNAME="arm64"
ABI="iphoneos"

generate_bindings() {

presetup() {

brew install cmake autoconf automake libtool pkg-config git
git clone https://github.com/zeromq/libzmq.git vendor/libzmq
cd vendor/libzmq
./autogen.sh
./configure
make
make install

}

generate_bindings() {

export UNIFFI_ROOT="${ARIES_VCX_ROOT}/aries_framework_vcx"
export IOS_APP_DIR="${ARIES_VCX_ROOT}/aries_framework_vcx/ios/"
Expand Down Expand Up @@ -46,9 +52,8 @@
mkdir -p ${ABI_PATH}

pushd ${UNIFFI_ROOT}
cargo build --target ${TARGET}
#--features "aries_vcx_anoncreds/zmq_vendored"
cp ${ARIES_VCX_ROOT}/aries_framework_vcx/target/${TARGET}/debug/libuniffi_vcx.a ${ABI_PATH}/libuniffi_vcx.a
cargo build --target ${TARGET} --features "aries_vcx_anoncreds/zmq_vendored"
cp ${ARIES_VCX_ROOT}/target/${TARGET}/debug/libuniffi_vcx.a ${ABI_PATH}/libuniffi_vcx.a

popd
}
Expand Down Expand Up @@ -151,6 +156,7 @@

}

#presetup
generate_bindings
build_uniffi_for_demo
build_ios_xcframework
Expand Down

0 comments on commit 30a1dda

Please sign in to comment.