-QT += webkit xml
+QT += webkit xml sql network
+
+INCLUDEPATH += $$PWD \
+ $$PWD/model \
+ $$PWD/widgets
SOURCES += \
main.cpp \
mainwindow.cpp \
bookview.cpp \
- unzip/unzip.c \
- unzip/ioapi.c \
- extractzip.cpp \
- library.cpp \
- book.cpp \
+ model/unzip/unzip.c \
+ model/unzip/ioapi.c \
+ model/extractzip.cpp \
+ model/library.cpp \
+ model/book.cpp \
librarydialog.cpp \
devtools.cpp \
infodialog.cpp \
- translucentbutton.cpp \
+ widgets/translucentbutton.cpp \
settingswindow.cpp \
- settings.cpp \
+ model/settings.cpp \
bookmarksdialog.cpp \
- sortedlibrary.cpp \
+ model/sortedlibrary.cpp \
bookmarkinfodialog.cpp \
- dialog.cpp \
+ widgets/dyalog.cpp \
chaptersdialog.cpp \
- fullscreenwindow.cpp
+ fullscreenwindow.cpp \
+ trace.cpp \
+ widgets/toolbuttonbox.cpp \
+ model/bookfinder.cpp \
+ widgets/listwindow.cpp \
+ widgets/progress.cpp \
+ adopterwindow.cpp \
+ platform.cpp \
+ model/bookdb.cpp \
+ searchdialog.cpp \
+ search.cpp \
+ widgets/flickable.cpp \
+ searchresultsdialog.cpp \
+ searchresultinfodialog.cpp \
+ widgets/progressdialog.cpp \
+ widgets/splash.cpp
HEADERS += \
mainwindow.h \
bookview.h \
- selectionsuppressor.h \
- opshandler.h \
- unzip/unzip.h \
- unzip/ioapi.h \
- extractzip.h \
- library.h \
- book.h \
+ model/opshandler.h \
+ model/unzip/unzip.h \
+ model/unzip/ioapi.h \
+ model/extractzip.h \
+ model/library.h \
+ model/book.h \
librarydialog.h \
devtools.h \
infodialog.h \
- translucentbutton.h \
+ widgets/translucentbutton.h \
settingswindow.h \
- settings.h \
+ model/settings.h \
bookmarksdialog.h \
- xmlerrorhandler.h \
- containerhandler.h \
- sortedlibrary.h \
- ncxhandler.h \
+ model/xmlerrorhandler.h \
+ model/containerhandler.h \
+ model/sortedlibrary.h \
+ model/ncxhandler.h \
bookmarkinfodialog.h \
- dialog.h \
+ widgets/dyalog.h \
chaptersdialog.h \
- fullscreenwindow.h
+ fullscreenwindow.h \
+ trace.h \
+ widgets/toolbuttonbox.h \
+ model/bookfinder.h \
+ widgets/listwindow.h \
+ widgets/progress.h \
+ adopterwindow.h \
+ model/xmlhandler.h \
+ platform.h \
+ model/bookdb.h \
+ searchdialog.h \
+ search.h \
+ widgets/flickable.h \
+ searchresultsdialog.h \
+ searchresultinfodialog.h \
+ widgets/progressdialog.h \
+ widgets/splash.h
RESOURCES += \
dorian.qrc
styles/night.js \
styles/default.js \
styles/day.js \
- www/index.html
+ www/index.html \
+ pkg/maemo/autobuild.sh \
+ pkg/maemo/autobuild-scratchbox.sh \
+ LICENSE.txt \
+ pkg/symbian/book.svg
DEFINES += \
- USE_FILE32API \
- DORIAN_TEST_MODEL
+ USE_FILE32API
-include(modeltest/modeltest.pri)
+!symbian {
+ DEFINES += DORIAN_TEST_MODEL
+ include(model/modeltest/modeltest.pri)
+}
unix {
- LIBS += -lz
+ symbian {
+ } else {
+ LIBS += -lz
+ }
+}
+
+win32 {
+ DEFINES += ZLIB_WINAPI
+ INCLUDEPATH += $$PWD/model/zlib
+ LIBS += pkg/win32/zlibstat.lib
}
-windows {
- # FIXME: Build zlib, too
+
+symbian {
+ TARGET = Dorian
+ TARGET.UID3 = 0xA89FC85B
+ TARGET.CAPABILITY = UserEnvironment NetworkServices ReadUserData \
+ WriteUserData
+ TARGET.EPOCHEAPSIZE = 0x080000 0x4000000
+ ICON = $$PWD/pkg/symbian/book.svg
+ # packageheader = "$${LITERAL_HASH}{\"Dorian\"}, (0xA89FC85B), 0, 3, 6"
+ # my_deployment.pkg_prerules = packageheader
+ # DEPLOYMENT += my_deployment
+
+ INCLUDEPATH += $(QTDIR)/src/3rdparty/zlib
+ HEADERS += \
+ widgets/flickcharm.h \
+ widgets/mediakeysobserver.h
+ SOURCES += \
+ widgets/flickcharm.cpp \
+ widgets/mediakeysobserver.cpp
+ LIBS += -lremconinterfacebase -lremconcoreapi
}
+
maemo5 {
- QT += maemo5
+ QT += maemo5 dbus
isEmpty(PREFIX) {
PREFIX = /usr
}