From 5eef405b0049eeba8b084aa536ec0213d3aca5ed Mon Sep 17 00:00:00 2001 From: johnche Date: Tue, 4 Jun 2024 11:15:47 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B9=8B=E5=89=8D=E4=BC=9A=E6=8A=A5[:=20=3D=3D?= =?UTF-8?q?:=20unary=20operator=20expected=EF=BC=8C=E5=AF=BC=E8=87=B4?= =?UTF-8?q?=E9=83=BD=E7=BC=96=E8=AF=91ssl=E7=89=88=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ios.sh | 45 ++++++++++++++++++++++----------------------- 1 file changed, 22 insertions(+), 23 deletions(-) diff --git a/ios.sh b/ios.sh index 3471d58..e2c2f35 100644 --- a/ios.sh +++ b/ios.sh @@ -52,29 +52,28 @@ GYP_DEFINES+=" ios_target_arch=arm64" GYP_DEFINES+=" host_os=$HOST_OS OS=ios" export GYP_DEFINES -if [ -f "configure" ]; then - - if [ $WITHSSL == "" ]; then - ./configure \ - --ninja \ - --dest-cpu=arm64 \ - --dest-os=ios \ - --without-snapshot \ - --without-ssl \ - --enable-static \ - --with-intl=none \ - --cross-compiling - else - ./configure \ - --ninja \ - --dest-cpu=arm64 \ - --dest-os=ios \ - --without-snapshot \ - --openssl-no-asm \ - --enable-static \ - --with-intl=none \ - --cross-compiling - fi +if [ "$WITHSSL" == "" ]; then + echo "=========================building without-ssl version=================================" + ./configure \ + --ninja \ + --dest-cpu=arm64 \ + --dest-os=ios \ + --without-snapshot \ + --without-ssl \ + --enable-static \ + --with-intl=none \ + --cross-compiling +else + echo "=========================building with-ssl version=================================" + ./configure \ + --ninja \ + --dest-cpu=arm64 \ + --dest-os=ios \ + --without-snapshot \ + --openssl-no-asm \ + --enable-static \ + --with-intl=none \ + --cross-compiling fi ./ninja -j 8 -w dupbuild=warn -C out/Release