Actually delete books from database. Delete all books when "Clear
[dorian] / dorian.pro
1 QT += webkit xml sql network
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     platform.cpp \
35     model/bookdb.cpp \
36     searchdialog.cpp \
37     search.cpp \
38     widgets/flickable.cpp \
39     widgets/listview.cpp \
40     searchresultsdialog.cpp \
41     searchresultinfodialog.cpp
42
43 HEADERS += \
44     mainwindow.h \
45     bookview.h \
46     model/opshandler.h \
47     model/unzip/unzip.h \
48     model/unzip/ioapi.h \
49     model/extractzip.h \
50     model/library.h \
51     model/book.h \
52     librarydialog.h \
53     devtools.h \
54     infodialog.h \
55     widgets/translucentbutton.h \
56     settingswindow.h \
57     model/settings.h \
58     bookmarksdialog.h \
59     model/xmlerrorhandler.h \
60     model/containerhandler.h \
61     model/sortedlibrary.h \
62     model/ncxhandler.h \
63     bookmarkinfodialog.h \
64     widgets/dyalog.h \
65     chaptersdialog.h \
66     widgets/fullscreenwindow.h \
67     trace.h \
68     widgets/toolbuttonbox.h \
69     model/bookfinder.h \
70     widgets/listwindow.h \
71     widgets/progress.h \
72     widgets/adopterwindow.h \
73     widgets/listview.h \
74     model/xmlhandler.h \
75     platform.h \
76     model/bookdb.h \
77     searchdialog.h \
78     search.h \
79     widgets/flickable.h \
80     searchresultsdialog.h \
81     searchresultinfodialog.h
82
83 RESOURCES += \
84     dorian.qrc
85
86 OTHER_FILES += \
87     TODO.txt \
88     pkg/acknowledgements.txt \
89     pkg/maemo/postinst \
90     pkg/maemo/dorian.desktop \
91     pkg/maemo/control \
92     pkg/maemo/changelog \
93     pkg/maemo/build.sh \
94     styles/night.css \
95     pkg/changelog \
96     pkg/maemo/build-scratchbox.sh \
97     styles/sand.css \
98     styles/default.css \
99     pkg/version.txt \
100     styles/sand.js \
101     styles/night.js \
102     styles/default.js \
103     styles/day.js \
104     www/index.html \
105     pkg/maemo/autobuild.sh \
106     pkg/maemo/autobuild-scratchbox.sh \
107     LICENSE.txt \
108     pkg/symbian/book.svg
109
110 DEFINES += \
111     USE_FILE32API
112
113 !symbian {
114     DEFINES += DORIAN_TEST_MODEL
115     include(model/modeltest/modeltest.pri)
116 }
117
118 unix {
119     symbian {
120     } else {
121         LIBS += -lz
122     }
123 }
124
125 win32 {
126     DEFINES += ZLIB_WINAPI
127     INCLUDEPATH += $$PWD/model/zlib
128     LIBS += pkg/win32/zlibstat.lib
129 }
130
131 symbian {
132     ICON = $$PWD/pkg/symbian/book.svgt
133     TARGET.UID3 = 0xEA633557
134     TARGET.CAPABILITY = NetworkServices
135     # FIXME: Include path to OpenC ZLIB?
136     INCLUDEPATH += c:/Qt/4.7.0/src/3rdparty/zlib
137     HEADERS += widgets/flickcharm.h
138     SOURCES += widgets/flickcharm.cpp
139 }
140
141 maemo5 {
142     QT += maemo5 dbus
143     isEmpty(PREFIX) {
144         PREFIX = /usr
145     }
146     BINDIR = $$PREFIX/bin
147     DATADIR =$$PREFIX/share
148     DEFINES += DATADIR=\\\"$$DATADIR\\\" PKGDATADIR=\\\"$$PKGDATADIR\\\"
149
150     # For "make install"
151
152     INSTALLS += target desktop icon48 iconscalable
153
154     target.path = $$BINDIR
155
156     desktop.path = $$DATADIR/applications/hildon
157     desktop.files += pkg/maemo/dorian.desktop
158
159     icon48.path = $$DATADIR/icons/hicolor/48x48/hildon
160     icon48.files += pkg/maemo/icon-48/dorian.png
161
162     iconscalable.path = $$DATADIR/icons/hicolor/scalable/hildon
163     iconscalable.files += pkg/maemo/icon-scalable/dorian.png
164 }