More packaging fixes.
[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
21 HEADERS += \
22     mainwindow.h \
23     bookview.h \
24     selectionsuppressor.h \
25     opshandler.h \
26     unzip/unzip.h \
27     unzip/ioapi.h \
28     extractzip.h \
29     library.h \
30     book.h \
31     info.h \
32     librarydialog.h \
33     devtools.h \
34     infodialog.h \
35     translucentbutton.h \
36     settingswindow.h \
37     settings.h \
38     bookmarksdialog.h \
39     opserrorhandler.h \
40     containerhandler.h
41
42 RESOURCES += \
43     dorian.qrc
44
45 OTHER_FILES += \
46     TODO.txt \
47     pkg/acknowledgements.txt \
48     pkg/maemo/postinst \
49     pkg/maemo/dorian.desktop \
50     pkg/maemo/control \
51     pkg/maemo/changelog \
52     pkg/maemo/build.sh \
53     styles/night.css \
54     pkg/changelog \
55     pkg/maemo/build-scratchbox.sh \
56     styles/sand.css \
57     styles/default.css \
58     pkg/version.txt \
59     styles/sand.js \
60     styles/night.js \
61     styles/default.js \
62     styles/day.js
63
64 DEFINES += \
65     USE_FILE32API
66
67 unix: LIBS += -lz
68 windows {
69     # FIXME: Build zlib, too
70 }
71 maemo5 {
72     QT += maemo5
73     isEmpty(PREFIX) {
74       PREFIX = /usr
75     }
76     BINDIR = $$PREFIX/bin
77     DATADIR =$$PREFIX/share
78     DEFINES += DATADIR=\\\"$$DATADIR\\\" PKGDATADIR=\\\"$$PKGDATADIR\\\"
79
80     # For "make install"
81
82     INSTALLS += target desktop icon48 iconscalable
83
84     target.path = $$BINDIR
85
86     desktop.path = $$DATADIR/applications/hildon
87     desktop.files += dorian.desktop
88
89     icon48.path = $$DATADIR/icons/hicolor/48x48
90     icon48.files += pkg/maemo/icon-48/dorian.png
91
92     icon64.path = $$DATADIR/icons/hicolor/64x64/apps
93     icon64.files += pkg/maemo/icon-scalable/dorian.png
94 }