#include "ui_aboutdialog.h"
#include "aboutdata.h"
+#include "gui_config.h"
#include <math.h>
#include <QFontMetrics>
#endif
QString(
"<p>Uses <a href=https://www.qt.io>Qt framework</a> v.%1 libraries on terms of " \
- "<a href=https://www.gnu.org/licenses/lgpl-3.0.en.html>LGPL</a>.</p>" \
+ "<a href=https://www.gnu.org/licenses/lgpl-3.0.en.html>LGPL</a>.</p>")
+ .arg(QT_VERSION_STR)
+#ifdef THREAD_WEAVER
+ + QString(
"<p>Uses <a href=https://cgit.kde.org/threadweaver.git>ThreadWeaver library</a> " \
- "on terms of <a href=https://www.gnu.org/licenses/lgpl-3.0.en.html>LGPL</a>.</p>" \
+ "on terms of <a href=https://www.gnu.org/licenses/lgpl-3.0.en.html>LGPL</a>.</p>")
+#endif
+#ifdef QWT_FOUND
+ + QString(
"<p>The application is based in part on the work of the " \
"<a href=http://qwt.sf.net>Qwt project</a> on terms of " \
"<a href=http://qwt.sourceforge.net/qwtlicense.html>Qwt License</a>.</p>")
- .arg(QT_VERSION_STR)
+#endif
#ifdef WINDOWS
+ QString(
"<p>Application icon (free for commercial use): Jack Cai " \
TARGET = TizenMemoryProfiler
}
-win32 {
- # Third-party libraries used:
- # QWT: http://qwt.sourceforge.net (SVN: https://svn.code.sf.net/p/qwt/code/trunk)
- # ThreadWeaver: https://cgit.kde.org/threadweaver.git (git://anongit.kde.org/threadweaver.git)
+# uncomment the next line to disable using KDE libraries unconditionally (i.e. on Linux too)
+CONFIG *= NO_K_LIB NO_K_CHART
+
+# Third-party libraries which may be used:
+
+# QWT: http://qwt.sourceforge.net (SVN: https://svn.code.sf.net/p/qwt/code/trunk).
+# Used on Windows but not on Linux by default.
+
+# ThreadWeaver: https://cgit.kde.org/threadweaver.git (git://anongit.kde.org/threadweaver.git).
+# Used on both Windows and Linux by default.
+# comment the next line to not use ThreadWeaver library (used to parse data files faster)
+!NO_K_LIB:CONFIG += THREAD_WEAVER
+
+win32 {
# comment the next line to not use QWT library (charts will not be displayed in this case)
CONFIG += QWT_CHART
- # comment the next line to not use ThreadWeaver library (used to parse data files faster)
- CONFIG += THREAD_WEAVER
-
- CONFIG += NO_K_LIB NO_K_CHART
+ CONFIG *= NO_K_LIB NO_K_CHART
- DEFINES += NO_K_LIB NO_K_CHART WINDOWS
+ DEFINES *= WINDOWS
INCLUDEPATH += $$(BOOST_LIB)
LIBS += -L$$(BOOST_LIB)/stage/lib
}
}
-THREAD_WEAVER {
- DEFINES += THREAD_WEAVER
- win32 {
- # ThreadWeaver shall be built beforehand (load ThreadWeaver.pro, edit it if necessary, and build)
-
- # change the variable if ThreadWeaver headers are located in another directory
- THREAD_WEAVE_HEADER_PATH = ../../kf5/threadweaver/src/
-
- INCLUDEPATH += $$THREAD_WEAVE_HEADER_PATH ThreadWeaver
- CONFIG(debug, debug|release) {
- win32-msvc:LIBS += $${DESTDIR}/threadweaverd.lib
- }
- else {
- win32-msvc:LIBS += $${DESTDIR}/threadweaver.lib
- }
- }
- unix {
- QT += ThreadWeaver
- }
-}
-
unix {
- CONFIG *= USE_CHART
- DEFINES *= USE_CHART
-
- # uncomment the next line to use QWT instead of KChart
+ # uncomment the next line to use QWT instead of KChart on Linux
# CONFIG += QWT_CHART
QWT_CHART {
- CONFIG *= NO_K_LIB NO_K_CHART QWT_CHART
- DEFINES *= NO_K_LIB NO_K_CHART
+ CONFIG *= NO_K_CHART USE_CHART QWT_CHART
INCLUDEPATH += /usr/include/qwt
LIBS += -lqwt-qt5 # correct the library name if needed (e.g. to 'qwt')
}
+ else {
+ !NO_K_LIB {
+ CONFIG *= USE_CHART
+ }
+ }
LIBS += -lboost_program_options -lboost_iostreams -lpthread
}
# Windows: file qwt.dll must exist in $${DESTDIR}\release and qwtd.dll in $${DESTDIR}\debug
# to be able to run the application.
CONFIG *= USE_CHART QWT
- DEFINES *= USE_CHART QWT
}
-#Test only!
-#CONFIG *= NO_K_LIB NO_K_CHART
-#DEFINES *= NO_K_LIB NO_K_CHART
+# add defines if have the following values in CONFIG
+NO_K_LIB: DEFINES *= NO_K_LIB
+NO_K_CHART: DEFINES *= NO_K_CHART
+USE_CHART: DEFINES *= USE_CHART
+QWT: DEFINES *= QWT
+
+THREAD_WEAVER {
+ DEFINES += THREAD_WEAVER
+ win32 {
+ # ThreadWeaver shall be built beforehand - use ThreadWeaver.pro file (edit it if necessary)
+
+ # change the variable if ThreadWeaver headers are located in another directory
+ THREAD_WEAVE_HEADER_PATH = ../../kf5/threadweaver/src/
+
+ INCLUDEPATH += $$THREAD_WEAVE_HEADER_PATH ThreadWeaver
+ CONFIG(debug, debug|release) {
+ win32-msvc:LIBS += $${DESTDIR}/threadweaverd.lib
+ }
+ else {
+ win32-msvc:LIBS += $${DESTDIR}/threadweaver.lib
+ }
+ }
+ unix {
+ QT += ThreadWeaver
+ }
+}
SOURCES += \
analyze/accumulatedtracedata.cpp \
FORMS += \
analyze/gui/mainwindow_noklib.ui \
- analyze/gui/aboutdialog.ui
RESOURCES += \
analyze/gui/gui.qrc
}
+
+FORMS += \
+ analyze/gui/aboutdialog.ui