Make full screen switching more robust. Add in/out traces.
[dorian] / dorian.pro
1 QT += webkit xml
2
3 SOURCES += \
4     main.cpp \
5     mainwindow.cpp \
6     bookview.cpp \
7     unzip/unzip.c \
8     unzip/ioapi.c \
9     extractzip.cpp \
10     library.cpp \
11     book.cpp \
12     librarydialog.cpp \
13     devtools.cpp \
14     infodialog.cpp \
15     translucentbutton.cpp \
16     settingswindow.cpp \
17     settings.cpp \
18     bookmarksdialog.cpp \
19     sortedlibrary.cpp \
20     bookmarkinfodialog.cpp \
21     dialog.cpp \
22     chaptersdialog.cpp \
23     fullscreenwindow.cpp \
24     trace.cpp
25
26 HEADERS += \
27     mainwindow.h \
28     bookview.h \
29     selectionsuppressor.h \
30     opshandler.h \
31     unzip/unzip.h \
32     unzip/ioapi.h \
33     extractzip.h \
34     library.h \
35     book.h \
36     librarydialog.h \
37     devtools.h \
38     infodialog.h \
39     translucentbutton.h \
40     settingswindow.h \
41     settings.h \
42     bookmarksdialog.h \
43     xmlerrorhandler.h \
44     containerhandler.h \
45     sortedlibrary.h \
46     ncxhandler.h \
47     bookmarkinfodialog.h \
48     dialog.h \
49     chaptersdialog.h \
50     fullscreenwindow.h \
51     trace.h
52
53 RESOURCES += \
54     dorian.qrc
55
56 OTHER_FILES += \
57     TODO.txt \
58     pkg/acknowledgements.txt \
59     pkg/maemo/postinst \
60     pkg/maemo/dorian.desktop \
61     pkg/maemo/control \
62     pkg/maemo/changelog \
63     pkg/maemo/build.sh \
64     styles/night.css \
65     pkg/changelog \
66     pkg/maemo/build-scratchbox.sh \
67     styles/sand.css \
68     styles/default.css \
69     pkg/version.txt \
70     styles/sand.js \
71     styles/night.js \
72     styles/default.js \
73     styles/day.js \
74     www/index.html
75
76 DEFINES += \
77     USE_FILE32API \
78     DORIAN_TEST_MODEL
79
80 include(modeltest/modeltest.pri)
81
82 unix {
83     LIBS += -lz
84 }
85 windows {
86     # FIXME: Build zlib, too
87 }
88 maemo5 {
89     QT += maemo5
90     isEmpty(PREFIX) {
91         PREFIX = /usr
92     }
93     BINDIR = $$PREFIX/bin
94     DATADIR =$$PREFIX/share
95     DEFINES += DATADIR=\\\"$$DATADIR\\\" PKGDATADIR=\\\"$$PKGDATADIR\\\"
96
97     # For "make install"
98
99     INSTALLS += target desktop icon48 iconscalable
100
101     target.path = $$BINDIR
102
103     desktop.path = $$DATADIR/applications/hildon
104     desktop.files += pkg/maemo/dorian.desktop
105
106     icon48.path = $$DATADIR/icons/hicolor/48x48/hildon
107     icon48.files += pkg/maemo/icon-48/dorian.png
108
109     iconscalable.path = $$DATADIR/icons/hicolor/scalable/hildon
110     iconscalable.files += pkg/maemo/icon-scalable/dorian.png
111 }