mirror of
https://github.com/YACReader/yacreader
synced 2025-05-28 03:10:27 -04:00
268 lines
7.0 KiB
Prolog
268 lines
7.0 KiB
Prolog
######################################################################
|
|
# Automatically generated by qmake (2.01a) dom 12. oct 20:47:48 2008
|
|
######################################################################
|
|
|
|
TEMPLATE = app
|
|
TARGET = YACReaderLibrary
|
|
DEPENDPATH += .
|
|
INCLUDEPATH += .
|
|
INCLUDEPATH += ../common \
|
|
./server \
|
|
./db \
|
|
../custom_widgets \
|
|
./comic_vine \
|
|
./comic_vine/model
|
|
|
|
DEFINES += SERVER_RELEASE NOMINMAX
|
|
|
|
win32 {
|
|
|
|
LIBS += -L../dependencies/poppler/lib -loleaut32 -lole32 -lshell32
|
|
|
|
isEqual(QT_MAJOR_VERSION, 5) {
|
|
LIBS += -lpoppler-qt5
|
|
INCLUDEPATH += ../dependencies/poppler/include/qt5
|
|
}
|
|
else {
|
|
LIBS += -lpoppler-qt4
|
|
INCLUDEPATH += ../dependencies/poppler/include/qt4
|
|
}
|
|
|
|
QMAKE_CXXFLAGS_RELEASE += /MP /Ob2 /Oi /Ot /GT /GL
|
|
QMAKE_LFLAGS_RELEASE += /LTCG
|
|
CONFIG -= embed_manifest_exe
|
|
}
|
|
|
|
unix:!macx{
|
|
|
|
isEqual(QT_MAJOR_VERSION, 5) {
|
|
INCLUDEPATH += /usr/include/poppler/qt5
|
|
LIBS += -L/usr/lib -lpoppler-qt5
|
|
}
|
|
else {
|
|
INCLUDEPATH += /usr/include/poppler/qt4
|
|
LIBS += -L/usr/lib -lpoppler-qt4
|
|
}
|
|
LIBS += -lGLU
|
|
}
|
|
|
|
macx{
|
|
#INCLUDEPATH += "/Volumes/Mac OS X Lion/usr/X11/include"
|
|
#isEqual(QT_MAJOR_VERSION, 5) {
|
|
#INCLUDEPATH += /usr/local/include/poppler/qt5
|
|
#LIBS += -L/usr/local/lib -lpoppler-qt5
|
|
#}
|
|
#else {
|
|
#INCLUDEPATH += /usr/local/include/poppler/qt4
|
|
#LIBS += -L/usr/local/lib -lpoppler-qt4
|
|
#}
|
|
#QT += macextras
|
|
|
|
LIBS += -framework Foundation -framework ApplicationServices
|
|
|
|
OBJECTIVE_SOURCES += $$PWD/../common/pdf_comic.mm
|
|
HEADERS += $$PWD/../common/pdf_comic.h
|
|
CONFIG += objective_c
|
|
|
|
}
|
|
|
|
unix{
|
|
QMAKE_CXXFLAGS += -std=c++11
|
|
}
|
|
|
|
#CONFIG += release
|
|
CONFIG -= flat
|
|
QT += sql network opengl script
|
|
|
|
# Input
|
|
HEADERS += comic_flow.h \
|
|
create_library_dialog.h \
|
|
library_creator.h \
|
|
library_window.h \
|
|
add_library_dialog.h \
|
|
rename_library_dialog.h \
|
|
properties_dialog.h \
|
|
options_dialog.h \
|
|
export_library_dialog.h \
|
|
import_library_dialog.h \
|
|
package_manager.h \
|
|
bundle_creator.h \
|
|
export_comics_info_dialog.h \
|
|
import_comics_info_dialog.h \
|
|
server_config_dialog.h \
|
|
comic_flow_widget.h \
|
|
db_helper.h \
|
|
./db/data_base_management.h \
|
|
./db/treeitem.h \
|
|
./db/treemodel.h \
|
|
./db/tablemodel.h \
|
|
./db/tableitem.h \
|
|
../common/comic_db.h \
|
|
../common/folder.h \
|
|
../common/library_item.h \
|
|
../common/comic.h \
|
|
../common/bookmarks.h \
|
|
../common/pictureflow.h \
|
|
../common/custom_widgets.h \
|
|
../common/qnaturalsorting.h \
|
|
../common/yacreader_flow_gl.h \
|
|
../common/yacreader_global.h \
|
|
../common/onstart_flow_selection_dialog.h \
|
|
no_libraries_widget.h \
|
|
import_widget.h \
|
|
yacreader_local_server.h \
|
|
yacreader_main_toolbar.h \
|
|
comics_remover.h \
|
|
../common/http_worker.h \
|
|
yacreader_libraries.h \
|
|
../common/exit_check.h \
|
|
comics_view.h \
|
|
classic_comics_view.h
|
|
|
|
|
|
SOURCES += comic_flow.cpp \
|
|
create_library_dialog.cpp \
|
|
library_creator.cpp \
|
|
library_window.cpp \
|
|
main.cpp \
|
|
add_library_dialog.cpp \
|
|
rename_library_dialog.cpp \
|
|
properties_dialog.cpp \
|
|
options_dialog.cpp \
|
|
export_library_dialog.cpp \
|
|
import_library_dialog.cpp \
|
|
package_manager.cpp \
|
|
bundle_creator.cpp \
|
|
export_comics_info_dialog.cpp \
|
|
import_comics_info_dialog.cpp \
|
|
server_config_dialog.cpp \
|
|
comic_flow_widget.cpp \
|
|
db_helper.cpp \
|
|
./db/data_base_management.cpp \
|
|
./db/treeitem.cpp \
|
|
./db/treemodel.cpp \
|
|
./db/tablemodel.cpp \
|
|
./db/tableitem.cpp \
|
|
../common/comic_db.cpp \
|
|
../common/folder.cpp \
|
|
../common/library_item.cpp \
|
|
../common/comic.cpp \
|
|
../common/bookmarks.cpp \
|
|
../common/pictureflow.cpp \
|
|
../common/custom_widgets.cpp \
|
|
../common/qnaturalsorting.cpp \
|
|
../common/yacreader_flow_gl.cpp \
|
|
../common/onstart_flow_selection_dialog.cpp \
|
|
no_libraries_widget.cpp \
|
|
import_widget.cpp \
|
|
yacreader_local_server.cpp \
|
|
yacreader_main_toolbar.cpp \
|
|
comics_remover.cpp \
|
|
../common/http_worker.cpp \
|
|
../common/yacreader_global.cpp \
|
|
yacreader_libraries.cpp \
|
|
../common/exit_check.cpp \
|
|
comics_view.cpp \
|
|
classic_comics_view.cpp
|
|
|
|
|
|
|
|
include(./server/server.pri)
|
|
include(../custom_widgets/custom_widgets_yacreaderlibrary.pri)
|
|
include(../compressed_archive/wrapper.pri)
|
|
include(./comic_vine/comic_vine.pri)
|
|
include(../QsLog/QsLog.pri)
|
|
|
|
RESOURCES += images.qrc files.qrc
|
|
win32:RESOURCES += images_win.qrc
|
|
unix:!macx:RESOURCES += images_win.qrc
|
|
macx:RESOURCES += images_osx.qrc
|
|
|
|
RC_FILE = icon.rc
|
|
|
|
macx {
|
|
ICON = YACReaderLibrary.icns
|
|
}
|
|
|
|
TRANSLATIONS = yacreaderlibrary_es.ts \
|
|
yacreaderlibrary_ru.ts \
|
|
yacreaderlibrary_pt.ts \
|
|
yacreaderlibrary_fr.ts \
|
|
yacreaderlibrary_nl.ts \
|
|
yacreaderlibrary_tr.ts \
|
|
yacreaderlibrary_source.ts
|
|
|
|
isEqual(QT_MAJOR_VERSION, 5) {
|
|
Release:DESTDIR = ../release5
|
|
Debug:DESTDIR = ../debug5
|
|
|
|
#QML/GridView
|
|
QT += quick qml
|
|
|
|
HEADERS += grid_comics_view.h \
|
|
comics_view_transition.h
|
|
|
|
SOURCES += grid_comics_view.cpp \
|
|
comics_view_transition.cpp
|
|
|
|
RESOURCES += qml.qrc
|
|
|
|
} else {
|
|
Release:DESTDIR = ../release
|
|
Debug:DESTDIR = ../debug
|
|
}
|
|
|
|
win32 {
|
|
!exists(../compressed_archive/lib7zip){
|
|
error(You\'ll need 7zip source code to compile YACReader. \
|
|
Please check the compressed_archive folder for further instructions.)
|
|
}
|
|
}
|
|
|
|
unix {
|
|
exists (../compressed_archive/libp7zip) {
|
|
message(Found p7zip source code...)
|
|
system(patch -d ../compressed_archive -N -p0 -i libp7zip.patch)
|
|
} else {
|
|
error(You\'ll need 7zip source code to compile YACReader. \
|
|
Please check the compressed_archive folder for further instructions.)
|
|
}
|
|
}
|
|
|
|
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 icon desktop server translation
|
|
|
|
bin.path = $$BINDIR
|
|
isEmpty(DESTDIR) {
|
|
bin.files = YACReaderLibrary
|
|
} else {
|
|
bin.files = $$DESTDIR/YACReaderLibrary
|
|
}
|
|
|
|
server.path = $$DATADIR/YACReader
|
|
server.files = ../release/server
|
|
|
|
icon.path = $$DATADIR/YACReader
|
|
icon.files = ../images/iconLibrary.png ../images/db.png ../images/coversPackage.png
|
|
|
|
desktop.path = $$DATADIR/applications
|
|
desktop.extra = desktop-file-edit --set-icon=$$DATADIR/YACReader/iconLibrary.png $$PWD/../YACReaderLibrary.desktop
|
|
desktop.files = ../YACReaderLibrary.desktop
|
|
#TODO: icons should be located at /usr/share/icons and have the same basename as their application
|
|
|
|
translation.path = $$DATADIR/YACReader/languages
|
|
translation.files = ../release/languages/yacreaderlibrary_*
|
|
}
|