Observe volume keys on Symbian. Add minimal documentation to headers.
[dorian] / dorian.pro
1 QT += webkit xml sql network\r
2 \r
3 INCLUDEPATH += $$PWD \\r
4     $$PWD/model \\r
5     $$PWD/widgets\r
6 \r
7 SOURCES += \\r
8     main.cpp \\r
9     mainwindow.cpp \\r
10     bookview.cpp \\r
11     model/unzip/unzip.c \\r
12     model/unzip/ioapi.c \\r
13     model/extractzip.cpp \\r
14     model/library.cpp \\r
15     model/book.cpp \\r
16     librarydialog.cpp \\r
17     devtools.cpp \\r
18     infodialog.cpp \\r
19     widgets/translucentbutton.cpp \\r
20     settingswindow.cpp \\r
21     model/settings.cpp \\r
22     bookmarksdialog.cpp \\r
23     model/sortedlibrary.cpp \\r
24     bookmarkinfodialog.cpp \\r
25     widgets/dyalog.cpp \\r
26     chaptersdialog.cpp \\r
27     widgets/fullscreenwindow.cpp \\r
28     trace.cpp \\r
29     widgets/toolbuttonbox.cpp \\r
30     model/bookfinder.cpp \\r
31     widgets/listwindow.cpp \\r
32     widgets/progress.cpp \\r
33     widgets/adopterwindow.cpp \\r
34     platform.cpp \\r
35     model/bookdb.cpp \\r
36     searchdialog.cpp \\r
37     search.cpp \\r
38     widgets/flickable.cpp \\r
39     widgets/listview.cpp \\r
40     searchresultsdialog.cpp \\r
41     searchresultinfodialog.cpp \\r
42     widgets/progressdialog.cpp\r
43 \r
44 HEADERS += \\r
45     mainwindow.h \\r
46     bookview.h \\r
47     model/opshandler.h \\r
48     model/unzip/unzip.h \\r
49     model/unzip/ioapi.h \\r
50     model/extractzip.h \\r
51     model/library.h \\r
52     model/book.h \\r
53     librarydialog.h \\r
54     devtools.h \\r
55     infodialog.h \\r
56     widgets/translucentbutton.h \\r
57     settingswindow.h \\r
58     model/settings.h \\r
59     bookmarksdialog.h \\r
60     model/xmlerrorhandler.h \\r
61     model/containerhandler.h \\r
62     model/sortedlibrary.h \\r
63     model/ncxhandler.h \\r
64     bookmarkinfodialog.h \\r
65     widgets/dyalog.h \\r
66     chaptersdialog.h \\r
67     widgets/fullscreenwindow.h \\r
68     trace.h \\r
69     widgets/toolbuttonbox.h \\r
70     model/bookfinder.h \\r
71     widgets/listwindow.h \\r
72     widgets/progress.h \\r
73     widgets/adopterwindow.h \\r
74     widgets/listview.h \\r
75     model/xmlhandler.h \\r
76     platform.h \\r
77     model/bookdb.h \\r
78     searchdialog.h \\r
79     search.h \\r
80     widgets/flickable.h \\r
81     searchresultsdialog.h \\r
82     searchresultinfodialog.h \\r
83     widgets/progressdialog.h\r
84 \r
85 RESOURCES += \\r
86     dorian.qrc\r
87 \r
88 OTHER_FILES += \\r
89     TODO.txt \\r
90     pkg/acknowledgements.txt \\r
91     pkg/maemo/postinst \\r
92     pkg/maemo/dorian.desktop \\r
93     pkg/maemo/control \\r
94     pkg/maemo/changelog \\r
95     pkg/maemo/build.sh \\r
96     styles/night.css \\r
97     pkg/changelog \\r
98     pkg/maemo/build-scratchbox.sh \\r
99     styles/sand.css \\r
100     styles/default.css \\r
101     pkg/version.txt \\r
102     styles/sand.js \\r
103     styles/night.js \\r
104     styles/default.js \\r
105     styles/day.js \\r
106     www/index.html \\r
107     pkg/maemo/autobuild.sh \\r
108     pkg/maemo/autobuild-scratchbox.sh \\r
109     LICENSE.txt \\r
110     pkg/symbian/book.svg\r
111 \r
112 DEFINES += \\r
113     USE_FILE32API\r
114 \r
115 !symbian {\r
116     DEFINES += DORIAN_TEST_MODEL\r
117     include(model/modeltest/modeltest.pri)\r
118 }\r
119 \r
120 unix {\r
121     symbian {\r
122     } else {\r
123         LIBS += -lz\r
124     }\r
125 }\r
126 \r
127 win32 {\r
128     DEFINES += ZLIB_WINAPI\r
129     INCLUDEPATH += $$PWD/model/zlib\r
130     LIBS += pkg/win32/zlibstat.lib\r
131 }\r
132 \r
133 symbian {\r
134     TARGET = Dorian\r
135     TARGET.UID3 = 0xEA633557\r
136     TARGET.CAPABILITY = UserEnvironment NetworkServices ReadUserData WriteUserData SwEvent\r
137     TARGET.EPOCHEAPSIZE = 0x080000 0x4000000\r
138     ICON = $$PWD/pkg/symbian/book.svg\r
139     packageheader = "$${LITERAL_HASH}{\"Dorian\"}, (0xEA633557), 0, 3, 4"\r
140     vendorinfo = \\r
141         "%{\"Nokia Betalabs \"}" \\r
142         ":\"Nokia Betalabs \""\r
143     my_deployment.pkg_prerules = packageheader vendorinfo\r
144     DEPLOYMENT += my_deployment\r
145 \r
146     INCLUDEPATH += $(QTDIR)/src/3rdparty/zlib\r
147     HEADERS += \\r
148         widgets/flickcharm.h \\r
149         widgets/mediakeysobserver.h\r
150     SOURCES += \\r
151         widgets/flickcharm.cpp \\r
152         widgets/mediakeysobserver.cpp\r
153     LIBS += -lremconinterfacebase -lremconcoreapi\r
154 }\r
155 \r
156 maemo5 {\r
157     QT += maemo5 dbus\r
158     isEmpty(PREFIX) {\r
159         PREFIX = /usr\r
160     }\r
161     BINDIR = $$PREFIX/bin\r
162     DATADIR =$$PREFIX/share\r
163     DEFINES += DATADIR=\\\"$$DATADIR\\\" PKGDATADIR=\\\"$$PKGDATADIR\\\"\r
164 \r
165     # For "make install"\r
166 \r
167     INSTALLS += target desktop icon48 iconscalable\r
168 \r
169     target.path = $$BINDIR\r
170 \r
171     desktop.path = $$DATADIR/applications/hildon\r
172     desktop.files += pkg/maemo/dorian.desktop\r
173 \r
174     icon48.path = $$DATADIR/icons/hicolor/48x48/hildon\r
175     icon48.files += pkg/maemo/icon-48/dorian.png\r
176 \r
177     iconscalable.path = $$DATADIR/icons/hicolor/scalable/hildon\r
178     iconscalable.files += pkg/maemo/icon-scalable/dorian.png\r
179 }\r