Skip to content

Commit

Permalink
Update build.sh
Browse files Browse the repository at this point in the history
Changed Ninja to Xcode
Xcode is needed for Notarization to occur for MacOS
  • Loading branch information
bunty95 authored Jun 14, 2024
1 parent 4568a26 commit a171c4c
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions scripts/darwin/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,16 @@ cd "${BUILD_DIR}"

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

#make
Expand All @@ -36,9 +36,9 @@ cd "${BUILD_DIR}"
echo Build with CMake
# Installation paths configuration creates proper macOS Application bundle structure
# https://developer.apple.com/library/archive/documentation/CoreFoundation/Conceptual/CFBundles/BundleTypes/BundleTypes.html
cmake -G Ninja \
cmake -G Xcode \
-DCMAKE_INSTALL_PREFIX=${INSTALL_DIR} \
-DCMAKE_PREFIX_PATH=${Qt6_DIR}/lib/cmake \
-DCMAKE_PREFIX_PATH=${Qt5_DIR}/lib/cmake \
-DCMAKE_OSX_DEPLOYMENT_TARGET=12.7 \
-DCMAKE_BUILD_TYPE=Release \
-DDLT_USE_QT_RPATH=ON \
Expand Down

0 comments on commit a171c4c

Please sign in to comment.