mirror of
https://gitlab.com/pholy/OSCAR-code.git
synced 2025-04-04 18:20:42 +00:00
Added use_bundled_libs qmake CONFIG option
This commit is contained in:
parent
3eeef5060d
commit
758ebe8024
@ -1,8 +1,20 @@
|
||||
TEMPLATE = subdirs
|
||||
|
||||
SUBDIRS = 3rdparty sleepyhead
|
||||
CONFIG -= use_bundled_libs
|
||||
|
||||
CONFIG += ordered
|
||||
# Need them for windows..
|
||||
win32:CONFIG += use_bundled_libs
|
||||
|
||||
use_bundled_libs {
|
||||
SUBDIRS = 3rdparty
|
||||
}
|
||||
|
||||
SUBDIRS += sleepyhead
|
||||
|
||||
use_bundled_libs {
|
||||
CONFIG += ordered
|
||||
sleepyhead.depends = 3rdparty
|
||||
}
|
||||
|
||||
TRANSLATIONS += \
|
||||
Translations/Nederlands.nl_NL.ts \
|
||||
@ -13,4 +25,3 @@ TRANSLATIONS += \
|
||||
Translations/Bulgarian.bg.ts
|
||||
|
||||
|
||||
sleepyhead.depends = 3rdparty
|
||||
|
@ -206,39 +206,43 @@ mac {
|
||||
TransFiles.files = $$files(../Translations/*.qm)
|
||||
TransFiles.path = Contents/Resources/Translations
|
||||
QMAKE_BUNDLE_DATA += TransFiles
|
||||
|
||||
# Precopy some frameworks
|
||||
# LibFiles.files = $$OUT_PWD/../3rdparty/qextserialport/qextserialport.framework
|
||||
# LibFiles.path = Contents/Frameworks
|
||||
# QMAKE_BUNDLE_DATA += LibFiles
|
||||
|
||||
#CONFIG(release, debug|release) {
|
||||
# TmpFiles.files = $$files($$OUT_PWD/../3rdparty/quazip/quazip/libquazip.1.dylib) \
|
||||
# $$files($$OUT_PWD/../3rdparty/qextserialport/libqextserialport.1.dylib)
|
||||
#} else: CONFIG(debug, debug|release) {
|
||||
# TmpFiles.files = $$files($$OUT_PWD/../3rdparty/quazip/quazip/libquazip.1.dylib) \
|
||||
# $$files($$OUT_PWD/../3rdparty/qextserialport/libqextserialport_debug.1.dylib)
|
||||
#}
|
||||
# TmpFiles.path = Contents/Frameworks
|
||||
# QMAKE_BUNDLE_DATA += TmpFiles
|
||||
}
|
||||
|
||||
|
||||
win32:CONFIG(release, debug|release): LIBS += -L$$OUT_PWD/../3rdparty/quazip/quazip/release/ -lquazip
|
||||
else:win32:CONFIG(debug, debug|release): LIBS += -L$$OUT_PWD/../3rdparty/quazip/quazip/debug/ -lquazip
|
||||
else:unix: LIBS += -L$$OUT_PWD/../3rdparty/qextserialport/ -lquazip
|
||||
else:unix {
|
||||
use_bundled_libs:QMAKE_LFLAGS += -L$$OUT_PWD/../3rdparty/qextserialport/
|
||||
LIBS += -lquazip
|
||||
}
|
||||
|
||||
INCLUDEPATH += $$PWD/../3rdparty/quazip
|
||||
DEPENDPATH += $$PWD/../3rdparty/quazip
|
||||
use_bundled_libs {
|
||||
INCLUDEPATH += $$PWD/../3rdparty/quazip
|
||||
DEPENDPATH += $$PWD/../3rdparty/quazip
|
||||
} else {
|
||||
INCLUDEPATH += /usr/include
|
||||
INCLUDEPATH += /usr/local/include
|
||||
}
|
||||
|
||||
greaterThan(QT_MAJOR_VERSION,4) {
|
||||
|
||||
win32:CONFIG(release, debug|release): LIBS += -L$$OUT_PWD/../3rdparty/qextserialport/release/ -lQt5ExtSerialPort1
|
||||
else:win32:CONFIG(debug, debug|release): LIBS += -L$$OUT_PWD/../3rdparty/qextserialport/debug/ -lQt5ExtSerialPortd1
|
||||
else:unix: LIBS += -L$$OUT_PWD/../3rdparty/qextserialport/ -lqextserialport
|
||||
else:unix{
|
||||
use_bundled_libs:QMAKE_LFLAGS += -L$$OUT_PWD/../3rdparty/qextserialport/
|
||||
LIBS += -lqextserialport
|
||||
}
|
||||
|
||||
} else {
|
||||
win32:CONFIG(release, debug|release): LIBS += -L$$OUT_PWD/../3rdparty/qextserialport/release/ -lqextserialport
|
||||
else:win32:CONFIG(debug, debug|release): LIBS += -L$$OUT_PWD/../3rdparty/qextserialport/debug/ -lqextserialport
|
||||
else:unix: LIBS += -L$$OUT_PWD/../3rdparty/qextserialport/ -lqextserialport
|
||||
else:unix {
|
||||
use_bundled_libs:QMAKE_LFLAGS += -L$$OUT_PWD/../3rdparty/qextserialport/
|
||||
LIBS += -lqextserialport
|
||||
}
|
||||
}
|
||||
|
||||
INCLUDEPATH += $$PWD/../3rdparty/qextserialport
|
||||
DEPENDPATH += $$PWD/../3rdparty/qextserialport
|
||||
use_bundled_libs {
|
||||
INCLUDEPATH += $$PWD/../3rdparty/qextserialport/src
|
||||
DEPENDPATH += $$PWD/../3rdparty/qextserialport/src
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user