mirror of
https://github.com/python-LimeReport/LimeReport.git
synced 2024-12-23 20:22:58 +03:00
Build has been fixed
This commit is contained in:
parent
ee9450697b
commit
eacc5c645e
@ -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
|
||||
DEFINES += BUILD_WITH_EASY_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
|
||||
}
|
||||
|
@ -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();
|
||||
|
@ -37,7 +37,7 @@
|
||||
#include <QFileInfo>
|
||||
#include <stdexcept>
|
||||
|
||||
#ifndef HAVE_QT4
|
||||
#ifdef BUILD_WITH_EASY_PROFILER
|
||||
#include "easy/profiler.h"
|
||||
#else
|
||||
# define EASY_BLOCK(...)
|
||||
|
@ -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(...)
|
||||
|
@ -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(...)
|
||||
|
Loading…
Reference in New Issue
Block a user