Skip to content

Commit

Permalink
Static build has been fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
fralx committed Jun 14, 2017
2 parents ab7394e + 6a42e0c commit 7f45100
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion common.pri
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ RCC_DIR = $${ARCH_DIR}/$${BUILD_TYPE}/rcc

LIMEREPORT_VERSION_MAJOR = 1
LIMEREPORT_VERSION_MINOR = 4
LIMEREPORT_VERSION_RELEASE = 8
LIMEREPORT_VERSION_RELEASE = 17

LIMEREPORT_VERSION = '\\"$${LIMEREPORT_VERSION_MAJOR}.$${LIMEREPORT_VERSION_MINOR}.$${LIMEREPORT_VERSION_RELEASE}\\"'
DEFINES += LIMEREPORT_VERSION_STR=\"$${LIMEREPORT_VERSION}\"
Expand Down
4 changes: 2 additions & 2 deletions limereport/limereport.pri
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ SOURCES += \
$$REPORT_PATH/scriptbrowser/lrscriptbrowser.cpp \
$$REPORT_PATH/lritemscontainerdesignitf.cpp

contains(CONFIG, staticbuild){
contains(CONFIG, staticlib){
SOURCES += $$REPORT_PATH/lrfactoryinitializer.cpp
}

Expand Down Expand Up @@ -197,7 +197,7 @@ HEADERS += \
$$REPORT_PATH/scriptbrowser/lrscriptbrowser.h \
$$REPORT_PATH/lritemscontainerdesignitf.h

contains(CONFIG, staticbuild){
contains(CONFIG, staticlib){
HEADERS += $$REPORT_PATH/lrfactoryinitializer.h
}

Expand Down
7 changes: 3 additions & 4 deletions limereport/limereport.pro
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,12 @@ macx{
CONFIG += plugin
}

!staticlib:{
DEFINES += LIMEREPORT_EXPORTS
}
DEFINES += LIMEREPORT_EXPORTS

staticlib:{
contains(CONFIG, staticlib){
DEFINES += HAVE_STATIC_BUILD
message(STATIC_BUILD)
DEFINES -= LIMEREPORT_EXPORTS
}

EXTRA_FILES += \
Expand Down
1 change: 1 addition & 0 deletions limereport/lrfactoryinitializer.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
void initResources();
namespace LimeReport{
void initReportItems();
void initObjectInspectorProperties();
Expand Down
1 change: 1 addition & 0 deletions limereport/lrreportengine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ ReportEnginePrivate::ReportEnginePrivate(QObject *parent) :
m_fileWatcher( new QFileSystemWatcher( this ) )
{
#ifdef HAVE_STATIC_BUILD
initResources();
initReportItems();
initObjectInspectorProperties();
initSerializators();
Expand Down

0 comments on commit 7f45100

Please sign in to comment.