Fix forward navigation control on Linux.
[dorian] / dorian.pro
index a6982aa..87b7367 100644 (file)
@@ -1,4 +1,4 @@
-QT += webkit xml
+QT += webkit xml sql network
 
 INCLUDEPATH += $$PWD \
     $$PWD/model \
@@ -22,13 +22,25 @@ SOURCES += \
     bookmarksdialog.cpp \
     model/sortedlibrary.cpp \
     bookmarkinfodialog.cpp \
-    widgets/dialog.cpp \
+    widgets/dyalog.cpp \
     chaptersdialog.cpp \
-    widgets/fullscreenwindow.cpp \
+    fullscreenwindow.cpp \
     trace.cpp \
     widgets/toolbuttonbox.cpp \
     model/bookfinder.cpp \
-    widgets/listwindow.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 \
+    widgets/mainbase.cpp
 
 HEADERS += \
     mainwindow.h \
@@ -51,13 +63,26 @@ HEADERS += \
     model/sortedlibrary.h \
     model/ncxhandler.h \
     bookmarkinfodialog.h \
-    widgets/dialog.h \
+    widgets/dyalog.h \
     chaptersdialog.h \
-    widgets/fullscreenwindow.h \
+    fullscreenwindow.h \
     trace.h \
     widgets/toolbuttonbox.h \
     model/bookfinder.h \
-    widgets/listwindow.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 \
+    widgets/mainbase.h
 
 RESOURCES += \
     dorian.qrc
@@ -80,20 +105,58 @@ 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 \
+    pkg/symbian/clean.bat \
+    pkg/maemo/icon-48/dorian.png \
+    pkg/maemo/icon-scalable/dorian.png \
+    qtc_packaging/debian_fremantle/rules \
+    qtc_packaging/debian_fremantle/README \
+    qtc_packaging/debian_fremantle/copyright \
+    qtc_packaging/debian_fremantle/control \
+    qtc_packaging/debian_fremantle/compat \
+    qtc_packaging/debian_fremantle/changelog
 
 DEFINES += \
-    USE_FILE32API \
-    DORIAN_TEST_MODEL
+    USE_FILE32API
 
-include(model/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, symbian {
-    # FIXME: Build zlib, too
+
+symbian {
+    TARGET = Dorian
+    TARGET.UID3 = 0xA89FC85B
+    TARGET.CAPABILITY = UserEnvironment NetworkServices ReadUserData \
+        WriteUserData
+    ICON = $$PWD/pkg/symbian/book.svg
+
+    HEADERS += \
+        widgets/flickcharm.h \
+        widgets/mediakeysobserver.h
+    SOURCES += \
+        widgets/flickcharm.cpp \
+        widgets/mediakeysobserver.cpp
+    LIBS += -lremconinterfacebase -lremconcoreapi -lcone -leikcore -lavkon
 }
+
 maemo5 {
     QT += maemo5 dbus
     isEmpty(PREFIX) {
@@ -118,3 +181,6 @@ maemo5 {
     iconscalable.path = $$DATADIR/icons/hicolor/scalable/hildon
     iconscalable.files += pkg/maemo/icon-scalable/dorian.png
 }
+
+include(deployment.pri)
+qtcAddDeployment()