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