File tree Expand file tree Collapse file tree 2 files changed +9
-10
lines changed
Expand file tree Collapse file tree 2 files changed +9
-10
lines changed Original file line number Diff line number Diff line change @@ -22,5 +22,4 @@ vcpkg_installed/
2222lib_pulsar.so
2323tests /test.log
2424.tests-container-id.txt
25- include /
26- lib /
25+
Original file line number Diff line number Diff line change @@ -30,7 +30,12 @@ cd "${ROOT_DIR}"
3030
3131source build-support/dep-url.sh
3232
33- if [ ! -f lib/libpulsarwithdeps.a ]; then
33+ CACHE_DIR=$ROOT_DIR /.pulsar-mac-build
34+ PREFIX=${CACHE_DIR} /install
35+ mkdir -p $PREFIX
36+
37+ mkdir -p $PREFIX /lib/
38+ if [ ! -f $PREFIX /lib/libpulsarwithdeps.a ]; then
3439 VERSION=$( cat ./dependencies.yaml | grep pulsar-cpp | awk ' {print $2}' )
3540 curl -O -L $( pulsar_cpp_base_url $VERSION ) /macos-arm64.zip
3641 curl -O -L $( pulsar_cpp_base_url $VERSION ) /macos-x86_64.zip
@@ -39,20 +44,15 @@ if [ ! -f lib/libpulsarwithdeps.a ]; then
3944 unzip -q macos-x86_64.zip -d x86_64
4045 libtool -static -o libpulsarwithdeps.a arm64/lib/libpulsarwithdeps.a x86_64/lib/libpulsarwithdeps.a
4146
42- rm -rf include/ lib/
43- mkdir -p include/ lib/
44- mv arm64/include/* include/
45- mv libpulsarwithdeps.a lib/
47+ mv arm64/include/ $PREFIX /
48+ mv libpulsarwithdeps.a $PREFIX /lib/
4649 rm -rf arm64/ x86_64/ macos-arm64.zip macos-x86_64.zip
4750fi
4851
4952PYTHON_VERSION=$1
5053PYTHON_VERSION_LONG=$2
5154
5255MACOSX_DEPLOYMENT_TARGET=13
53- CACHE_DIR=$ROOT_DIR /.pulsar-mac-build
54- mkdir -p $CACHE_DIR
55- PREFIX=${CACHE_DIR} /install
5656pushd $CACHE_DIR
5757
5858# We need to build OpenSSL from source to have universal2 binaries
You can’t perform that action at this time.
0 commit comments