2013-08-21 18:16:26 +00:00
|
|
|
QT += widgets
|
|
|
|
|
2014-04-07 09:28:04 +00:00
|
|
|
HEADERS += mainwindow.h backend.h regtab.h analyser.h settings.h \
|
2014-05-12 05:59:24 +00:00
|
|
|
std_analysers.h utils.h regdisplaypanel.h regedit.h
|
2014-04-07 09:28:04 +00:00
|
|
|
SOURCES += main.cpp mainwindow.cpp regtab.cpp backend.cpp analyser.cpp \
|
2014-05-12 05:59:24 +00:00
|
|
|
std_analysers.cpp settings.cpp utils.cpp regdisplaypanel.cpp regedit.cpp
|
2013-08-21 18:16:26 +00:00
|
|
|
LIBS += -L../lib/ -lsocdesc -lxml2
|
2016-02-07 21:48:40 +00:00
|
|
|
INCLUDEPATH += ../include/ ../../hwstub/include
|
2015-03-04 10:19:36 +00:00
|
|
|
DEPENDPATH += ../
|
2017-08-30 11:34:00 +00:00
|
|
|
|
|
|
|
greaterThan(QT_MAJOR_VERSION, 4) {
|
|
|
|
# qt5 knows c++11
|
|
|
|
CONFIG += c++11
|
|
|
|
}
|
|
|
|
else {
|
|
|
|
message("Qt4 is deprecated, you should use Qt5")
|
|
|
|
# qt4 does not, use gcc specific code
|
|
|
|
QMAKE_CXXFLAGS += -std=c++11
|
|
|
|
}
|
2015-03-04 10:19:36 +00:00
|
|
|
|
|
|
|
libsocdesc.commands = cd ../lib && make
|
|
|
|
QMAKE_EXTRA_TARGETS += libsocdesc
|
|
|
|
PRE_TARGETDEPS += libsocdesc
|
2013-08-21 18:16:26 +00:00
|
|
|
|
2016-02-06 15:08:43 +00:00
|
|
|
VERSION = 3.0.0
|
2014-05-01 22:32:41 +00:00
|
|
|
|
|
|
|
DEFINES += APP_VERSION=\\\"$$VERSION\\\"
|
|
|
|
|
2014-02-03 23:18:51 +00:00
|
|
|
unix {
|
|
|
|
!nohwstub {
|
|
|
|
message("Use 'qmake -config nohwstub' if you want to disable hwstub support")
|
2015-03-04 10:19:36 +00:00
|
|
|
libhwstub.commands = cd ../../hwstub/lib && make
|
|
|
|
QMAKE_EXTRA_TARGETS += libhwstub
|
|
|
|
PRE_TARGETDEPS += libhwstub
|
|
|
|
|
2014-02-03 23:18:51 +00:00
|
|
|
LIBS += -L../../hwstub/lib -lhwstub
|
2015-03-04 10:19:36 +00:00
|
|
|
DEPENDPATH += ../../hwstub
|
2014-02-03 23:18:51 +00:00
|
|
|
DEFINES += HAVE_HWSTUB
|
|
|
|
CONFIG += link_pkgconfig
|
|
|
|
PKGCONFIG += libusb-1.0
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
CONFIG += debug
|