Parse NCX directory for chapter titles. Show chapter titles for bookmarks.
[dorian] / dorian.pro
1 QT += webkit xml
2
3 SOURCES += \
4     main.cpp \
5     mainwindow.cpp \
6     bookview.cpp \
7     unzip/unzip.c \
8     unzip/ioapi.c \
9     extractzip.cpp \
10     library.cpp \
11     book.cpp \
12     info.cpp \
13     librarydialog.cpp \
14     devtools.cpp \
15     infodialog.cpp \
16     translucentbutton.cpp \
17     settingswindow.cpp \
18     settings.cpp \
19     bookmarksdialog.cpp \
20     sortedlibrary.cpp
21
22 HEADERS += \
23     mainwindow.h \
24     bookview.h \
25     selectionsuppressor.h \
26     opshandler.h \
27     unzip/unzip.h \
28     unzip/ioapi.h \
29     extractzip.h \
30     library.h \
31     book.h \
32     info.h \
33     librarydialog.h \
34     devtools.h \
35     infodialog.h \
36     translucentbutton.h \
37     settingswindow.h \
38     settings.h \
39     bookmarksdialog.h \
40     xmlerrorhandler.h \
41     containerhandler.h \
42     sortedlibrary.h \
43     ncxhandler.h
44
45 RESOURCES += \
46     dorian.qrc
47
48 OTHER_FILES += \
49     TODO.txt \
50     pkg/acknowledgements.txt \
51     pkg/maemo/postinst \
52     pkg/maemo/dorian.desktop \
53     pkg/maemo/control \
54     pkg/maemo/changelog \
55     pkg/maemo/build.sh \
56     styles/night.css \
57     pkg/changelog \
58     pkg/maemo/build-scratchbox.sh \
59     styles/sand.css \
60     styles/default.css \
61     pkg/version.txt \
62     styles/sand.js \
63     styles/night.js \
64     styles/default.js \
65     styles/day.js \
66     www/index.html
67
68 DEFINES += \
69     USE_FILE32API \
70     DORIAN_TEST_MODEL
71
72 include(modeltest/modeltest.pri)
73
74 unix {
75     LIBS += -lz
76 }
77 windows {
78     # FIXME: Build zlib, too
79 }
80 maemo5 {
81     QT += maemo5
82     isEmpty(PREFIX) {
83         PREFIX = /usr
84     }
85     BINDIR = $$PREFIX/bin
86     DATADIR =$$PREFIX/share
87     DEFINES += DATADIR=\\\"$$DATADIR\\\" PKGDATADIR=\\\"$$PKGDATADIR\\\"
88
89     # For "make install"
90
91     INSTALLS += target desktop icon48 iconscalable
92
93     target.path = $$BINDIR
94
95     desktop.path = $$DATADIR/applications/hildon
96     desktop.files += pkg/maemo/dorian.desktop
97
98     icon48.path = $$DATADIR/icons/hicolor/48x48/hildon
99     icon48.files += pkg/maemo/icon-48/dorian.png
100
101     iconscalable.path = $$DATADIR/icons/hicolor/scalable/hildon
102     iconscalable.files += pkg/maemo/icon-scalable/dorian.png
103 }