Manage folders.
[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
34 HEADERS += \
35     mainwindow.h \
36     bookview.h \
37     model/opshandler.h \
38     model/unzip/unzip.h \
39     model/unzip/ioapi.h \
40     model/extractzip.h \
41     model/library.h \
42     model/book.h \
43     librarydialog.h \
44     devtools.h \
45     infodialog.h \
46     widgets/translucentbutton.h \
47     settingswindow.h \
48     model/settings.h \
49     bookmarksdialog.h \
50     model/xmlerrorhandler.h \
51     model/containerhandler.h \
52     model/sortedlibrary.h \
53     model/ncxhandler.h \
54     bookmarkinfodialog.h \
55     widgets/dialog.h \
56     chaptersdialog.h \
57     widgets/fullscreenwindow.h \
58     trace.h \
59     widgets/toolbuttonbox.h \
60     model/bookfinder.h \
61     widgets/listwindow.h \
62     foldersdialog.h
63
64 RESOURCES += \
65     dorian.qrc
66
67 OTHER_FILES += \
68     TODO.txt \
69     pkg/acknowledgements.txt \
70     pkg/maemo/postinst \
71     pkg/maemo/dorian.desktop \
72     pkg/maemo/control \
73     pkg/maemo/changelog \
74     pkg/maemo/build.sh \
75     styles/night.css \
76     pkg/changelog \
77     pkg/maemo/build-scratchbox.sh \
78     styles/sand.css \
79     styles/default.css \
80     pkg/version.txt \
81     styles/sand.js \
82     styles/night.js \
83     styles/default.js \
84     styles/day.js \
85     www/index.html
86
87 DEFINES += \
88     USE_FILE32API \
89     DORIAN_TEST_MODEL
90
91 include(model/modeltest/modeltest.pri)
92
93 unix {
94     LIBS += -lz
95 }
96 windows, symbian {
97     # FIXME: Build zlib, too
98 }
99 maemo5 {
100     QT += maemo5 dbus
101     isEmpty(PREFIX) {
102         PREFIX = /usr
103     }
104     BINDIR = $$PREFIX/bin
105     DATADIR =$$PREFIX/share
106     DEFINES += DATADIR=\\\"$$DATADIR\\\" PKGDATADIR=\\\"$$PKGDATADIR\\\"
107
108     # For "make install"
109
110     INSTALLS += target desktop icon48 iconscalable
111
112     target.path = $$BINDIR
113
114     desktop.path = $$DATADIR/applications/hildon
115     desktop.files += pkg/maemo/dorian.desktop
116
117     icon48.path = $$DATADIR/icons/hicolor/48x48/hildon
118     icon48.files += pkg/maemo/icon-48/dorian.png
119
120     iconscalable.path = $$DATADIR/icons/hicolor/scalable/hildon
121     iconscalable.files += pkg/maemo/icon-scalable/dorian.png
122 }