More on library as model.
[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     opserrorhandler.h \
41     containerhandler.h \
42     sortedlibrary.h
43
44 RESOURCES += \
45     dorian.qrc
46
47 OTHER_FILES += \
48     TODO.txt \
49     pkg/acknowledgements.txt \
50     pkg/maemo/postinst \
51     pkg/maemo/dorian.desktop \
52     pkg/maemo/control \
53     pkg/maemo/changelog \
54     pkg/maemo/build.sh \
55     styles/night.css \
56     pkg/changelog \
57     pkg/maemo/build-scratchbox.sh \
58     styles/sand.css \
59     styles/default.css \
60     pkg/version.txt \
61     styles/sand.js \
62     styles/night.js \
63     styles/default.js \
64     styles/day.js
65
66 DEFINES += \
67     USE_FILE32API
68
69 unix: LIBS += -lz
70 windows {
71     # FIXME: Build zlib, too
72 }
73 maemo5 {
74     QT += maemo5
75     isEmpty(PREFIX) {
76         PREFIX = /usr
77     }
78     BINDIR = $$PREFIX/bin
79     DATADIR =$$PREFIX/share
80     DEFINES += DATADIR=\\\"$$DATADIR\\\" PKGDATADIR=\\\"$$PKGDATADIR\\\"
81
82     # For "make install"
83
84     INSTALLS += target desktop icon48 iconscalable
85
86     target.path = $$BINDIR
87
88     desktop.path = $$DATADIR/applications/hildon
89     desktop.files += pkg/maemo/dorian.desktop
90
91     icon48.path = $$DATADIR/icons/hicolor/48x48/hildon
92     icon48.files += pkg/maemo/icon-48/dorian.png
93
94     iconscalable.path = $$DATADIR/icons/hicolor/scalable/hildon
95     iconscalable.files += pkg/maemo/icon-scalable/dorian.png
96 }