Merge pull request #93 from selmf/server_default

Fix headless server build defaults
This commit is contained in:
Luis Ángel San Martín 2019-10-06 20:47:59 +02:00 committed by GitHub
commit 88ccae7280
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -10,7 +10,7 @@ INCLUDEPATH += ../YACReaderLibrary \
../YACReaderLibrary/server \
../YACReaderLibrary/db
DEFINES += SERVER_RELEASE NOMINMAX YACREADER_LIBRARY QT_NO_DEBUG_OUTPUT
DEFINES += SERVER_RELEASE NOMINMAX YACREADER_LIBRARY
# load default build flags
# do a basic dependency check
include(headless_config.pri)
@ -129,18 +129,20 @@ DATADIR = $$PREFIX/share
DEFINES += "LIBDIR=\\\"$$LIBDIR\\\"" "DATADIR=\\\"$$DATADIR\\\"" "BINDIR=\\\"$$BINDIR\\\""
#make install
!CONFIG(server_bundled):!CONFIG(server_standalone): {
CONFIG+=server_bundled
message("No build type specified. Defaulting to bundled server build (CONFIG+=server_bundled).")
message("If you wish to run YACReaderLibraryServer on a system without an existing install of YACReaderLibrary,\
please specify CONFIG+=server_standalone as an option when running qmake to avoid missing dependencies.")
}
CONFIG(server_standalone) {
INSTALLS += bin server translation systemd
}
else:CONFIG(server_bundled) {
INSTALLS += bin systemd
}
else {
INSTALLS += bin server translation systemd
message("No build type specified. Defaulting to standalone server build (CONFIG+=server_standalone).")
message("If you wish to run YACReaderLibraryServer on a system with an existing install of YACReaderLibrary,\
please specify CONFIG+=server_bundled as an option when running qmake.")
}
bin.path = $$BINDIR
isEmpty(DESTDIR) {