mirror of
https://github.com/python-LimeReport/LimeReport.git
synced 2024-12-24 12:34:39 +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){
|
contains(CONFIG, easy_profiler){
|
||||||
message(EasyProfiler)
|
message(EasyProfiler)
|
||||||
unix|win32: LIBS += -L$$PWD/3rdparty/easyprofiler/build/bin/ -leasy_profiler
|
unix|win32: LIBS += -L$$PWD/3rdparty/easyprofiler/build/bin/ -leasy_profiler
|
||||||
|
greaterThan(QT_MAJOR_VERSION, 4){
|
||||||
DEFINES += BUILD_WITH_EASY_PROFILER
|
DEFINES += BUILD_WITH_EASY_PROFILER
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
!contains(CONFIG, qtscriptengine){
|
!contains(CONFIG, qtscriptengine){
|
||||||
greaterThan(QT_MAJOR_VERSION, 4){
|
greaterThan(QT_MAJOR_VERSION, 4){
|
||||||
|
greaterThan(QT_MINOR_VERSION, 5){
|
||||||
CONFIG *= qjsengine
|
CONFIG *= qjsengine
|
||||||
}
|
}
|
||||||
|
lessThan(QT_MINOR_VERSION, 6){
|
||||||
|
CONFIG *= qtscriptengine
|
||||||
|
}
|
||||||
|
}
|
||||||
lessThan(QT_MAJOR_VERSION, 5){
|
lessThan(QT_MAJOR_VERSION, 5){
|
||||||
CONFIG *= qtscriptengine
|
CONFIG *= qtscriptengine
|
||||||
}
|
}
|
||||||
|
@ -38,7 +38,7 @@
|
|||||||
#include <QDebug>
|
#include <QDebug>
|
||||||
#include <QStringListModel>
|
#include <QStringListModel>
|
||||||
|
|
||||||
#ifndef HAVE_QT4
|
#ifdef BUILD_WITH_EASY_PROFILER
|
||||||
#include "easy/profiler.h"
|
#include "easy/profiler.h"
|
||||||
#else
|
#else
|
||||||
# define EASY_BLOCK(...)
|
# define EASY_BLOCK(...)
|
||||||
@ -127,7 +127,7 @@ void MainWindow::on_pushButton_clicked()
|
|||||||
report->setShowProgressDialog(false);
|
report->setShowProgressDialog(false);
|
||||||
report->designReport();
|
report->designReport();
|
||||||
EASY_END_BLOCK;
|
EASY_END_BLOCK;
|
||||||
#ifndef HAVE_QT4
|
#ifdef BUILD_WITH_EASY_PROFILER
|
||||||
profiler::dumpBlocksToFile("test.prof");
|
profiler::dumpBlocksToFile("test.prof");
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
@ -145,7 +145,7 @@ void MainWindow::on_pushButton_2_clicked()
|
|||||||
report->dataManager()->setReportVariable(ui->leVariableName->text(), ui->leVariableValue->text());
|
report->dataManager()->setReportVariable(ui->leVariableName->text(), ui->leVariableValue->text());
|
||||||
}
|
}
|
||||||
EASY_END_BLOCK;
|
EASY_END_BLOCK;
|
||||||
#ifndef HAVE_QT4
|
#ifdef BUILD_WITH_EASY_PROFILER
|
||||||
profiler::dumpBlocksToFile("test.prof");
|
profiler::dumpBlocksToFile("test.prof");
|
||||||
#endif
|
#endif
|
||||||
report->previewReport();
|
report->previewReport();
|
||||||
|
@ -37,7 +37,7 @@
|
|||||||
#include <QFileInfo>
|
#include <QFileInfo>
|
||||||
#include <stdexcept>
|
#include <stdexcept>
|
||||||
|
|
||||||
#ifndef HAVE_QT4
|
#ifdef BUILD_WITH_EASY_PROFILER
|
||||||
#include "easy/profiler.h"
|
#include "easy/profiler.h"
|
||||||
#else
|
#else
|
||||||
# define EASY_BLOCK(...)
|
# define EASY_BLOCK(...)
|
||||||
|
@ -56,7 +56,7 @@
|
|||||||
#include "lrpreviewreportwidget.h"
|
#include "lrpreviewreportwidget.h"
|
||||||
#include "lrpreviewreportwidget_p.h"
|
#include "lrpreviewreportwidget_p.h"
|
||||||
|
|
||||||
#ifndef HAVE_QT4
|
#ifdef BUILD_WITH_EASY_PROFILER
|
||||||
#include "easy/profiler.h"
|
#include "easy/profiler.h"
|
||||||
#else
|
#else
|
||||||
# define EASY_BLOCK(...)
|
# define EASY_BLOCK(...)
|
||||||
|
@ -36,7 +36,8 @@
|
|||||||
#include "lrreporttranslation.h"
|
#include "lrreporttranslation.h"
|
||||||
|
|
||||||
#include <QDebug>
|
#include <QDebug>
|
||||||
#ifndef HAVE_QT4
|
|
||||||
|
#ifdef BUILD_WITH_EASY_PROFILER
|
||||||
#include "easy/profiler.h"
|
#include "easy/profiler.h"
|
||||||
#else
|
#else
|
||||||
# define EASY_BLOCK(...)
|
# define EASY_BLOCK(...)
|
||||||
|
Loading…
Reference in New Issue
Block a user