aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorlinear <dev@linear.network>2021-09-05 01:06:37 -0700
committerFelix Queißner <felix@ib-queissner.de>2021-09-05 11:03:57 +0200
commit0a8ecd6223e25e8125477093ecc2c87fdd369767 (patch)
treed58b9ed224a4441de4377b241731747fa78b3f63 /src
parente494b4b8a4a9d71ae4c7fa21100129f2518c0569 (diff)
Fix building on macOS/arm64
Homebrew installs to a different directory on macOS/arm64. this adds checks in the Makefile and in kristall.pro, and sets the correct paths to Homebrew depending on whether the build is targeting arm64 or not.
Diffstat (limited to 'src')
-rw-r--r--src/kristall.pro18
1 files changed, 13 insertions, 5 deletions
diff --git a/src/kristall.pro b/src/kristall.pro
index 8b8ce98..cca3b72 100644
--- a/src/kristall.pro
+++ b/src/kristall.pro
@@ -55,11 +55,19 @@ win32-g++ {
macx {
# Homebrew include paths
- INCLUDEPATH += /usr/local/opt/qt/include
- LIBS += -L/usr/local/opt/qt/lib
-
- INCLUDEPATH += /usr/local/opt/openssl/include
- LIBS += -L/usr/local/opt/openssl/lib
+ contains(QMAKE_HOST.arch, arm.*):{
+ INCLUDEPATH += /opt/homebrew/opt/qt/include
+ LIBS += -L/opt/homebrew/opt/qt/lib
+
+ INCLUDEPATH += /opt/homebrew/opt/openssl/include
+ LIBS += -L/opt/homebrew/opt/openssl/lib
+ } else {
+ INCLUDEPATH += /usr/local/opt/qt/include
+ LIBS += -L/usr/local/opt/qt/lib
+
+ INCLUDEPATH += /usr/local/opt/openssl/include
+ LIBS += -L/usr/local/opt/openssl/lib
+ }
ICON = icons/AppIcon.icns
}