Keep book metadata in Sqlite. Display progress while loading and upgrading library.
[dorian] / dorian.pro
index 368a87b..cab9378 100644 (file)
@@ -1,4 +1,4 @@
-QT += webkit xml
+QT += webkit xml sql
 
 INCLUDEPATH += $$PWD \
     $$PWD/model \
@@ -22,16 +22,17 @@ SOURCES += \
     bookmarksdialog.cpp \
     model/sortedlibrary.cpp \
     bookmarkinfodialog.cpp \
-    widgets/dialog.cpp \
+    widgets/dyalog.cpp \
     chaptersdialog.cpp \
     widgets/fullscreenwindow.cpp \
     trace.cpp \
     widgets/toolbuttonbox.cpp \
     model/bookfinder.cpp \
     widgets/listwindow.cpp \
-    foldersdialog.cpp \
     widgets/progress.cpp \
-    widgets/bookwindow.cpp
+    widgets/adopterwindow.cpp \
+    platform.cpp \
+    model/bookdb.cpp
 
 HEADERS += \
     mainwindow.h \
@@ -54,16 +55,19 @@ HEADERS += \
     model/sortedlibrary.h \
     model/ncxhandler.h \
     bookmarkinfodialog.h \
-    widgets/dialog.h \
+    widgets/dyalog.h \
     chaptersdialog.h \
     widgets/fullscreenwindow.h \
     trace.h \
     widgets/toolbuttonbox.h \
     model/bookfinder.h \
     widgets/listwindow.h \
-    foldersdialog.h \
     widgets/progress.h \
-    widgets/bookwindow.h
+    widgets/adopterwindow.h \
+    widgets/listview.h \
+    model/xmlhandler.h \
+    platform.h \
+    model/bookdb.h
 
 RESOURCES += \
     dorian.qrc
@@ -86,7 +90,11 @@ OTHER_FILES += \
     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 \
@@ -95,10 +103,23 @@ DEFINES += \
 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, symbian {
-    # FIXME: Build zlib, too
+symbian {
+    ICON = $$PWD/pkg/symbian/book.svgt
+    TARGET.UID3 = 0xEA633557
+    # TARGET.CAPABILITY = ...
+    # FIXME: Add OpenC ZLIB?
+    INCLUDEPATH += C:/NokiaQtSDK/Symbian/SDK/src/3rdparty/zlib \
+        c:/Qt/4.7.0/src/3rdparty/zlib
 }
 maemo5 {
     QT += maemo5 dbus
@@ -124,3 +145,6 @@ maemo5 {
     iconscalable.path = $$DATADIR/icons/hicolor/scalable/hildon
     iconscalable.files += pkg/maemo/icon-scalable/dorian.png
 }
+macx {
+    CONFIG += x86
+}