Skip to content

Commit

Permalink
Update build.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
bunty95 authored Aug 12, 2024
1 parent 57087ac commit ce469f3
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions scripts/darwin/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,14 @@ cd "${BUILD_DIR}"

if [[ $(uname -m) == 'arm64' ]]; then
Qt5_DIR="/opt/homebrew/opt/qt@5"
echo "Build with cmake $(uname -m) $Qt5_DIR"
echo "Build with cmake $(uname -m) $Qt6_DIR"
qmake ../BuildDltViewer.pro
# cmake ..
else
Qt6_DIR="/usr/local/opt/qt"
echo "Build with qmake $(uname -m) $Qt5_DIR"
qmake ../BuildDltViewer.pro
make
echo "Build with qmake $(uname -m) $Qt6_DIR"
# qmake ../BuildDltViewer.pro
# make
fi

#make
Expand All @@ -38,6 +38,7 @@ cmake -G Ninja \
-DCMAKE_INSTALL_PREFIX=${INSTALL_DIR} \
-DCMAKE_PREFIX_PATH=${Qt6_DIR}/lib/cmake \
-DCMAKE_OSX_DEPLOYMENT_TARGET=10.15 \
-DCMAKE_OSX_ARCHITECTURES=x86_64;arm64 \
-DCMAKE_BUILD_TYPE=Release \
-DDLT_USE_QT_RPATH=ON \
-DDLT_PARSER=OFF \
Expand Down

0 comments on commit ce469f3

Please sign in to comment.