Make it build on Windows. Fix traces on Windows. Abstract out platform specific actio...
[dorian] / dorian.pro
index 368a87b..40de241 100644 (file)
@@ -22,16 +22,15 @@ 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
 
 HEADERS += \
     mainwindow.h \
@@ -54,16 +53,16 @@ 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
 
 RESOURCES += \
     dorian.qrc
@@ -86,7 +85,10 @@ 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
 
 DEFINES += \
     USE_FILE32API \
@@ -95,10 +97,22 @@ 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 = ...
+    TARGET.UID3 = 0xEA633557
+    # TARGET.CAPABILITY = ...
+    # FIXME: Add OpenC ZLIB?
+    INCLUDEPATH += C:\NokiaQtSDK\Symbian\SDK\src\3rdparty\zlib
 }
 maemo5 {
     QT += maemo5 dbus
@@ -124,3 +138,6 @@ maemo5 {
     iconscalable.path = $$DATADIR/icons/hicolor/scalable/hildon
     iconscalable.files += pkg/maemo/icon-scalable/dorian.png
 }
+macx {
+    CONFIG += x86
+}