929060c43f11a9d0b04a73f1c8a6c76c3d6248f3
[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
33 HEADERS += xdxfplugin.h \
34     TranslationXdxf.h \
35     ../../include/DictDialog.h \
36     XdxfDictDialog.h \
37     ../../include/translation.h \
38     ../../include/settings.h \
39     ../../include/CommonDictInterface.h \
40     XdxfCachingDialog.h \
41     XdxfDialog.h \
42     XdxfDictDownloader.h \
43     XdxfDictSelectDialog.h \
44     XdxfDictDownloadProgressDialog.h \
45     DownloadDict.h \
46     DictsModel.h \
47     DictsProxyModel.h \
48     HttpDownloader.h
49
50 RESOURCES += xdxf.qrc
51
52 TRANSLATIONS += pl_PL.ts \
53                 en_US.ts
54
55 OTHER_FILES += ../../mdictionary/qml/XdxfDialog.qml \
56     ../../mdictionary/qml/XdxfDictDownloader.qml
57
58 unix {
59     dicts.path = $$PLUGINS_DIR
60     dicts.files += ../../../data/dicts/eng-us.xdxf
61     dicts.files += ../../../data/dicts/eng-thai.xdxf
62     plugin-icon.path = $$DATA_DIR
63     plugin-icon.files += xdxf.png
64
65     meego {
66         qmls.path = $$DATA_DIR/qml
67         qmls.files += ../../mdictionary/qml/XdxfDialog.qml
68     }
69     else:maemo5 {
70         qmls.path = $$DATA_DIR/qml
71         qmls.files += ../../mdictionary/qml/XdxfDialog.qml
72     }
73     else {
74         qmls.path = $$DATA_DIR/qml
75         qmls.files += ../../mdictionary/qml/XdxfDialog.qml
76         qmls.files += ../../mdictionary/qml/XdxfDictDownloader.qml
77     }
78
79     INSTALLS += dicts \
80         plugin-icon\
81         qmls
82 }
83 check.commands = echo \
84                 'No check here'
85 QMAKE_EXTRA_TARGETS += check