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