Add Flickable.
[dorian] / dorian.pro
1 QT += webkit xml sql\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 \r
39 HEADERS += \\r
40     mainwindow.h \\r
41     bookview.h \\r
42     model/opshandler.h \\r
43     model/unzip/unzip.h \\r
44     model/unzip/ioapi.h \\r
45     model/extractzip.h \\r
46     model/library.h \\r
47     model/book.h \\r
48     librarydialog.h \\r
49     devtools.h \\r
50     infodialog.h \\r
51     widgets/translucentbutton.h \\r
52     settingswindow.h \\r
53     model/settings.h \\r
54     bookmarksdialog.h \\r
55     model/xmlerrorhandler.h \\r
56     model/containerhandler.h \\r
57     model/sortedlibrary.h \\r
58     model/ncxhandler.h \\r
59     bookmarkinfodialog.h \\r
60     widgets/dyalog.h \\r
61     chaptersdialog.h \\r
62     widgets/fullscreenwindow.h \\r
63     trace.h \\r
64     widgets/toolbuttonbox.h \\r
65     model/bookfinder.h \\r
66     widgets/listwindow.h \\r
67     widgets/progress.h \\r
68     widgets/adopterwindow.h \\r
69     widgets/listview.h \\r
70     model/xmlhandler.h \\r
71     platform.h \\r
72     model/bookdb.h \\r
73     searchdialog.h \\r
74     search.h\r
75 \r
76 RESOURCES += \\r
77     dorian.qrc\r
78 \r
79 OTHER_FILES += \\r
80     TODO.txt \\r
81     pkg/acknowledgements.txt \\r
82     pkg/maemo/postinst \\r
83     pkg/maemo/dorian.desktop \\r
84     pkg/maemo/control \\r
85     pkg/maemo/changelog \\r
86     pkg/maemo/build.sh \\r
87     styles/night.css \\r
88     pkg/changelog \\r
89     pkg/maemo/build-scratchbox.sh \\r
90     styles/sand.css \\r
91     styles/default.css \\r
92     pkg/version.txt \\r
93     styles/sand.js \\r
94     styles/night.js \\r
95     styles/default.js \\r
96     styles/day.js \\r
97     www/index.html \\r
98     pkg/maemo/autobuild.sh \\r
99     pkg/maemo/autobuild-scratchbox.sh \\r
100     LICENSE.txt \\r
101     pkg/symbian/book.svg\r
102 \r
103 DEFINES += \\r
104     USE_FILE32API\r
105 \r
106 !symbian {\r
107     DEFINES += DORIAN_TEST_MODEL\r
108     include(model/modeltest/modeltest.pri)\r
109 }\r
110 \r
111 unix {\r
112     symbian {\r
113     } else {\r
114         LIBS += -lz\r
115     }\r
116 }\r
117 win32 {\r
118     DEFINES += ZLIB_WINAPI\r
119     INCLUDEPATH += $$PWD/model/zlib\r
120     LIBS += pkg/win32/zlibstat.lib\r
121 }\r
122 symbian {\r
123     ICON = $$PWD/pkg/symbian/book.svgt\r
124     TARGET.UID3 = 0xEA633557\r
125     # FIXME: TARGET.CAPABILITY = ...\r
126     # FIXME: Include path to OpenC ZLIB?\r
127     INCLUDEPATH += c:/Qt/4.7.0/src/3rdparty/zlib\r
128     SOURCES += widgets/flickable.cpp\r
129     HEADERS += widgets/flickable.h\r
130 }\r
131 maemo5 {\r
132     QT += maemo5 dbus\r
133     isEmpty(PREFIX) {\r
134         PREFIX = /usr\r
135     }\r
136     BINDIR = $$PREFIX/bin\r
137     DATADIR =$$PREFIX/share\r
138     DEFINES += DATADIR=\\\"$$DATADIR\\\" PKGDATADIR=\\\"$$PKGDATADIR\\\"\r
139 \r
140     # For "make install"\r
141 \r
142     INSTALLS += target desktop icon48 iconscalable\r
143 \r
144     target.path = $$BINDIR\r
145 \r
146     desktop.path = $$DATADIR/applications/hildon\r
147     desktop.files += pkg/maemo/dorian.desktop\r
148 \r
149     icon48.path = $$DATADIR/icons/hicolor/48x48/hildon\r
150     icon48.files += pkg/maemo/icon-48/dorian.png\r
151 \r
152     iconscalable.path = $$DATADIR/icons/hicolor/scalable/hildon\r
153     iconscalable.files += pkg/maemo/icon-scalable/dorian.png\r
154 }\r