Fix forward navigation control on Linux.
[dorian] / dorian.pro
index 5e71141..87b7367 100644 (file)
@@ -1,53 +1,88 @@
-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 \
-    trace.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 \
+    widgets/mainbase.cpp
 
 HEADERS += \
     mainwindow.h \
     bookview.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 \
-    trace.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 \
+    widgets/mainbase.h
 
 RESOURCES += \
     dorian.qrc
@@ -70,22 +105,60 @@ 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(modeltest/modeltest.pri)
+!symbian {
+    DEFINES += DORIAN_TEST_MODEL
+    include(model/modeltest/modeltest.pri)
+}
 
 unix {
-    LIBS += -lz
+    symbian {
+    } else {
+        LIBS += -lz
+    }
 }
-windows {
-    # FIXME: Build zlib, too
+
+win32 {
+    DEFINES += ZLIB_WINAPI
+    INCLUDEPATH += $$PWD/model/zlib
+    LIBS += pkg/win32/zlibstat.lib
 }
+
+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
+    QT += maemo5 dbus
     isEmpty(PREFIX) {
         PREFIX = /usr
     }
@@ -108,3 +181,6 @@ maemo5 {
     iconscalable.path = $$DATADIR/icons/hicolor/scalable/hildon
     iconscalable.files += pkg/maemo/icon-scalable/dorian.png
 }
+
+include(deployment.pri)
+qtcAddDeployment()