Skip to content

Commit

Permalink
ci/macOS: refactor build file
Browse files Browse the repository at this point in the history
Signed-off-by: Adrian Stanea <[email protected]>
  • Loading branch information
Adrian-Stanea committed Aug 6, 2024
1 parent dc69f55 commit 2a6a5d9
Showing 1 changed file with 34 additions and 13 deletions.
47 changes: 34 additions & 13 deletions CI/macOS/make_macOS
Original file line number Diff line number Diff line change
@@ -1,19 +1,40 @@
#!/bin/sh -e

TOP_DIR=$(pwd)
set -ex

set -x

mkdir -p build
mkdir -p build_tar
WORKDIR=$(pwd)
export MACOSX_DEPLOYMENT_TARGET=10.15

cd build
cmake -DOSX_PACKAGE=ON -DENABLE_TOOLS=ON -DENABLE_PYTHON=ON -DENABLE_CSHARP=ON -DENABLE_LOG=ON -DBUILD_EXAMPLES=ON ..
make
ls
make_package() {
echo "### Make OSX packague"
mkdir -p "${WORKDIR}"/build && cd "${WORKDIR}"/build
cmake "${WORKDIR}"/build \
-DOSX_PACKAGE=ON \
-DENABLE_TOOLS=ON \
-DENABLE_PYTHON=ON \
-DENABLE_CSHARP=ON \
-DENABLE_LOG=ON \
-DBUILD_EXAMPLES=ON
make
ls
cd $WORKDIR
}

make_tar() {
echo "### Make OSX tar"
mkdir -p "${WORKDIR}"/build_tar && cd "${WORKDIR}"/build_tar
cmake "${WORKDIR}"/build \
-DOSX_PACKAGE=OFF \
-DENABLE_PACKAGING=ON \
-DENABLE_PYTHON=ON \
-DENABLE_CSHARP=ON \
-DENABLE_TOOLS=ON \
-DENABLE_LOG=ON \
-DBUILD_EXAMPLES=ON
make && make package
ls
cd $WORKDIR
}

cd ${TOP_DIR}/build_tar
cmake -DOSX_PACKAGE=OFF -DENABLE_PACKAGING=ON -DENABLE_PYTHON=ON -DENABLE_CSHARP=ON -DENABLE_TOOLS=ON -DENABLE_LOG=ON -DBUILD_EXAMPLES=ON ..
make && make package
ls
make_package
make_tar

0 comments on commit 2a6a5d9

Please sign in to comment.