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