Herunterladen als
root/src/src.pro @ 7f1090e5
10cc871a | Christian Ehringfeld | include (../EntityManager.pri)
|
|
QT += core
|
|||
QT += sql
|
|||
#if you need Image Validation you must compile with += gui
|
|||
#QT += gui
|
|||
QT -= gui
|
|||
TARGET = CuteEntityManager
|
|||
TEMPLATE = lib
|
|||
CONFIG += $$EM_LIBRARY_TYPE
|
|||
VERSION = $$EM_VERSION
|
|||
HEADERS += \
|
|||
entity.h \
|
|||
entitymanager.h \
|
|||
database.h \
|
|||
enums/databasetype.h \
|
|||
schema.h \
|
|||
schema/sqlitequerybuilder.h \
|
|||
schema/sqliteschema.h \
|
|||
tableschema.h \
|
|||
schema/pgsqlschema.h \
|
|||
schema/mysqlschema.h \
|
|||
databasemigration.h \
|
|||
querybuilder.h \
|
|||
relation.h \
|
|||
entityinstancefactory.h \
|
|||
cache.h \
|
|||
entityhelper.h \
|
|||
logger.h \
|
|||
query.h \
|
|||
join.h \
|
|||
queryinterpreter.h \
|
|||
expression.h \
|
|||
orderby.h \
|
|||
validators/validator.h \
|
|||
validators/param.h \
|
|||
validators/errormsg.h \
|
|||
validators/defaultvalidator.h \
|
|||
validators/validatorfactory.h \
|
|||
validators/validatorrule.h \
|
|||
validators/requiredvalidator.h \
|
|||
validators/numbervalidator.h \
|
|||
validators/urlvalidator.h \
|
|||
validators/comparevalidator.h \
|
|||
validators/datevalidator.h \
|
|||
validators/emailvalidator.h \
|
|||
validators/existvalidator.h \
|
|||
validators/filevalidator.h \
|
|||
validators/imagevalidator.h \
|
|||
validators/uniquevalidator.h \
|
|||
validators/patternvalidator.h \
|
|||
validators/lengthvalidator.h \
|
|||
schema/mysqlquerybuilder.h \
|
|||
92f2130d | SebastianDiel | entityinspector.h \
|
|
4e75d5a1 | Christian Ehringfeld | sqlitebackupprocessor.h \
|
|
d27d606d | Christian Ehringfeld | attribute.h \
|
|
attributeresolver.h
|
|||
10cc871a | Christian Ehringfeld | ||
SOURCES += \
|
|||
entity.cpp \
|
|||
entitymanager.cpp \
|
|||
database.cpp \
|
|||
schema.cpp \
|
|||
schema/sqliteschema.cpp \
|
|||
tableschema.cpp \
|
|||
schema/pgsqlschema.cpp \
|
|||
schema/mysqlschema.cpp \
|
|||
databasemigration.cpp \
|
|||
querybuilder.cpp \
|
|||
schema/sqlitequerybuilder.cpp \
|
|||
relation.cpp \
|
|||
entityinstancefactory.cpp \
|
|||
cache.cpp \
|
|||
entityhelper.cpp \
|
|||
logger.cpp \
|
|||
query.cpp \
|
|||
join.cpp \
|
|||
queryinterpreter.cpp \
|
|||
expression.cpp \
|
|||
orderby.cpp \
|
|||
validators/validator.cpp \
|
|||
validators/param.cpp \
|
|||
validators/errormsg.cpp \
|
|||
validators/defaultvalidator.cpp \
|
|||
validators/validatorfactory.cpp \
|
|||
validators/validatorrule.cpp \
|
|||
validators/requiredvalidator.cpp \
|
|||
validators/numbervalidator.cpp \
|
|||
validators/urlvalidator.cpp \
|
|||
validators/comparevalidator.cpp \
|
|||
validators/datevalidator.cpp \
|
|||
validators/emailvalidator.cpp \
|
|||
validators/existvalidator.cpp \
|
|||
validators/filevalidator.cpp \
|
|||
validators/imagevalidator.cpp \
|
|||
validators/uniquevalidator.cpp \
|
|||
validators/patternvalidator.cpp \
|
|||
validators/lengthvalidator.cpp \
|
|||
schema/mysqlquerybuilder.cpp \
|
|||
92f2130d | SebastianDiel | entityinspector.cpp \
|
|
4e75d5a1 | Christian Ehringfeld | sqlitebackupprocessor.cpp \
|
|
d27d606d | Christian Ehringfeld | attribute.cpp \
|
|
attributeresolver.cpp
|
|||
92f2130d | SebastianDiel | ||
b8bb1763 | SebastianDiel | windows|android: {
|
|
edef7577 | SebastianDiel | DEFINES += SQLITE_OMIT_LOAD_EXTENSION SQLITE_OMIT_COMPLETE SQLITE_ENABLE_FTS3 SQLITE_ENABLE_FTS3_PARENTHESIS SQLITE_ENABLE_RTREE
|
|
!contains(CONFIG, largefile):DEFINES += SQLITE_DISABLE_LFS
|
|||
INCLUDEPATH += $$[QT_INSTALL_PREFIX]/../Src/qtbase/src/3rdparty/sqlite
|
|||
SOURCES += $$[QT_INSTALL_PREFIX]/../Src/qtbase/src/3rdparty/sqlite/sqlite3.c
|
|||
7b467bf5 | SebastianDiel | }
|
|
3b82c8c0 | Christian Ehringfeld | unix:!android: {
|
|
8332a42a | Sebastian | system-sqlite:!contains(LIBS, .*sqlite3.*) {
|
|
include($$[QT_INSTALL_PREFIX]/../Src/qtbase/src/3rdparty/sqlite.pri)
|
|||
} else {
|
|||
LIBS += -lsqlite3
|
|||
}
|
|||
10cc871a | Christian Ehringfeld | }
|
|
1994157c | SebastianDiel | ||
10cc871a | Christian Ehringfeld | CONFIG += c++14
|
|
9eb4a5c2 | Christian Ehringfeld | CONFIG += create_prl
|
|
6be60ddf | Christian Ehringfeld | QMAKE_CXXFLAGS += -Wall -Wextra -pedantic -Wfloat-equal -Wundef -Wpointer-arith -Wcast-align -Wunreachable-code
|
|
headers.path = $$PREFIX/include/cuteEntityManager
|
|||
headers.files = $$HEADERS
|
|||
target.path = $$PREFIX/$$LIBDIR
|
|||
INSTALLS += target headers
|
|||
10cc871a | Christian Ehringfeld | ||
9eb4a5c2 | Christian Ehringfeld | CONFIG(debug, debug|release) {
|
|
DESTDIR = $$EM_DEBUG_PATH
|
|||
} else {
|
|||
DESTDIR = $$EM_RELEASE_PATH
|
|||
}
|
|||
10cc871a | Christian Ehringfeld | CONFIG(release, debug|release):DEFINES += QT_NO_DEBUG_OUTPUT
|