Rename Dialog to Dyalog. Create About dialog box.
[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/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     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/dyalog.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     pkg/maemo/autobuild.sh \
91     pkg/maemo/autobuild-scratchbox.sh \
92     LICENSE.txt
93
94 DEFINES += \
95     USE_FILE32API \
96     DORIAN_TEST_MODEL
97
98 include(model/modeltest/modeltest.pri)
99
100 unix {
101     LIBS += -lz
102 }
103 windows, symbian {
104     # FIXME: Build zlib, too
105 }
106 maemo5 {
107     QT += maemo5 dbus
108     isEmpty(PREFIX) {
109         PREFIX = /usr
110     }
111     BINDIR = $$PREFIX/bin
112     DATADIR =$$PREFIX/share
113     DEFINES += DATADIR=\\\"$$DATADIR\\\" PKGDATADIR=\\\"$$PKGDATADIR\\\"
114
115     # For "make install"
116
117     INSTALLS += target desktop icon48 iconscalable
118
119     target.path = $$BINDIR
120
121     desktop.path = $$DATADIR/applications/hildon
122     desktop.files += pkg/maemo/dorian.desktop
123
124     icon48.path = $$DATADIR/icons/hicolor/48x48/hildon
125     icon48.files += pkg/maemo/icon-48/dorian.png
126
127     iconscalable.path = $$DATADIR/icons/hicolor/scalable/hildon
128     iconscalable.files += pkg/maemo/icon-scalable/dorian.png
129 }