mirror of
https://github.com/fralx/LimeReport.git
synced 2024-12-24 16:44:39 +03:00
One more limereport's project structure changes
This commit is contained in:
parent
a5369589e3
commit
ab38b435ca
4
3rdparty/3rdparty.pro
vendored
4
3rdparty/3rdparty.pro
vendored
@ -1,9 +1,5 @@
|
||||
#QMAKE_CFLAGS += -std=c99
|
||||
ZINT_PATH = $$PWD/zint-2.4.4/
|
||||
ZINT_VERSION = 2.4.4
|
||||
#include(qzint.pri)
|
||||
#win32:CONFIG(release, debug|release): LIBS += -L$$PWD/../zint-2.4.3/build-backend_dll-Desktop_Qt_5_5_0_MSVC2010_32bit-Release/release/ -lQtZint22
|
||||
#else:win32:CONFIG(debug, debug|release): LIBS += -L$$PWD/../zint-2.4.3/build-backend_dll-Desktop_Qt_5_5_0_MSVC2010_32bit-Release/debug/ -lQtZint22
|
||||
INCLUDEPATH += $${ZINT_PATH}/backend $${ZINT_PATH}/backend_qt4
|
||||
DEPENDPATH += $${ZINT_PATH}/backend $${ZINT_PATH}/backend_qt4
|
||||
include($${ZINT_PATH}/backend_qt4/Zint.pro)
|
||||
|
29
3rdparty/zint-2.4.4/backend_qt4/Zint.pro
vendored
29
3rdparty/zint-2.4.4/backend_qt4/Zint.pro
vendored
@ -11,6 +11,7 @@ CONFIG(release, debug|release){
|
||||
BUILD_TYPE = debug
|
||||
}
|
||||
|
||||
include(../../../common.pri)
|
||||
|
||||
macx{
|
||||
CONFIG -= dll
|
||||
@ -105,26 +106,26 @@ SOURCES += \
|
||||
|
||||
unix {
|
||||
UNIX_DIR = $${OUT_PWD}/unix
|
||||
MOC_DIR = $${UNIX_DIR}/$${BUILD_TYPE}/moc
|
||||
UI_DIR = $${UNIX_DIR}/$${BUILD_TYPE}/ui
|
||||
UI_HEADERS_DIR = $${UNIX_DIR}/$${BUILD_TYPE}/ui
|
||||
UI_SOURCES_DIR = $${UNIX_DIR}/$${BUILD_TYPE}/ui
|
||||
OBJECTS_DIR = $${UNIX_DIR}/$${BUILD_TYPE}/obj
|
||||
RCC_DIR = $${UNIX_DIR}/$${BUILD_TYPE}/rcc
|
||||
DESTDIR = $$PWD/../../../build/unix/$${BUILD_TYPE}/lib
|
||||
MOC_DIR = $${UNIX_DIR}/moc/$${BUILD_TYPE}
|
||||
UI_DIR = $${UNIX_DIR}/ui/$${BUILD_TYPE}
|
||||
UI_HEADERS_DIR = $${UNIX_DIR}/ui/$${BUILD_TYPE}
|
||||
UI_SOURCES_DIR = $${UNIX_DIR}/ui/$${BUILD_TYPE}
|
||||
OBJECTS_DIR = $${UNIX_DIR}/obj/$${BUILD_TYPE}
|
||||
RCC_DIR = $${UNIX_DIR}/rcc/$${BUILD_TYPE}
|
||||
DESTDIR = $${BUILD_DIR}/lib/$${BUILD_TYPE}
|
||||
DLLDESTDIR = $${DESTDIR}
|
||||
}
|
||||
|
||||
|
||||
win32 {
|
||||
WIN32_DIR = $${OUT_PWD}/win32
|
||||
MOC_DIR = $${WIN32_DIR}/$${BUILD_TYPE}/moc
|
||||
UI_DIR = $${WIN32_DIR}/$${BUILD_TYPE}/ui
|
||||
UI_HEADERS_DIR = $${WIN32_DIR}/$${BUILD_TYPE}/ui
|
||||
UI_SOURCES_DIR = $${WIN32_DIR}/$${BUILD_TYPE}/ui
|
||||
OBJECTS_DIR = $${WIN32_DIR}/$${BUILD_TYPE}/obj
|
||||
RCC_DIR = $${WIN32_DIR}/$${BUILD_TYPE}/rcc
|
||||
DESTDIR = $$PWD/../../../build/win32/$${BUILD_TYPE}/lib
|
||||
MOC_DIR = $${WIN32_DIR}/moc/$${BUILD_TYPE}
|
||||
UI_DIR = $${WIN32_DIR}/ui/$${BUILD_TYPE}
|
||||
UI_HEADERS_DIR = $${WIN32_DIR}/ui/$${BUILD_TYPE}
|
||||
UI_SOURCES_DIR = $${WIN32_DIR}/ui/$${BUILD_TYPE}
|
||||
OBJECTS_DIR = $${WIN32_DIR}/obj/$${BUILD_TYPE}
|
||||
RCC_DIR = $${WIN32_DIR}/rcc/$${BUILD_TYPE}
|
||||
DESTDIR = $${BUILD_DIR}/lib/$${BUILD_TYPE}
|
||||
DLLDESTDIR = $${DESTDIR}
|
||||
}
|
||||
|
||||
|
@ -1,6 +1,7 @@
|
||||
#CONFIG += build_translations
|
||||
CONFIG += zint
|
||||
ZINT_PATH = $$PWD/3rdparty/zint-2.4.4
|
||||
#CONFIG += zint
|
||||
#ZINT_PATH = $$PWD/3rdparty/zint-2.4.4
|
||||
BUILD_DIR = $$PWD/build/$${QT_VERSION}
|
||||
|
||||
LIMEREPORT_VERSION_MAJOR = 1
|
||||
LIMEREPORT_VERSION_MINOR = 3
|
||||
|
@ -33,33 +33,27 @@ CONFIG(release, debug|release){
|
||||
}
|
||||
|
||||
unix{
|
||||
UNIX_DIR = $$PWD/../build/unix
|
||||
DEST_DIR = $${UNIX_DIR}/$${BUILD_TYPE}/demo
|
||||
DEST_DIR = $${BUILD_DIR}/demo/$${BUILD_TYPE}
|
||||
REPORTS_DIR = $${DEST_DIR}/demo_reports
|
||||
MOC_DIR = $${OUT_PWD}/moc
|
||||
UI_DIR = $${OUT_PWD}//ui
|
||||
UI_HEADERS_DIR = $${OUT_PWD}//ui
|
||||
UI_SOURCES_DIR = $${OUT_PWD}//ui
|
||||
OBJECTS_DIR = $${OUT_PWD}//obj
|
||||
RCC_DIR = $${OUT_PWD}//rcc
|
||||
UI_DIR = $${OUT_PWD}/ui
|
||||
UI_HEADERS_DIR = $${OUT_PWD}/ui
|
||||
UI_SOURCES_DIR = $${OUT_PWD}/ui
|
||||
OBJECTS_DIR = $${OUT_PWD}/obj
|
||||
RCC_DIR = $${OUT_PWD}/rcc
|
||||
|
||||
LIBS += -L$$PWD/../build/unix/$${BUILD_TYPE}/lib -llimereport
|
||||
LIBS += -L$${BUILD_DIR}/lib/$${BUILD_TYPE} -llimereport
|
||||
contains(CONFIG,zint){
|
||||
LIBS += -L$$PWD/../build/unix/$${BUILD_TYPE}/lib -lQtZint
|
||||
LIBS += -L$${BUILD_DIR}/lib/$${BUILD_TYPE} -lQtZint
|
||||
}
|
||||
DESTDIR = $$DEST_DIR
|
||||
QMAKE_POST_LINK += mkdir -p $$quote($$REPORTS_DIR) | $$QMAKE_COPY_DIR $$quote($$EXTRA_DIR) $$quote($$REPORTS_DIR) $$escape_expand(\n\t)
|
||||
QMAKE_LFLAGS += -Wl,--rpath=\\\$\$ORIGIN
|
||||
QMAKE_LFLAGS += -Wl,--rpath=\\\$\$ORIGIN/lib
|
||||
QMAKE_LFLAGS += -Wl,--rpath=\\\$\$ORIGIN/../lib
|
||||
QMAKE_LFLAGS_RPATH += #. .. ./libs
|
||||
target.path = $${DEST_DIR}
|
||||
}
|
||||
|
||||
win32 {
|
||||
WIN32_DIR = $$PWD/../build/win32
|
||||
EXTRA_DIR ~= s,/,\\,g
|
||||
DEST_DIR = $${WIN32_DIR}/$${BUILD_TYPE}/demo
|
||||
DEST_DIR = $${BUILD_DIR}/demo/$${BUILD_TYPE}
|
||||
DEST_DIR ~= s,/,\\,g
|
||||
REPORTS_DIR = $${DEST_DIR}/demo_reports
|
||||
REPORTS_DIR ~= s,/,\\,g
|
||||
@ -75,7 +69,7 @@ win32 {
|
||||
RC_FILE += mainicon.rc
|
||||
|
||||
QMAKE_POST_LINK += $$QMAKE_COPY_DIR $$quote($$EXTRA_DIR) $$quote($$REPORTS_DIR) $$escape_expand(\\n\\t)
|
||||
LIBS += -L$$PWD/../build/win32/$${BUILD_TYPE}/lib -llimereport
|
||||
LIBS += -L$${BUILD_DIR}/lib/$${BUILD_TYPE} -llimereport
|
||||
}
|
||||
|
||||
unix{
|
||||
|
@ -25,41 +25,49 @@ EXTRA_FILES += \
|
||||
$$PWD/lrscriptenginemanagerintf.h \
|
||||
$$PWD/lrcallbackdatasourceintf.h
|
||||
|
||||
include(limereport.pri)
|
||||
|
||||
DEST_DIR = $$PWD/../include/
|
||||
|
||||
unix {
|
||||
UNIX_DIR = $${OUT_PWD}/unix
|
||||
MOC_DIR = $${UNIX_DIR}/moc/$${BUILD_TYPE}
|
||||
UI_DIR = $${UNIX_DIR}/ui/$${BUILD_TYPE}
|
||||
UI_HEADERS_DIR = $${UNIX_DIR}/ui/$${BUILD_TYPE}
|
||||
UI_SOURCES_DIR = $${UNIX_DIR}/ui/$${BUILD_TYPE}
|
||||
OBJECTS_DIR = $${UNIX_DIR}/obj/$${BUILD_TYPE}
|
||||
RCC_DIR = $${UNIX_DIR}/rcc/$${BUILD_TYPE}
|
||||
DESTDIR = $${BUILD_DIR}/lib/$${BUILD_TYPE}
|
||||
|
||||
QMAKE_POST_LINK += mkdir -p $$quote($${BUILD_DIR}/lib/include) $$escape_expand(\\n\\t))
|
||||
|
||||
for(FILE,EXTRA_FILES){
|
||||
QMAKE_POST_LINK += $$quote($$QMAKE_COPY $${FILE} $${DEST_DIR}$$escape_expand(\n\t))
|
||||
QMAKE_POST_LINK += $$quote($$QMAKE_COPY $${FILE} $${DEST_DIR} $$escape_expand(\\n\\t))
|
||||
}
|
||||
MOC_DIR = $${OUT_PWD}/unix/$${BUILD_TYPE}/moc
|
||||
UI_DIR = $${OUT_PWD}/unix/$${BUILD_TYPE}/ui
|
||||
UI_HEADERS_DIR = $${OUT_PWD}/unix/$${BUILD_TYPE}/ui
|
||||
UI_SOURCES_DIR = $${OUT_PWD}/unix/$${BUILD_TYPE}/ui
|
||||
OBJECTS_DIR = $${OUT_PWD}/unix/$${BUILD_TYPE}/obj
|
||||
RCC_DIR = $${OUT_PWD}/unix/$${BUILD_TYPE}/rcc
|
||||
DESTDIR = $$PWD/../build/unix/$${BUILD_TYPE}/lib
|
||||
for(FILE,EXTRA_FILES){
|
||||
QMAKE_POST_LINK += mkdir -p $$quote($${DESTDIR}/include) | $$QMAKE_COPY $$quote($$FILE) $$quote($$DESTDIR/include/) $$escape_expand(\\n\\t)
|
||||
QMAKE_POST_LINK += $$QMAKE_COPY $$quote($$FILE) $$quote($${BUILD_DIR}/include/) $$escape_expand(\\n\\t)
|
||||
}
|
||||
}
|
||||
|
||||
win32 {
|
||||
EXTRA_FILES ~= s,/,\\,g
|
||||
DEST_DIR ~= s,/,\\,g
|
||||
BUILD_DIR ~= s,/,\\,g
|
||||
|
||||
WIN32_DIR = $${OUT_PWD}/win32
|
||||
MOC_DIR = $${WIN32_DIR}/moc/$${BUILD_TYPE}
|
||||
UI_DIR = $${WIN32_DIR}/ui/$${BUILD_TYPE}
|
||||
UI_HEADERS_DIR = $${WIN32_DIR}/ui/$${BUILD_TYPE}
|
||||
UI_SOURCES_DIR = $${WIN32_DIR}/ui/$${BUILD_TYPE}
|
||||
OBJECTS_DIR = $${WIN32_DIR}/obj/$${BUILD_TYPE}
|
||||
RCC_DIR = $${WIN32_DIR}/rcc/$${BUILD_TYPE}
|
||||
DESTDIR = $${BUILD_DIR}/lib/$${BUILD_TYPE}
|
||||
|
||||
for(FILE,EXTRA_FILES){
|
||||
QMAKE_POST_LINK += $$QMAKE_COPY $$quote($$FILE) $$quote($$DEST_DIR) $$escape_expand(\\n\\t)
|
||||
}
|
||||
MOC_DIR = $${OUT_PWD}/win32/$${BUILD_TYPE}/moc
|
||||
UI_DIR = $${OUT_PWD}/win32/$${BUILD_TYPE}/ui
|
||||
UI_HEADERS_DIR = $${OUT_PWD}/win32/$${BUILD_TYPE}/ui
|
||||
UI_SOURCES_DIR = $${OUT_PWD}/win32/$${BUILD_TYPE}/ui
|
||||
OBJECTS_DIR = $${OUT_PWD}/win32/$${BUILD_TYPE}/obj
|
||||
RCC_DIR = $${OUT_PWD}/win32/$${BUILD_TYPE}/rcc
|
||||
DESTDIR = $$PWD/../build/win32/$${BUILD_TYPE}/lib
|
||||
}
|
||||
|
||||
include(limereport.pri)
|
||||
|
||||
contains(CONFIG,zint){
|
||||
message(zint)
|
||||
INCLUDEPATH += $$ZINT_PATH/backend $$ZINT_PATH/backend_qt4
|
||||
|
Loading…
Reference in New Issue
Block a user