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