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