Skip to content

Commit

Permalink
Fix mac build
Browse files Browse the repository at this point in the history
  • Loading branch information
thedjnK committed Sep 21, 2024
1 parent f6255ff commit 0ff5012
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 12 deletions.
3 changes: 3 additions & 0 deletions AuTerm-includes.pri
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
# AuTerm global include qmake project settings
# By default all components are built for Github AuTerm releases

# Build for x86_64 and arm64 on mac
QMAKE_APPLE_DEVICE_ARCHS = x86_64 arm64

# Uncomment to exclude building automation form
#DEFINES += "SKIPAUTOMATIONFORM"

Expand Down
8 changes: 4 additions & 4 deletions AuTerm/AuTerm.pro
Original file line number Diff line number Diff line change
Expand Up @@ -94,11 +94,11 @@ CONFIG(release, debug|release) {
DEFINES += "STATICPLUGIN_MCUMGR"

win32: LIBS += -L$$DESTDIR -lplugin_mcumgr
else:unix: LIBS += -L$$DESTDIR -lplugin_mcumgr
else: LIBS += -L$$DESTDIR -lplugin_mcumgr

win32-g++: PRE_TARGETDEPS += $$DESTDIR/libplugin_mcumgr.a
else:win32:!win32-g++: PRE_TARGETDEPS += $$DESTDIR/plugin_mcumgr.lib
else:unix: PRE_TARGETDEPS += $$DESTDIR/libplugin_mcumgr.a
else: PRE_TARGETDEPS += $$DESTDIR/libplugin_mcumgr.a
}
}

Expand All @@ -107,11 +107,11 @@ CONFIG(release, debug|release) {
DEFINES += "STATICPLUGIN_LOGGER"

win32: LIBS += -L$$DESTDIR -lplugin_logger
else:unix: LIBS += -L$$DESTDIR -lplugin_logger
else: LIBS += -L$$DESTDIR -lplugin_logger

win32-g++: PRE_TARGETDEPS += $$DESTDIR/libplugin_logger.a
else:win32:!win32-g++: PRE_TARGETDEPS += $$DESTDIR/plugin_logger.lib
else:unix: PRE_TARGETDEPS += $$DESTDIR/libplugin_logger.a
else: PRE_TARGETDEPS += $$DESTDIR/libplugin_logger.a
}
}
}
Expand Down
6 changes: 2 additions & 4 deletions plugins/logger/logger.pro
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,9 @@ CONFIG += install_ok # Do not cargo-cult this!

# Common build location
CONFIG(release, debug|release) {
macx: DESTDIR = ../../release/AuTerm.app/Frameworks
else: DESTDIR = ../../release
DESTDIR = ../../release
} else {
macx: DESTDIR = ../../debug/AuTerm.app/Frameworks
else: DESTDIR = ../../debug
DESTDIR = ../../debug
}

# Do not prefix with lib for non-static builds
Expand Down
6 changes: 2 additions & 4 deletions plugins/mcumgr/mcumgr.pro
Original file line number Diff line number Diff line change
Expand Up @@ -72,11 +72,9 @@ CONFIG += install_ok # Do not cargo-cult this!

# Common build location
CONFIG(release, debug|release) {
macx: DESTDIR = ../../release/AuTerm.app/Frameworks
else: DESTDIR = ../../release
DESTDIR = ../../release
} else {
macx: DESTDIR = ../../debug/AuTerm.app/Frameworks
else: DESTDIR = ../../debug
DESTDIR = ../../debug


# The following form is only used for creating the GUI in Qt Creator, it is
Expand Down

0 comments on commit 0ff5012

Please sign in to comment.