From d89904e2bbed5b879ecc6c4dee9dc0d4e6141c17 Mon Sep 17 00:00:00 2001 From: tunmx Date: Thu, 9 Mar 2023 08:48:08 +0800 Subject: [PATCH] Command modify --- command/build_release_linux_share.sh | 11 ++++++++++- command/docker_build_linux_x86_shared_lib.sh | 1 - 2 files changed, 10 insertions(+), 2 deletions(-) delete mode 100644 command/docker_build_linux_x86_shared_lib.sh diff --git a/command/build_release_linux_share.sh b/command/build_release_linux_share.sh index b4da8f8..b5d6dd5 100644 --- a/command/build_release_linux_share.sh +++ b/command/build_release_linux_share.sh @@ -1,6 +1,15 @@ -BUILD_DIR=build/linux +uname_s=$(uname -s) +dir_name="linux" +if [ "$uname_s" == "Darwin" ];then + echo "MacOS" + # shellcheck disable=SC2034 + dir_name="darwin" +fi + +BUILD_DIR=build/${dir_name} mkdir -p ${BUILD_DIR} +# shellcheck disable=SC2164 cd ${BUILD_DIR} cmake -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARE=ON -DBUILD_SAMPLES=OFF -DBUILD_TEST=OFF ../.. diff --git a/command/docker_build_linux_x86_shared_lib.sh b/command/docker_build_linux_x86_shared_lib.sh deleted file mode 100644 index 8b13789..0000000 --- a/command/docker_build_linux_x86_shared_lib.sh +++ /dev/null @@ -1 +0,0 @@ -