Add settings for navigating with volume keys.
[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/dialog.cpp \
26     chaptersdialog.cpp \
27     widgets/fullscreenwindow.cpp \
28     trace.cpp \
29     widgets/toolbuttonbox.cpp \
30     model/bookfinder.cpp \
31     widgets/listwindow.cpp \
32     foldersdialog.cpp \
33     widgets/progress.cpp \
34     widgets/bookwindow.cpp
35
36 HEADERS += \
37     mainwindow.h \
38     bookview.h \
39     model/opshandler.h \
40     model/unzip/unzip.h \
41     model/unzip/ioapi.h \
42     model/extractzip.h \
43     model/library.h \
44     model/book.h \
45     librarydialog.h \
46     devtools.h \
47     infodialog.h \
48     widgets/translucentbutton.h \
49     settingswindow.h \
50     model/settings.h \
51     bookmarksdialog.h \
52     model/xmlerrorhandler.h \
53     model/containerhandler.h \
54     model/sortedlibrary.h \
55     model/ncxhandler.h \
56     bookmarkinfodialog.h \
57     widgets/dialog.h \
58     chaptersdialog.h \
59     widgets/fullscreenwindow.h \
60     trace.h \
61     widgets/toolbuttonbox.h \
62     model/bookfinder.h \
63     widgets/listwindow.h \
64     foldersdialog.h \
65     widgets/progress.h \
66     widgets/bookwindow.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
91 DEFINES += \
92     USE_FILE32API \
93     DORIAN_TEST_MODEL
94
95 include(model/modeltest/modeltest.pri)
96
97 unix {
98     LIBS += -lz
99 }
100 windows, symbian {
101     # FIXME: Build zlib, too
102 }
103 maemo5 {
104     QT += maemo5 dbus
105     isEmpty(PREFIX) {
106         PREFIX = /usr
107     }
108     BINDIR = $$PREFIX/bin
109     DATADIR =$$PREFIX/share
110     DEFINES += DATADIR=\\\"$$DATADIR\\\" PKGDATADIR=\\\"$$PKGDATADIR\\\"
111
112     # For "make install"
113
114     INSTALLS += target desktop icon48 iconscalable
115
116     target.path = $$BINDIR
117
118     desktop.path = $$DATADIR/applications/hildon
119     desktop.files += pkg/maemo/dorian.desktop
120
121     icon48.path = $$DATADIR/icons/hicolor/48x48/hildon
122     icon48.files += pkg/maemo/icon-48/dorian.png
123
124     iconscalable.path = $$DATADIR/icons/hicolor/scalable/hildon
125     iconscalable.files += pkg/maemo/icon-scalable/dorian.png
126 }