Revision 841fabe2
Von Christian Ehringfeld vor mehr als 9 Jahren hinzugefügt
.travis.yml | ||
---|---|---|
- linux
|
||
# - osx
|
||
|
||
env:
|
||
#env:
|
||
|
||
|
||
install:
|
EntityManager.pri | ||
---|---|---|
EM_VERSION=0.1alpha
|
||
EM_VERSION=0.1
|
||
isEmpty(EM_LIBRARY_TYPE) {
|
||
android {
|
||
EM_LIBRARY_TYPE = staticlib
|
||
} else {
|
||
EM_LIBRARY_TYPE = shared
|
||
EM_LIBRARY_TYPE = dll
|
||
}
|
||
}
|
||
|
EntityManager.pro | ||
---|---|---|
include (EntityManager.pri)
|
||
|
||
CONFIG += $$EM_LIBRARY_TYPE
|
||
VERSION = $$EM_VERSION
|
||
|
||
|
||
QT += core
|
||
QT += sql
|
||
#if you need Image Validation you must compile with += gui
|
||
... | ... | |
|
||
TARGET = CuteEntityManager
|
||
TEMPLATE = lib
|
||
CONFIG += $$EM_LIBRARY_TYPE
|
||
VERSION = $$EM_VERSION
|
||
|
||
HEADERS += \
|
||
src/entity.h \
|
||
... | ... | |
src/sqlitebackupprocessor.h
|
||
SOURCES += \
|
||
src/sqlitebackupprocessor.cpp
|
||
LIBS += -lsqlite3
|
||
} else {
|
||
DESTDIR = $$OUT_PWD
|
||
}
|
||
|
||
|
||
LIBS += -lsqlite3
|
||
CONFIG += c++14
|
||
QMAKE_CXXFLAGS += -Wall -Wextra -Wunsafe-loop-optimizations -pedantic -Wfloat-equal -Wundef -Wpointer-arith -Wcast-align -Wunreachable-code -O
|
||
QMAKE_CXXFLAGS += -Wall -Wextra
|
||
headers.path = $$PREFIX/include/cuteEntityManager
|
||
headers.files = $$HEADERS
|
||
target.path = $$PREFIX/$$LIBDIR
|
||
INSTALLS += headers target
|
||
|
||
#unix {
|
||
#target.path = /usr/lib
|
||
#INSTALLS += target
|
||
unix {
|
||
QMAKE_CXXFLAGS += -Wunsafe-loop-optimizations -pedantic -Wfloat-equal -Wundef -Wpointer-arith -Wcast-align -Wunreachable-code
|
||
#linux-g++5 {
|
||
#QMAKE_CXXFLAGS += -Wsuggest-final-types -Wsuggest-final-methods -Wsuggest-override -Wmaybe-uninitialized
|
||
#}
|
||
#}
|
||
}
|
||
|
||
CONFIG(release, debug|release):DEFINES += QT_NO_DEBUG_OUTPUT
|
||
|
Auch abrufbar als: Unified diff
...