2015-06-28 14:22:35 +03:00
|
|
|
TARGET = harbour-books
|
|
|
|
CONFIG += sailfishapp link_pkgconfig
|
2015-06-28 22:28:54 +03:00
|
|
|
PKGCONFIG += sailfishapp mlite5 glib-2.0
|
2015-06-28 14:22:35 +03:00
|
|
|
#QT += dbus
|
|
|
|
|
|
|
|
!include(../common.pri)
|
|
|
|
|
|
|
|
CONFIG(debug, debug|release) {
|
|
|
|
DEFINES += HARBOUR_DEBUG=1
|
|
|
|
}
|
|
|
|
|
|
|
|
# Directories
|
|
|
|
FBREADER_DIR = $$_PRO_FILE_PWD_/../fbreader
|
|
|
|
FRIBIDI_DIR = $$_PRO_FILE_PWD_/../fribidi
|
|
|
|
LINEBREAK_DIR = $$_PRO_FILE_PWD_/../linebreak
|
|
|
|
HARBOUR_LIB_DIR = $$_PRO_FILE_PWD_/../harbour-lib
|
|
|
|
|
|
|
|
# Libraries
|
|
|
|
FBREADER_LIB = $$OUT_PWD/../fbreader/libfbreader.a
|
|
|
|
FRIBIDI_LIB = $$OUT_PWD/../fribidi/libfribidi.a
|
|
|
|
LINEBREAK_LIB = $$OUT_PWD/../linebreak/liblinebreak.a
|
|
|
|
HARBOUR_LIB = $$OUT_PWD/../harbour-lib/libharbour-lib.a
|
|
|
|
|
|
|
|
PRE_TARGETDEPS += \
|
|
|
|
$$FBREADER_LIB \
|
|
|
|
$$FRIBIDI_LIB \
|
|
|
|
$$LINEBREAK_LIB \
|
|
|
|
$$HARBOUR_LIB
|
|
|
|
LIBS += \
|
|
|
|
$$FBREADER_LIB \
|
|
|
|
$$FRIBIDI_LIB \
|
|
|
|
$$LINEBREAK_LIB \
|
|
|
|
$$HARBOUR_LIB \
|
|
|
|
-lbz2 -lz -ldl
|
|
|
|
|
|
|
|
OTHER_FILES += \
|
2015-10-21 13:31:48 +03:00
|
|
|
icons/harbour-books.svg \
|
2015-06-28 14:22:35 +03:00
|
|
|
harbour-books.desktop \
|
|
|
|
qml/*.qml \
|
|
|
|
qml/images/* \
|
|
|
|
data/default/* \
|
|
|
|
data/zlibrary/core/encodings/* \
|
|
|
|
data/zlibrary/core/resources/* \
|
|
|
|
translations/*.ts
|
|
|
|
|
|
|
|
TARGET_DATA_DIR = /usr/share/harbour-books
|
|
|
|
TARGET_DEFAULT_DATA_DIR = $$TARGET_DATA_DIR/data
|
|
|
|
TARGET_ZLIBRARY_DATA_DIR = $$TARGET_DEFAULT_DATA_DIR
|
2015-10-21 13:31:48 +03:00
|
|
|
TARGET_ICON_ROOT = /usr/share/icons/hicolor
|
2015-06-28 14:22:35 +03:00
|
|
|
|
|
|
|
core_data.files = \
|
|
|
|
data/zlibrary/core/*.gz \
|
|
|
|
data/zlibrary/core/*.zip \
|
|
|
|
data/zlibrary/core/encodings \
|
|
|
|
data/zlibrary/core/resources
|
|
|
|
core_data.path = $$TARGET_ZLIBRARY_DATA_DIR
|
|
|
|
INSTALLS += core_data
|
|
|
|
|
|
|
|
text_data.files = data/zlibrary/text/*.zip
|
|
|
|
text_data.path = $$TARGET_ZLIBRARY_DATA_DIR
|
|
|
|
INSTALLS += text_data
|
|
|
|
|
|
|
|
defaults.files = data/default/*
|
|
|
|
defaults.path = $$TARGET_ZLIBRARY_DATA_DIR
|
|
|
|
INSTALLS += defaults
|
|
|
|
|
|
|
|
formats.files = data/formats/*
|
|
|
|
formats.path = $$TARGET_DEFAULT_DATA_DIR/formats
|
|
|
|
INSTALLS += formats
|
|
|
|
|
2015-10-21 13:31:48 +03:00
|
|
|
icon86.files = icons/86x86/harbour-books.png
|
|
|
|
icon86.path = $$TARGET_ICON_ROOT/86x86/apps
|
|
|
|
INSTALLS += icon86
|
|
|
|
|
|
|
|
icon108.files = icons/108x108/harbour-books.png
|
|
|
|
icon108.path = $$TARGET_ICON_ROOT/108x108/apps
|
|
|
|
INSTALLS += icon108
|
|
|
|
|
|
|
|
icon128.files = icons/128x128/harbour-books.png
|
|
|
|
icon128.path = $$TARGET_ICON_ROOT/128x128/apps
|
|
|
|
INSTALLS += icon128
|
|
|
|
|
|
|
|
icon256.files = icons/256x256/harbour-books.png
|
|
|
|
icon256.path = $$TARGET_ICON_ROOT/256x256/apps
|
|
|
|
INSTALLS += icon256
|
|
|
|
|
2016-04-18 10:37:30 +03:00
|
|
|
CONFIG += sailfishapp_i18n sailfishapp_i18n_idbased
|
2015-06-28 14:22:35 +03:00
|
|
|
TRANSLATIONS += \
|
|
|
|
translations/harbour-books.ts \
|
2016-04-17 00:01:17 +03:00
|
|
|
translations/harbour-books-de.ts \
|
2015-07-11 17:16:09 +03:00
|
|
|
translations/harbour-books-fi.ts \
|
|
|
|
translations/harbour-books-ru.ts \
|
|
|
|
translations/harbour-books-sv.ts
|
2015-06-28 14:22:35 +03:00
|
|
|
|
|
|
|
INCLUDEPATH += \
|
|
|
|
src \
|
|
|
|
$$HARBOUR_LIB_DIR/include \
|
|
|
|
$$FBREADER_DIR/fbreader/fbreader/src \
|
|
|
|
$$FBREADER_DIR/fbreader/zlibrary/text/include \
|
|
|
|
$$FBREADER_DIR/fbreader/zlibrary/core/include \
|
|
|
|
$$FBREADER_DIR/fbreader/zlibrary/core/src/view \
|
|
|
|
$$FBREADER_DIR/fbreader/zlibrary/core/src/dialogs \
|
|
|
|
$$FBREADER_DIR/fbreader/zlibrary/core/src/application \
|
|
|
|
$$FBREADER_DIR/fbreader/zlibrary/core/src/options \
|
|
|
|
$$FBREADER_DIR/fbreader/zlibrary/core/src/unix \
|
|
|
|
$$FBREADER_DIR/fbreader/zlibrary/ui/src/qt4
|
|
|
|
|
|
|
|
SOURCES += \
|
|
|
|
src/BooksBook.cpp \
|
|
|
|
src/BooksBookModel.cpp \
|
|
|
|
src/BooksConfig.cpp \
|
|
|
|
src/BooksCoverModel.cpp \
|
|
|
|
src/BooksCoverWidget.cpp \
|
|
|
|
src/BooksDialogManager.cpp \
|
2015-07-12 17:11:55 +03:00
|
|
|
src/BooksHints.cpp \
|
2015-06-28 14:22:35 +03:00
|
|
|
src/BooksImportModel.cpp \
|
|
|
|
src/BooksListWatcher.cpp \
|
|
|
|
src/BooksLoadingProperty.cpp \
|
|
|
|
src/BooksPageWidget.cpp \
|
|
|
|
src/BooksPaintContext.cpp \
|
2015-11-08 14:20:25 +03:00
|
|
|
src/BooksPathModel.cpp \
|
2015-06-28 14:22:35 +03:00
|
|
|
src/BooksSaveTimer.cpp \
|
|
|
|
src/BooksSettings.cpp \
|
|
|
|
src/BooksShelf.cpp \
|
|
|
|
src/BooksStorage.cpp \
|
|
|
|
src/BooksStorageModel.cpp \
|
|
|
|
src/BooksTask.cpp \
|
|
|
|
src/BooksTextStyle.cpp \
|
|
|
|
src/BooksTaskQueue.cpp \
|
|
|
|
src/BooksTextView.cpp \
|
2015-07-15 22:59:00 +03:00
|
|
|
src/BooksUtil.cpp \
|
2015-06-28 14:22:35 +03:00
|
|
|
src/main.cpp \
|
|
|
|
src/ZLApplication.cpp \
|
|
|
|
src/ZLibrary.cpp
|
|
|
|
|
2015-07-07 13:11:16 +03:00
|
|
|
# Stubs for the libraries not allowed in harbour
|
|
|
|
SOURCES += \
|
|
|
|
stubs/libexpat.c \
|
|
|
|
stubs/libmagic.c \
|
|
|
|
stubs/libudev.c
|
|
|
|
|
2015-06-28 14:22:35 +03:00
|
|
|
HEADERS += \
|
|
|
|
src/BooksBook.h \
|
|
|
|
src/BooksBookModel.h \
|
|
|
|
src/BooksConfig.h \
|
|
|
|
src/BooksCoverModel.h \
|
|
|
|
src/BooksCoverWidget.h \
|
|
|
|
src/BooksDefs.h \
|
|
|
|
src/BooksDialogManager.h \
|
2015-07-12 17:11:55 +03:00
|
|
|
src/BooksHints.h \
|
2015-06-28 14:22:35 +03:00
|
|
|
src/BooksImportModel.h \
|
|
|
|
src/BooksItem.h \
|
|
|
|
src/BooksListWatcher.h \
|
|
|
|
src/BooksLoadingProperty.h \
|
|
|
|
src/BooksPageWidget.h \
|
|
|
|
src/BooksPaintContext.h \
|
2015-11-08 14:20:25 +03:00
|
|
|
src/BooksPathModel.h \
|
2015-06-28 14:22:35 +03:00
|
|
|
src/BooksPos.h \
|
|
|
|
src/BooksSaveTimer.h \
|
|
|
|
src/BooksSettings.h \
|
|
|
|
src/BooksShelf.h \
|
|
|
|
src/BooksStorage.h \
|
|
|
|
src/BooksStorageModel.h \
|
|
|
|
src/BooksTask.h \
|
|
|
|
src/BooksTaskQueue.h \
|
|
|
|
src/BooksTextView.h \
|
|
|
|
src/BooksTextStyle.h \
|
2015-07-15 22:59:00 +03:00
|
|
|
src/BooksTypes.h \
|
|
|
|
src/BooksUtil.h
|