table view
[mdictionary] / src / plugins / xdxf / xdxf.pro
1 TARGET = xdxf
2
3 include(../plugin.pri)
4
5 QT = core \
6     gui \
7     xml \
8     sql \
9     network\
10     declarative
11
12 maemo5 {
13     LIBS += -lbz2 \
14 }
15
16 !maemo5 {
17     LIBS += -ltar \
18         -lbz2
19 }
20 maemo5:QT += maemo5
21
22 SOURCES += xdxfplugin.cpp \
23     TranslationXdxf.cpp \
24     XdxfDictDialog.cpp \
25     XdxfCachingDialog.cpp \
26     XdxfDialog.cpp \
27     XdxfDictDownloader.cpp \
28     XdxfDictSelectDialog.cpp \
29     XdxfDictDownloadProgressDialog.cpp \
30     DictsModel.cpp \
31     HttpDownloader.cpp \
32     DictsListModel.cpp
33
34 HEADERS += xdxfplugin.h \
35     TranslationXdxf.h \
36     ../../include/DictDialog.h \
37     XdxfDictDialog.h \
38     ../../include/translation.h \
39     ../../include/settings.h \
40     ../../include/CommonDictInterface.h \
41     XdxfCachingDialog.h \
42     XdxfDialog.h \
43     XdxfDictDownloader.h \
44     XdxfDictSelectDialog.h \
45     XdxfDictDownloadProgressDialog.h \
46     DownloadDict.h \
47     DictsModel.h \
48     DictsProxyModel.h \
49     HttpDownloader.h \
50     DictsListModel.h \
51     DictsProxyListModel.h
52
53 RESOURCES += xdxf.qrc
54
55 TRANSLATIONS += pl_PL.ts \
56                 en_US.ts
57
58 OTHER_FILES += ../../mdictionary/qml/XdxfDialog.qml \
59     ../../mdictionary/qml/XdxfDictDownloader.qml \
60     ../../mdictionary/qml/TableWidget.qml \
61     ../../mdictionary/qml/ScrollBar2.qml
62
63 unix {
64     dicts.path = $$PLUGINS_DIR
65     dicts.files += ../../../data/dicts/eng-us.xdxf
66     dicts.files += ../../../data/dicts/eng-thai.xdxf
67     plugin-icon.path = $$DATA_DIR
68     plugin-icon.files += xdxf.png
69
70     meego {
71         qmls.path = $$DATA_DIR/qml
72         qmls.files += ../../mdictionary/qml/XdxfDialog.qml
73     }
74     else:maemo5 {
75         qmls.path = $$DATA_DIR/qml
76         qmls.files += ../../mdictionary/qml/XdxfDialog.qml
77     }
78     else {
79         qmls.path = $$DATA_DIR/qml
80         qmls.files += ../../mdictionary/qml/XdxfDialog.qml
81         qmls.files += ../../mdictionary/qml/XdxfDictDownloader.qml
82         qmls.files += ../../mdictionary/qml/TableWidget.qml
83         qmls.files += ../../mdictionary/qml/ScrollBar2.qml
84
85     }
86
87     INSTALLS += dicts \
88         plugin-icon\
89         qmls
90 }
91 check.commands = echo \
92                 'No check here'
93 QMAKE_EXTRA_TARGETS += check