Facelift bookmarks dialog. Add Maemo-friendly dialog box class.
[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     librarydialog.cpp \
13     devtools.cpp \
14     infodialog.cpp \
15     translucentbutton.cpp \
16     settingswindow.cpp \
17     settings.cpp \
18     bookmarksdialog.cpp \
19     sortedlibrary.cpp \
20     bookmarkinfodialog.cpp \
21     dialog.cpp
22
23 HEADERS += \
24     mainwindow.h \
25     bookview.h \
26     selectionsuppressor.h \
27     opshandler.h \
28     unzip/unzip.h \
29     unzip/ioapi.h \
30     extractzip.h \
31     library.h \
32     book.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     bookmarkinfodialog.h \
45     dialog.h
46
47 RESOURCES += \
48     dorian.qrc
49
50 OTHER_FILES += \
51     TODO.txt \
52     pkg/acknowledgements.txt \
53     pkg/maemo/postinst \
54     pkg/maemo/dorian.desktop \
55     pkg/maemo/control \
56     pkg/maemo/changelog \
57     pkg/maemo/build.sh \
58     styles/night.css \
59     pkg/changelog \
60     pkg/maemo/build-scratchbox.sh \
61     styles/sand.css \
62     styles/default.css \
63     pkg/version.txt \
64     styles/sand.js \
65     styles/night.js \
66     styles/default.js \
67     styles/day.js \
68     www/index.html
69
70 DEFINES += \
71     USE_FILE32API \
72     DORIAN_TEST_MODEL
73
74 include(modeltest/modeltest.pri)
75
76 unix {
77     LIBS += -lz
78 }
79 windows {
80     # FIXME: Build zlib, too
81 }
82 maemo5 {
83     QT += maemo5
84     isEmpty(PREFIX) {
85         PREFIX = /usr
86     }
87     BINDIR = $$PREFIX/bin
88     DATADIR =$$PREFIX/share
89     DEFINES += DATADIR=\\\"$$DATADIR\\\" PKGDATADIR=\\\"$$PKGDATADIR\\\"
90
91     # For "make install"
92
93     INSTALLS += target desktop icon48 iconscalable
94
95     target.path = $$BINDIR
96
97     desktop.path = $$DATADIR/applications/hildon
98     desktop.files += pkg/maemo/dorian.desktop
99
100     icon48.path = $$DATADIR/icons/hicolor/48x48/hildon
101     icon48.files += pkg/maemo/icon-48/dorian.png
102
103     iconscalable.path = $$DATADIR/icons/hicolor/scalable/hildon
104     iconscalable.files += pkg/maemo/icon-scalable/dorian.png
105 }