Build has been fixed

This commit is contained in:
Arin Alexander 2018-05-07 22:52:28 +03:00
parent ee9450697b
commit eacc5c645e
5 changed files with 15 additions and 7 deletions

View File

@ -11,13 +11,20 @@ DEPENDPATH += $$PWD/3rdparty/easyprofiler/easy_profiler_core/include
contains(CONFIG, easy_profiler){
message(EasyProfiler)
unix|win32: LIBS += -L$$PWD/3rdparty/easyprofiler/build/bin/ -leasy_profiler
greaterThan(QT_MAJOR_VERSION, 4){
DEFINES += BUILD_WITH_EASY_PROFILER
}
}
!contains(CONFIG, qtscriptengine){
greaterThan(QT_MAJOR_VERSION, 4){
greaterThan(QT_MINOR_VERSION, 5){
CONFIG *= qjsengine
}
lessThan(QT_MINOR_VERSION, 6){
CONFIG *= qtscriptengine
}
}
lessThan(QT_MAJOR_VERSION, 5){
CONFIG *= qtscriptengine
}

View File

@ -38,7 +38,7 @@
#include <QDebug>
#include <QStringListModel>
#ifndef HAVE_QT4
#ifdef BUILD_WITH_EASY_PROFILER
#include "easy/profiler.h"
#else
# define EASY_BLOCK(...)
@ -127,7 +127,7 @@ void MainWindow::on_pushButton_clicked()
report->setShowProgressDialog(false);
report->designReport();
EASY_END_BLOCK;
#ifndef HAVE_QT4
#ifdef BUILD_WITH_EASY_PROFILER
profiler::dumpBlocksToFile("test.prof");
#endif
}
@ -145,7 +145,7 @@ void MainWindow::on_pushButton_2_clicked()
report->dataManager()->setReportVariable(ui->leVariableName->text(), ui->leVariableValue->text());
}
EASY_END_BLOCK;
#ifndef HAVE_QT4
#ifdef BUILD_WITH_EASY_PROFILER
profiler::dumpBlocksToFile("test.prof");
#endif
report->previewReport();

View File

@ -37,7 +37,7 @@
#include <QFileInfo>
#include <stdexcept>
#ifndef HAVE_QT4
#ifdef BUILD_WITH_EASY_PROFILER
#include "easy/profiler.h"
#else
# define EASY_BLOCK(...)

View File

@ -56,7 +56,7 @@
#include "lrpreviewreportwidget.h"
#include "lrpreviewreportwidget_p.h"
#ifndef HAVE_QT4
#ifdef BUILD_WITH_EASY_PROFILER
#include "easy/profiler.h"
#else
# define EASY_BLOCK(...)

View File

@ -36,7 +36,8 @@
#include "lrreporttranslation.h"
#include <QDebug>
#ifndef HAVE_QT4
#ifdef BUILD_WITH_EASY_PROFILER
#include "easy/profiler.h"
#else
# define EASY_BLOCK(...)