mirror of
https://github.com/YACReader/yacreader
synced 2025-05-28 03:10:27 -04:00
give YACReaderLibraryServer build structure it's own directory
This commit is contained in:
parent
57e9b6c481
commit
544cfbd297
151
YACReaderLibraryServer/YACReaderLibraryServer.pro
Normal file
151
YACReaderLibraryServer/YACReaderLibraryServer.pro
Normal file
@ -0,0 +1,151 @@
|
|||||||
|
######################################################################
|
||||||
|
# Automatically generated by qmake (2.01a) dom 12. oct 20:47:48 2008
|
||||||
|
######################################################################
|
||||||
|
|
||||||
|
TEMPLATE = app
|
||||||
|
TARGET = YACReaderLibraryServer
|
||||||
|
CONFIG += console
|
||||||
|
DEPENDPATH += ../YACReaderLibrary
|
||||||
|
INCLUDEPATH += ../YACReaderLibrary
|
||||||
|
INCLUDEPATH += ../common \
|
||||||
|
../YACReaderLibrary/server \
|
||||||
|
../YACReaderLibrary/db
|
||||||
|
|
||||||
|
DEFINES += SERVER_RELEASE NOMINMAX YACREADER_LIBRARY QT_NO_DEBUG_OUTPUT
|
||||||
|
QMAKE_MAC_SDK = macosx10.11
|
||||||
|
#load default build flags
|
||||||
|
#do a basic dependency check
|
||||||
|
include(headless_config.pri)
|
||||||
|
|
||||||
|
win32 {
|
||||||
|
LIBS += -L../dependencies/poppler/lib -loleaut32 -lole32 -lshell32 -luser32
|
||||||
|
LIBS += -lpoppler-qt5
|
||||||
|
INCLUDEPATH += ../dependencies/poppler/include/qt5
|
||||||
|
|
||||||
|
QMAKE_CXXFLAGS_RELEASE += /MP /Ob2 /Oi /Ot /GT /GL
|
||||||
|
QMAKE_LFLAGS_RELEASE += /LTCG
|
||||||
|
CONFIG -= embed_manifest_exe
|
||||||
|
}
|
||||||
|
|
||||||
|
unix:!macx{
|
||||||
|
INCLUDEPATH += /usr/include/poppler/qt5
|
||||||
|
LIBS += -L/usr/lib -lpoppler-qt5
|
||||||
|
}
|
||||||
|
|
||||||
|
macx{
|
||||||
|
LIBS += -framework Foundation -framework ApplicationServices -framework AppKit
|
||||||
|
|
||||||
|
OBJECTIVE_SOURCES += $$PWD/../common/pdf_comic.mm
|
||||||
|
HEADERS += $$PWD/../common/pdf_comic.h
|
||||||
|
CONFIG += objective_c
|
||||||
|
}
|
||||||
|
|
||||||
|
unix{
|
||||||
|
CONFIG += c++11
|
||||||
|
}
|
||||||
|
|
||||||
|
#CONFIG += release
|
||||||
|
CONFIG -= flat
|
||||||
|
QT += core sql network script
|
||||||
|
|
||||||
|
# Input
|
||||||
|
HEADERS += ../YACReaderLibrary/library_creator.h \
|
||||||
|
../YACReaderLibrary/package_manager.h \
|
||||||
|
../YACReaderLibrary/bundle_creator.h \
|
||||||
|
../YACReaderLibrary/db_helper.h \
|
||||||
|
../YACReaderLibrary/db/data_base_management.h \
|
||||||
|
../common/comic_db.h \
|
||||||
|
../common/folder.h \
|
||||||
|
../common/library_item.h \
|
||||||
|
../common/comic.h \
|
||||||
|
../common/bookmarks.h \
|
||||||
|
../common/qnaturalsorting.h \
|
||||||
|
../common/yacreader_global.h \
|
||||||
|
../YACReaderLibrary/yacreader_local_server.h \
|
||||||
|
../YACReaderLibrary/comics_remover.h \
|
||||||
|
../common/http_worker.h \
|
||||||
|
../YACReaderLibrary/yacreader_libraries.h \
|
||||||
|
../YACReaderLibrary/comic_files_manager.h \
|
||||||
|
../YACReaderLibrary/headless/console_ui_library_creator.h
|
||||||
|
|
||||||
|
|
||||||
|
SOURCES += ../YACReaderLibrary/library_creator.cpp \
|
||||||
|
../YACReaderLibrary/headless\main.cpp \
|
||||||
|
../YACReaderLibrary/package_manager.cpp \
|
||||||
|
../YACReaderLibrary/bundle_creator.cpp \
|
||||||
|
../YACReaderLibrary/db_helper.cpp \
|
||||||
|
../YACReaderLibrary/db/data_base_management.cpp \
|
||||||
|
../common/comic_db.cpp \
|
||||||
|
../common/folder.cpp \
|
||||||
|
../common/library_item.cpp \
|
||||||
|
../common/comic.cpp \
|
||||||
|
../common/bookmarks.cpp \
|
||||||
|
../common/qnaturalsorting.cpp \
|
||||||
|
../YACReaderLibrary/yacreader_local_server.cpp \
|
||||||
|
../YACReaderLibrary/comics_remover.cpp \
|
||||||
|
../common/http_worker.cpp \
|
||||||
|
../common/yacreader_global.cpp \
|
||||||
|
../YACReaderLibrary/yacreader_libraries.cpp \
|
||||||
|
../YACReaderLibrary/comic_files_manager.cpp \
|
||||||
|
../YACReaderLibrary/headless/console_ui_library_creator.cpp
|
||||||
|
|
||||||
|
|
||||||
|
include(../YACReaderLibrary/server/server.pri)
|
||||||
|
CONFIG(7zip){
|
||||||
|
include(../compressed_archive/wrapper.pri)
|
||||||
|
} else:CONFIG(unarr) {
|
||||||
|
include(../compressed_archive/unarr/unarr-wrapper.pri)
|
||||||
|
} else {
|
||||||
|
error(No compression backend specified. Did you mess with the build system?)
|
||||||
|
}
|
||||||
|
include(../QsLog/QsLog.pri)
|
||||||
|
|
||||||
|
|
||||||
|
TRANSLATIONS = yacreaderlibraryserver_es.ts \
|
||||||
|
yacreaderlibraryserver_ru.ts \
|
||||||
|
yacreaderlibraryserver_pt.ts \
|
||||||
|
yacreaderlibraryserver_fr.ts \
|
||||||
|
yacreaderlibraryserver_nl.ts \
|
||||||
|
yacreaderlibraryserver_tr.ts \
|
||||||
|
yacreaderlibraryserver_de.ts \
|
||||||
|
yacreaderlibraryserver_source.ts
|
||||||
|
|
||||||
|
|
||||||
|
RESOURCES += ../YACReaderLibrary/headless/images.qrc
|
||||||
|
|
||||||
|
|
||||||
|
Release:DESTDIR = ../release
|
||||||
|
Debug:DESTDIR = ../debug
|
||||||
|
|
||||||
|
|
||||||
|
unix:!macx {
|
||||||
|
#set install prefix if it's empty
|
||||||
|
isEmpty(PREFIX) {
|
||||||
|
PREFIX = /usr
|
||||||
|
}
|
||||||
|
|
||||||
|
BINDIR = $$PREFIX/bin
|
||||||
|
LIBDIR = $$PREFIX/lib
|
||||||
|
DATADIR = $$PREFIX/share
|
||||||
|
|
||||||
|
DEFINES += "LIBDIR=\\\"$$LIBDIR\\\"" "DATADIR=\\\"$$DATADIR\\\"" "BINDIR=\\\"$$BINDIR\\\""
|
||||||
|
|
||||||
|
#MAKE INSTALL
|
||||||
|
INSTALLS += bin server translation #manpage
|
||||||
|
|
||||||
|
bin.path = $$BINDIR
|
||||||
|
isEmpty(DESTDIR) {
|
||||||
|
bin.files = YACReaderLibraryServer
|
||||||
|
} else {
|
||||||
|
bin.files = $$DESTDIR/YACReaderLibraryServer
|
||||||
|
}
|
||||||
|
|
||||||
|
server.path = $$DATADIR/yacreader
|
||||||
|
server.files = ../release/server
|
||||||
|
|
||||||
|
translation.path = $$DATADIR/yacreader/languages
|
||||||
|
translation.files = ../release/languages/yacreaderlibrary_*
|
||||||
|
|
||||||
|
#manpage.path = $$DATADIR/man/man1
|
||||||
|
#manpage.files = ../YACReaderLibrary.1
|
||||||
|
}
|
71
YACReaderLibraryServer/headless_config.pri
Normal file
71
YACReaderLibraryServer/headless_config.pri
Normal file
@ -0,0 +1,71 @@
|
|||||||
|
#functions to automatically initialize some of YACReader's build options to
|
||||||
|
#default values if they're not set on build time
|
||||||
|
#for a more detailed description, see INSTALL.TXT
|
||||||
|
|
||||||
|
#check Qt version
|
||||||
|
QT_VERSION = $$[QT_VERSION]
|
||||||
|
QT_VERSION = $$split(QT_VERSION, ".")
|
||||||
|
QT_VER_MAJ = $$member(QT_VERSION, 0)
|
||||||
|
QT_VER_MIN = $$member(QT_VERSION, 1)
|
||||||
|
|
||||||
|
lessThan(QT_VER_MAJ, 5) {
|
||||||
|
error(YACReader requires Qt 5 or newer but Qt $$[QT_VERSION] was detected.)
|
||||||
|
}
|
||||||
|
lessThan(QT_VER_MIN, 3){
|
||||||
|
error ("You need at least Qt 5.3 to build YACReader or YACReaderLibrary")
|
||||||
|
}
|
||||||
|
!CONFIG(unarr):!CONFIG(7zip) {
|
||||||
|
unix {
|
||||||
|
!macx {
|
||||||
|
CONFIG+=unarr
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
CONFIG+=7zip
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
win32 {
|
||||||
|
CONFIG+=7zip
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
unix {
|
||||||
|
!macx {
|
||||||
|
packagesExist(QtCore) {
|
||||||
|
message("Found QtCore")
|
||||||
|
}
|
||||||
|
else: {
|
||||||
|
error("Missing dependency: QtCore")
|
||||||
|
}
|
||||||
|
packagesExist(QtGui) {
|
||||||
|
message("Found QtGui")
|
||||||
|
}
|
||||||
|
else: {
|
||||||
|
error("Missing dependency: QtGui")
|
||||||
|
}
|
||||||
|
packagesExist(poppler-qt5) {
|
||||||
|
message("Found poppler-qt5")
|
||||||
|
}
|
||||||
|
else: {
|
||||||
|
error("Missing dependency: poppler-qt5")
|
||||||
|
}
|
||||||
|
packagesExist(QtNetwork) {
|
||||||
|
message("Found QtNetwork")
|
||||||
|
}
|
||||||
|
else: {
|
||||||
|
error("Missing dependency: QtNetwork")
|
||||||
|
}
|
||||||
|
packagesExist(QtSql) {
|
||||||
|
message("Found QtSql")
|
||||||
|
}
|
||||||
|
else: {
|
||||||
|
error("Missing dependency: QtSql")
|
||||||
|
}
|
||||||
|
packagesExist(sqlite3) {
|
||||||
|
message("Found sqlite3")
|
||||||
|
}
|
||||||
|
else: {
|
||||||
|
error("Missing dependency: sqlite3")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user