Even more Symbian improvements. Work around softkey visibility bug.
[dorian] / dorian.pro
1 QT += webkit xml sql network
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     fullscreenwindow.cpp \
28     trace.cpp \
29     widgets/toolbuttonbox.cpp \
30     model/bookfinder.cpp \
31     widgets/listwindow.cpp \
32     widgets/progress.cpp \
33     adopterwindow.cpp \
34     platform.cpp \
35     model/bookdb.cpp \
36     searchdialog.cpp \
37     search.cpp \
38     widgets/flickable.cpp \
39     searchresultsdialog.cpp \
40     searchresultinfodialog.cpp \
41     widgets/progressdialog.cpp \
42     widgets/splash.cpp \
43     widgets/mainbase.cpp
44
45 HEADERS += \
46     mainwindow.h \
47     bookview.h \
48     model/opshandler.h \
49     model/unzip/unzip.h \
50     model/unzip/ioapi.h \
51     model/extractzip.h \
52     model/library.h \
53     model/book.h \
54     librarydialog.h \
55     devtools.h \
56     infodialog.h \
57     widgets/translucentbutton.h \
58     settingswindow.h \
59     model/settings.h \
60     bookmarksdialog.h \
61     model/xmlerrorhandler.h \
62     model/containerhandler.h \
63     model/sortedlibrary.h \
64     model/ncxhandler.h \
65     bookmarkinfodialog.h \
66     widgets/dyalog.h \
67     chaptersdialog.h \
68     fullscreenwindow.h \
69     trace.h \
70     widgets/toolbuttonbox.h \
71     model/bookfinder.h \
72     widgets/listwindow.h \
73     widgets/progress.h \
74     adopterwindow.h \
75     model/xmlhandler.h \
76     platform.h \
77     model/bookdb.h \
78     searchdialog.h \
79     search.h \
80     widgets/flickable.h \
81     searchresultsdialog.h \
82     searchresultinfodialog.h \
83     widgets/progressdialog.h \
84     widgets/splash.h \
85     widgets/mainbase.h
86
87 RESOURCES += \
88     dorian.qrc
89
90 OTHER_FILES += \
91     TODO.txt \
92     pkg/acknowledgements.txt \
93     pkg/maemo/postinst \
94     pkg/maemo/dorian.desktop \
95     pkg/maemo/control \
96     pkg/maemo/changelog \
97     pkg/maemo/build.sh \
98     styles/night.css \
99     pkg/changelog \
100     pkg/maemo/build-scratchbox.sh \
101     styles/sand.css \
102     styles/default.css \
103     pkg/version.txt \
104     styles/sand.js \
105     styles/night.js \
106     styles/default.js \
107     styles/day.js \
108     www/index.html \
109     pkg/maemo/autobuild.sh \
110     pkg/maemo/autobuild-scratchbox.sh \
111     LICENSE.txt \
112     pkg/symbian/book.svg \
113     pkg/symbian/clean.bat \
114     pkg/maemo/icon-48/dorian.png \
115     pkg/maemo/icon-scalable/dorian.png
116
117 DEFINES += \
118     USE_FILE32API
119
120 !symbian {
121     DEFINES += DORIAN_TEST_MODEL
122     include(model/modeltest/modeltest.pri)
123 }
124
125 unix {
126     symbian {
127     } else {
128         LIBS += -lz
129     }
130 }
131
132 win32 {
133     DEFINES += ZLIB_WINAPI
134     INCLUDEPATH += $$PWD/model/zlib
135     LIBS += pkg/win32/zlibstat.lib
136 }
137
138 symbian {
139     TARGET = Dorian
140     TARGET.UID3 = 0xA89FC85B
141     TARGET.CAPABILITY = UserEnvironment NetworkServices ReadUserData \
142         WriteUserData
143     ICON = $$PWD/pkg/symbian/book.svg
144
145     HEADERS += \
146         widgets/flickcharm.h \
147         widgets/mediakeysobserver.h
148     SOURCES += \
149         widgets/flickcharm.cpp \
150         widgets/mediakeysobserver.cpp
151     LIBS += -lremconinterfacebase -lremconcoreapi -lcone -leikcore -lavkon
152 }
153
154 maemo5 {
155     QT += maemo5 dbus
156     isEmpty(PREFIX) {
157         PREFIX = /usr
158     }
159     BINDIR = $$PREFIX/bin
160     DATADIR =$$PREFIX/share
161     DEFINES += DATADIR=\\\"$$DATADIR\\\" PKGDATADIR=\\\"$$PKGDATADIR\\\"
162
163     # For "make install"
164
165     INSTALLS += target desktop icon48 iconscalable
166
167     target.path = $$BINDIR
168
169     desktop.path = $$DATADIR/applications/hildon
170     desktop.files += pkg/maemo/dorian.desktop
171
172     icon48.path = $$DATADIR/icons/hicolor/48x48/hildon
173     icon48.files += pkg/maemo/icon-48/dorian.png
174
175     iconscalable.path = $$DATADIR/icons/hicolor/scalable/hildon
176     iconscalable.files += pkg/maemo/icon-scalable/dorian.png
177 }
178
179 include(deployment.pri)
180 qtcAddDeployment()