mirror of
https://github.com/YACReader/yacreader
synced 2025-05-28 03:10:27 -04:00
Merge pull request #93 from selmf/server_default
Fix headless server build defaults
This commit is contained in:
commit
88ccae7280
@ -10,7 +10,7 @@ INCLUDEPATH += ../YACReaderLibrary \
|
|||||||
../YACReaderLibrary/server \
|
../YACReaderLibrary/server \
|
||||||
../YACReaderLibrary/db
|
../YACReaderLibrary/db
|
||||||
|
|
||||||
DEFINES += SERVER_RELEASE NOMINMAX YACREADER_LIBRARY QT_NO_DEBUG_OUTPUT
|
DEFINES += SERVER_RELEASE NOMINMAX YACREADER_LIBRARY
|
||||||
# load default build flags
|
# load default build flags
|
||||||
# do a basic dependency check
|
# do a basic dependency check
|
||||||
include(headless_config.pri)
|
include(headless_config.pri)
|
||||||
@ -129,18 +129,20 @@ DATADIR = $$PREFIX/share
|
|||||||
DEFINES += "LIBDIR=\\\"$$LIBDIR\\\"" "DATADIR=\\\"$$DATADIR\\\"" "BINDIR=\\\"$$BINDIR\\\""
|
DEFINES += "LIBDIR=\\\"$$LIBDIR\\\"" "DATADIR=\\\"$$DATADIR\\\"" "BINDIR=\\\"$$BINDIR\\\""
|
||||||
|
|
||||||
#make install
|
#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) {
|
CONFIG(server_standalone) {
|
||||||
INSTALLS += bin server translation systemd
|
INSTALLS += bin server translation systemd
|
||||||
}
|
}
|
||||||
else:CONFIG(server_bundled) {
|
else:CONFIG(server_bundled) {
|
||||||
INSTALLS += bin systemd
|
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
|
bin.path = $$BINDIR
|
||||||
isEmpty(DESTDIR) {
|
isEmpty(DESTDIR) {
|
||||||
|
Loading…
Reference in New Issue
Block a user