forked from pocoproject/poco
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
11de63e
commit 7bf2e37
Showing
5 changed files
with
81 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
[host_machine] | ||
system = 'darwin' | ||
cpu_family = 'aarch64' | ||
cpu = 'arm64' | ||
endian = 'little' | ||
|
||
[binaries] | ||
c = 'clang' | ||
strip = 'strip' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
#!/bin/bash | ||
|
||
DIR=$(cd `dirname $0` && pwd) | ||
cd $DIR | ||
|
||
meson setup arm-build --buildtype=release --cross-file=arm-build.txt | ||
meson compile -C arm-build | ||
|
||
meson setup x64-build --buildtype=release --cross-file=x64-build.txt | ||
meson compile -C x64-build | ||
|
||
mkdir -p builddir/subprojects/openssl-3.0.2/libcrypto.a.p | ||
mkdir -p builddir/subprojects/openssl-3.0.2/libssl.a.p | ||
|
||
lipo -create -output builddir/subprojects/openssl-3.0.2/libcrypto.a arm-build/subprojects/openssl-3.0.2/libcrypto.a x64-build/subprojects/openssl-3.0.2/libcrypto.a | ||
lipo -create -output builddir/subprojects/openssl-3.0.2/libssl.a arm-build/subprojects/openssl-3.0.2/libssl.a x64-build/subprojects/openssl-3.0.2/libssl.a | ||
|
||
cd arm-build | ||
|
||
for filename in subprojects/openssl-3.0.2/libcrypto.a.p/*.o; do | ||
if [ -f "../x64-build/$filename" ] | ||
then | ||
lipo -create -output ../builddir/$filename ../x64-build/$filename $filename | ||
else | ||
cp $filename ../builddir/$filename | ||
fi | ||
done | ||
|
||
for filename in subprojects/openssl-3.0.2/libssl.a.p/*.o; do | ||
if [ -f "../x64-build/$filename" ] | ||
then | ||
lipo -create -output ../builddir/$filename ../x64-build/$filename $filename | ||
else | ||
cp $filename ../builddir/$filename | ||
fi | ||
done | ||
|
||
cd ../x64-build | ||
|
||
for filename in subprojects/openssl-3.0.2/libcrypto.a.p/*.o; do | ||
if [ ! -f "../arm-build/$filename" ] | ||
then | ||
cp $filename ../builddir/$filename | ||
fi | ||
done | ||
|
||
for filename in subprojects/openssl-3.0.2/libssl.a.p/*.o; do | ||
if [ ! -f "../arm-build/$filename" ] | ||
then | ||
cp $filename ../builddir/$filename | ||
fi | ||
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
[host_machine] | ||
system = 'darwin' | ||
cpu_family = 'x86_64' | ||
cpu = 'x86_64' | ||
endian = 'little' | ||
|
||
[binaries] | ||
c = 'clang' | ||
strip = 'strip' |