Revision 9eb4a5c2
Von Christian Ehringfeld vor etwa 9 Jahren hinzugefügt
EntityManager.pri | ||
---|---|---|
EM_LIBRARY_TYPE = shared
|
||
}
|
||
}
|
||
EM_PATH = $$OUT_PWD
|
||
EM_INCLUDEPATH = $$PWD/src
|
||
MAKESPEC = $$replace($$QMAKESPEC,/," ")
|
||
for(var,$$list($$MAKESPEC)) {
|
||
MAKESPEC = $$var
|
||
}
|
||
EM_INCLUDE_PATH = $$PWD/src
|
||
EM_DEBUG_PATH = $$PWD/build/$$MAKESPEC/$$QT_ARCH/debug
|
||
EM_RELEASE_PATH = $$PWD/build/$$MAKESPEC/$$QT_ARCH/release
|
||
EM_LIB = -lCuteEntityManager
|
||
|
||
contains(EM_LIBRARY_TYPE,staticlib) {
|
||
DEFINES += CUTE_ENTITY_MANAGER_LIBRARY_STATIC
|
||
} else {
|
||
... | ... | |
isEmpty(LIBDIR) {
|
||
LIBDIR=lib
|
||
}
|
||
CONFIG(debug, debug|release) {
|
||
DESTDIR = $$PWD/build/debug
|
||
} else {
|
||
DESTDIR = $$PWD/build/release
|
||
}
|
samples/samples.pri | ||
---|---|---|
QT += sql
|
||
CONFIG += c++14
|
||
QMAKE_CXXFLAGS += -Wall -Wextra
|
||
INCLUDEPATH += $$PWD/../src
|
||
DEPENDPATH += $$PWD/../src
|
||
INCLUDEPATH += $$EM_INCLUDE_PATH
|
||
|
||
CONFIG(release, debug|release): LIBS+= -L$$PWD/../build/release $$EM_LIB
|
||
CONFIG(debug, debug|release): LIBS+= -L$$PWD/../build/debug $$EM_LIB
|
||
CONFIG(release, debug|release): LIBS+= -L$$EM_RELEASE_PATH $$EM_LIB
|
||
CONFIG(debug, debug|release): LIBS+= -L$$EM_DEBUG_PATH $$EM_LIB
|
||
|
||
CONFIG(release, debug|release):DEFINES += QT_NO_DEBUG_OUTPUT
|
||
|
src/src.pro | ||
---|---|---|
}
|
||
|
||
CONFIG += c++14
|
||
CONFIG += create_prl
|
||
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
|
||
|
||
CONFIG(debug, debug|release) {
|
||
DESTDIR = $$EM_DEBUG_PATH
|
||
} else {
|
||
DESTDIR = $$EM_RELEASE_PATH
|
||
}
|
||
|
||
CONFIG(release, debug|release):DEFINES += QT_NO_DEBUG_OUTPUT
|
tests/tests.pri | ||
---|---|---|
QT += testlib
|
||
CONFIG -= app_bundle
|
||
CONFIG += testcase
|
||
INCLUDEPATH += $$PWD/../src
|
||
DEPENDPATH += $$PWD/../src
|
||
INCLUDEPATH += $$EM_INCLUDE_PATH
|
||
|
||
CONFIG(release, debug|release): LIBS+= -L$$PWD/../build/release $$EM_LIB
|
||
CONFIG(debug, debug|release): LIBS+= -L$$PWD/../build/debug $$EM_LIB
|
||
CONFIG(release, debug|release): LIBS+= -L$$EM_RELEASE_PATH $$EM_LIB
|
||
CONFIG(debug, debug|release): LIBS+= -L$$EM_DEBUG_PATH $$EM_LIB
|
||
|
||
CONFIG(release, debug|release):DEFINES += QT_NO_DEBUG_OUTPUT
|
Auch abrufbar als: Unified diff
build