From 73c4740453724cec41e44477ec8f43c0b58c0ac7 Mon Sep 17 00:00:00 2001 From: xiongziliang <771730766@qq.com> Date: Fri, 13 Oct 2017 15:19:24 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0build=E5=BF=AB=E6=8D=B7?= =?UTF-8?q?=E6=96=B9=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- build_for_android.sh | 2 ++ build_for_ios.sh | 2 ++ build_for_linux.sh | 3 +++ build_for_mac.sh | 2 ++ 4 files changed, 9 insertions(+) diff --git a/build_for_android.sh b/build_for_android.sh index 7c594a81..d720baa3 100755 --- a/build_for_android.sh +++ b/build_for_android.sh @@ -8,6 +8,8 @@ cd .. git clone --depth=50 https://github.com/xiongziliang/ZLMediaKit.git cd ZLMediaKit mkdir -p android_build +rm -rf ./build +ln -s ./android_build build cd android_build cmake .. -DCMAKE_TOOLCHAIN_FILE=../cmake/android.toolchain.cmake -DANDROID_NDK=$ANDROID_NDK_ROOT -DCMAKE_BUILD_TYPE=Release -DANDROID_ABI="armeabi" -DANDROID_NATIVE_API_LEVEL=android-9 make -j4 diff --git a/build_for_ios.sh b/build_for_ios.sh index 787353ad..e34145ca 100755 --- a/build_for_ios.sh +++ b/build_for_ios.sh @@ -8,6 +8,8 @@ cd .. git clone --depth=50 https://github.com/xiongziliang/ZLMediaKit.git cd ZLMediaKit mkdir -p ios_build +rm -rf ./build +ln -s ./ios_build build cd ios_build cmake .. -DCMAKE_TOOLCHAIN_FILE=../cmake/iOS.cmake -DIOS_PLATFORM=OS make -j4 diff --git a/build_for_linux.sh b/build_for_linux.sh index c93cf5d2..a84090cb 100755 --- a/build_for_linux.sh +++ b/build_for_linux.sh @@ -14,7 +14,10 @@ cd .. git clone --depth=50 https://github.com/xiongziliang/ZLMediaKit.git cd ZLMediaKit mkdir -p linux_build +rm -rf ./build +ln -s ./linux_build build cd linux_build + cmake .. make -j4 sudo make install diff --git a/build_for_mac.sh b/build_for_mac.sh index cc466f81..92910f4a 100755 --- a/build_for_mac.sh +++ b/build_for_mac.sh @@ -13,6 +13,8 @@ cd .. git clone --depth=50 https://github.com/xiongziliang/ZLMediaKit.git cd ZLMediaKit mkdir -p mac_build +rm -rf ./build +ln -s ./mac_build build cd mac_build cmake .. -DOPENSSL_ROOT_DIR=/usr/local/Cellar/openssl/1.0.2j/ make -j4