1include(../../../shared/fontpanel/fontpanel.pri)
2TEMPLATE = app
3LANGUAGE = C++
4TARGET = assistant
5contains(QT_CONFIG, webkit):QT += webkit
6CONFIG += qt \
7    warn_on \
8    help
9build_all:!build_pass {
10    CONFIG -= build_all
11    CONFIG += release
12}
13QT += network
14PROJECTNAME = Assistant
15DESTDIR = ../../../../bin
16target.path = $$[QT_INSTALL_BINS]
17INSTALLS += target
18DEPENDPATH += ../shared
19DEPENDPATH += .
20INCLUDEPATH += .
21
22# ## Work around a qmake issue when statically linking to
23# ## not-yet-installed plugins
24QMAKE_LIBDIR += $$QT_BUILD_TREE/plugins/sqldrivers
25HEADERS += aboutdialog.h \
26    bookmarkdialog.h \
27    bookmarkfiltermodel.h \
28    bookmarkitem.h \
29    bookmarkmanager.h \
30    bookmarkmanagerwidget.h \
31    bookmarkmodel.h \
32    centralwidget.h \
33    cmdlineparser.h \
34    contentwindow.h \
35    findwidget.h \
36    filternamedialog.h \
37    helpenginewrapper.h \
38    helpviewer.h \
39    helpviewer_p.h \
40    indexwindow.h \
41    installdialog.h \
42    mainwindow.h \
43    preferencesdialog.h \
44    qtdocinstaller.h \
45    remotecontrol.h \
46    searchwidget.h \
47    topicchooser.h \
48    tracer.h \
49    xbelsupport.h \
50    ../shared/collectionconfiguration.h \
51    openpagesmodel.h \
52    globalactions.h \
53    openpageswidget.h \
54    openpagesmanager.h \
55    openpagesswitcher.h
56win32:HEADERS += remotecontrol_win.h
57
58SOURCES += aboutdialog.cpp \
59    bookmarkdialog.cpp \
60    bookmarkfiltermodel.cpp \
61    bookmarkitem.cpp \
62    bookmarkmanager.cpp \
63    bookmarkmanagerwidget.cpp \
64    bookmarkmodel.cpp \
65    centralwidget.cpp \
66    cmdlineparser.cpp \
67    contentwindow.cpp \
68    findwidget.cpp \
69    filternamedialog.cpp \
70    helpenginewrapper.cpp \
71    helpviewer.cpp \
72    indexwindow.cpp \
73    installdialog.cpp \
74    main.cpp \
75    mainwindow.cpp \
76    preferencesdialog.cpp \
77    qtdocinstaller.cpp \
78    remotecontrol.cpp \
79    searchwidget.cpp \
80    topicchooser.cpp \
81    xbelsupport.cpp \
82    ../shared/collectionconfiguration.cpp \
83    openpagesmodel.cpp \
84    globalactions.cpp \
85    openpageswidget.cpp \
86    openpagesmanager.cpp \
87    openpagesswitcher.cpp
88contains(QT_CONFIG, webkit) {
89    SOURCES += helpviewer_qwv.cpp
90} else {
91    SOURCES += helpviewer_qtb.cpp
92}
93
94FORMS += bookmarkdialog.ui \
95    bookmarkmanagerwidget.ui \
96    bookmarkwidget.ui \
97    filternamedialog.ui \
98    installdialog.ui \
99    preferencesdialog.ui \
100    topicchooser.ui
101
102RESOURCES += assistant.qrc \
103    assistant_images.qrc
104
105win32 {
106    !wince*:LIBS += -lshell32
107    RC_FILE = assistant.rc
108}
109
110mac {
111    ICON = assistant.icns
112    TARGET = Assistant
113    QMAKE_INFO_PLIST = Info_mac.plist
114}
115
116contains(CONFIG, static): {
117    SQLPLUGINS = $$unique(sql-plugins)
118    contains(SQLPLUGINS, sqlite): {
119        QTPLUGIN += qsqlite
120        DEFINES += USE_STATIC_SQLITE_PLUGIN
121    }
122}
123