2013-08-09 15:04:52 +02:00
|
|
|
INC_DIR += $(PRG_DIR)
|
|
|
|
|
2018-04-24 12:40:22 +02:00
|
|
|
LIBS += libc base
|
2013-08-09 15:04:52 +02:00
|
|
|
|
|
|
|
# QtCore
|
|
|
|
ifeq ($(findstring core, $(QT)), core)
|
|
|
|
QT_DEFINES += -DQT_CORE_LIB
|
|
|
|
LIBS += qt5_core
|
|
|
|
endif
|
|
|
|
|
|
|
|
# QtGui
|
|
|
|
ifeq ($(findstring gui, $(QT)), gui)
|
|
|
|
QT_DEFINES += -DQT_GUI_LIB
|
2018-04-24 12:40:22 +02:00
|
|
|
LIBS += qt5_gui qt5_qpa_nitpicker qt5_qjpeg
|
|
|
|
endif
|
|
|
|
|
|
|
|
# QtWidgets
|
|
|
|
ifeq ($(findstring widgets, $(QT)), widgets)
|
|
|
|
QT_DEFINES += -DQT_WIDGETS_LIB
|
|
|
|
LIBS += qt5_widgets
|
2013-08-09 15:04:52 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
# QtNetwork
|
|
|
|
ifeq ($(findstring network, $(QT)), network)
|
|
|
|
LIBS += qt5_network
|
|
|
|
endif
|
|
|
|
|
2017-05-24 20:02:19 +02:00
|
|
|
# QtPrintSupport
|
|
|
|
ifeq ($(findstring printsupport, $(QT)), printsupport)
|
|
|
|
LIBS += qt5_printsupport
|
|
|
|
endif
|
|
|
|
|
2013-11-25 19:03:06 +01:00
|
|
|
# QtQuick
|
|
|
|
ifeq ($(findstring quick, $(QT)), quick)
|
|
|
|
LIBS += qt5_quick
|
|
|
|
endif
|
|
|
|
|
2013-08-09 15:04:52 +02:00
|
|
|
# QtScript
|
|
|
|
ifeq ($(findstring scriptclassic, $(QT)), scriptclassic)
|
|
|
|
LIBS += qt5_scriptclassic
|
|
|
|
else
|
|
|
|
ifeq ($(findstring script, $(QT)), script)
|
|
|
|
# qt5_script does dot work very well at this time, so qt5_scriptclassic gets used in any case
|
|
|
|
LIBS += qt5_scriptclassic
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
|
|
|
# QtXml
|
|
|
|
ifeq ($(findstring xml, $(QT)), xml)
|
|
|
|
LIBS += qt5_xml
|
|
|
|
endif
|
|
|
|
|
2017-07-26 14:46:22 +02:00
|
|
|
# Qml
|
|
|
|
ifeq ($(findstring qml, $(QT)), qml)
|
|
|
|
LIBS += qt5_qml
|
|
|
|
endif
|
|
|
|
|
2013-08-09 15:04:52 +02:00
|
|
|
# QtUiTools
|
2015-03-16 15:37:47 +01:00
|
|
|
# Qt documentation says: CONFIG += uitools
|
2013-08-09 15:04:52 +02:00
|
|
|
ifeq ($(findstring uitools, $(CONFIG)), uitools)
|
|
|
|
LIBS += qt5_ui_tools
|
|
|
|
endif
|
|
|
|
# Qt5 documentation says: QT += uitools
|
|
|
|
ifeq ($(findstring uitools, $(QT)), uitools)
|
|
|
|
LIBS += qt5_ui_tools
|
|
|
|
endif
|
|
|
|
|
|
|
|
# QtWebKit
|
|
|
|
ifeq ($(findstring webkit, $(QT)), webkit)
|
|
|
|
LIBS += qt5_webcore qt5_webkit qt5_webkitwidgets
|
|
|
|
endif
|