X-Git-Url: http://vcs.maemo.org/git/?a=blobdiff_plain;f=dorian.pro;h=87b73679c4dd85079f07bf5e70bd38e24f518d9c;hb=HEAD;hp=0caa0af9da901f4b244007c23264ee130ba90cc6;hpb=41c0fdd2d68424ab3a97f8de0b861e37bb2ccd20;p=dorian diff --git a/dorian.pro b/dorian.pro index 0caa0af..87b7367 100644 --- a/dorian.pro +++ b/dorian.pro @@ -1,46 +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 \ - info.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 \ + widgets/dyalog.cpp \ + chaptersdialog.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 \ + widgets/mainbase.cpp HEADERS += \ mainwindow.h \ bookview.h \ - selectionsuppressor.h \ - opshandler.h \ - unzip/unzip.h \ - unzip/ioapi.h \ - extractzip.h \ - library.h \ - book.h \ - info.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 \ + widgets/dyalog.h \ + chaptersdialog.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 \ + widgets/mainbase.h RESOURCES += \ dorian.qrc @@ -63,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 } @@ -101,3 +181,6 @@ maemo5 { iconscalable.path = $$DATADIR/icons/hicolor/scalable/hildon iconscalable.files += pkg/maemo/icon-scalable/dorian.png } + +include(deployment.pri) +qtcAddDeployment()