Improve default book. Speed up book parsing. Simplify XML parsing.
[dorian] / dorian.pro
1 QT += webkit xml
2
3 INCLUDEPATH += $$PWD \
4     $$PWD/model \
5     $$PWD/widgets
6
7 SOURCES += \
8     main.cpp \
9     mainwindow.cpp \
10     bookview.cpp \
11     model/unzip/unzip.c \
12     model/unzip/ioapi.c \
13     model/extractzip.cpp \
14     model/library.cpp \
15     model/book.cpp \
16     librarydialog.cpp \
17     devtools.cpp \
18     infodialog.cpp \
19     widgets/translucentbutton.cpp \
20     settingswindow.cpp \
21     model/settings.cpp \
22     bookmarksdialog.cpp \
23     model/sortedlibrary.cpp \
24     bookmarkinfodialog.cpp \
25     widgets/dyalog.cpp \
26     chaptersdialog.cpp \
27     widgets/fullscreenwindow.cpp \
28     trace.cpp \
29     widgets/toolbuttonbox.cpp \
30     model/bookfinder.cpp \
31     widgets/listwindow.cpp \
32     widgets/progress.cpp \
33     widgets/adopterwindow.cpp
34
35 HEADERS += \
36     mainwindow.h \
37     bookview.h \
38     model/opshandler.h \
39     model/unzip/unzip.h \
40     model/unzip/ioapi.h \
41     model/extractzip.h \
42     model/library.h \
43     model/book.h \
44     librarydialog.h \
45     devtools.h \
46     infodialog.h \
47     widgets/translucentbutton.h \
48     settingswindow.h \
49     model/settings.h \
50     bookmarksdialog.h \
51     model/xmlerrorhandler.h \
52     model/containerhandler.h \
53     model/sortedlibrary.h \
54     model/ncxhandler.h \
55     bookmarkinfodialog.h \
56     widgets/dyalog.h \
57     chaptersdialog.h \
58     widgets/fullscreenwindow.h \
59     trace.h \
60     widgets/toolbuttonbox.h \
61     model/bookfinder.h \
62     widgets/listwindow.h \
63     widgets/progress.h \
64     widgets/adopterwindow.h \
65     widgets/listview.h \
66     model/xmlhandler.h
67
68 RESOURCES += \
69     dorian.qrc
70
71 OTHER_FILES += \
72     TODO.txt \
73     pkg/acknowledgements.txt \
74     pkg/maemo/postinst \
75     pkg/maemo/dorian.desktop \
76     pkg/maemo/control \
77     pkg/maemo/changelog \
78     pkg/maemo/build.sh \
79     styles/night.css \
80     pkg/changelog \
81     pkg/maemo/build-scratchbox.sh \
82     styles/sand.css \
83     styles/default.css \
84     pkg/version.txt \
85     styles/sand.js \
86     styles/night.js \
87     styles/default.js \
88     styles/day.js \
89     www/index.html \
90     pkg/maemo/autobuild.sh \
91     pkg/maemo/autobuild-scratchbox.sh \
92     LICENSE.txt \
93     pkg/symbian/book.svg
94
95 DEFINES += \
96     USE_FILE32API \
97     DORIAN_TEST_MODEL
98
99 include(model/modeltest/modeltest.pri)
100
101 unix {
102     symbian {
103     } else {
104         LIBS += -lz
105     }
106 }
107 win32 {
108     DEFINES += ZLIB_WINAPI
109     INCLUDEPATH += $$PWD/model/zlib
110     LIBS += pkg/win32/zlibstat.lib
111 }
112 symbian {
113     ICON = $$PWD/pkg/symbian/book.svgt
114     TARGET.UID3 = 0xEA633557
115     # TARGET.CAPABILITY = ...
116     # FIXME: Add OpenC ZLIB?
117     INCLUDEPATH += C:/NokiaQtSDK/Symbian/SDK/src/3rdparty/zlib \
118         c:/Qt/4.7.0/src/3rdparty/zlib
119 }
120 maemo5 {
121     QT += maemo5 dbus
122     isEmpty(PREFIX) {
123         PREFIX = /usr
124     }
125     BINDIR = $$PREFIX/bin
126     DATADIR =$$PREFIX/share
127     DEFINES += DATADIR=\\\"$$DATADIR\\\" PKGDATADIR=\\\"$$PKGDATADIR\\\"
128
129     # For "make install"
130
131     INSTALLS += target desktop icon48 iconscalable
132
133     target.path = $$BINDIR
134
135     desktop.path = $$DATADIR/applications/hildon
136     desktop.files += pkg/maemo/dorian.desktop
137
138     icon48.path = $$DATADIR/icons/hicolor/48x48/hildon
139     icon48.files += pkg/maemo/icon-48/dorian.png
140
141     iconscalable.path = $$DATADIR/icons/hicolor/scalable/hildon
142     iconscalable.files += pkg/maemo/icon-scalable/dorian.png
143 }
144 macx {
145     CONFIG += x86
146 }