Added settings widget in xdxf plugin, added dictionaries management(adding, removing...
[mdictionary] / trunk / src / plugins / xdxf / src / src.pro
1 #-------------------------------------------------
2 #
3 # Project created by QtCreator 2010-08-03T09:33:52
4 #
5 #-------------------------------------------------
6
7 QT       += core xml gui
8
9
10 TARGET = XdxfPlugin
11 TEMPLATE = lib
12
13 MDICT_PLUGINSDIR = $$[MDICT_PLUGINSDIR]
14
15 isEmpty(MDICT_PLUGINSDIR) {
16   MDICT_PLUGINSDIR = .
17 }
18
19 MDICT_APPNAME = $$[MDICT_APPNAME]
20
21 isEmpty(MDICT_APPNAME) {
22   MDICT_APPNAME = mdictionary
23 }
24
25
26 DESTDIR = $${MDICT_PLUGINSDIR}/$${MDICT_APPNAME}
27
28
29
30 SOURCES +=  \
31     xdxfplugin.cpp \
32     TranslationXdxf.cpp \
33     XdxfLoadDialog.cpp \
34     XdxfDictDialog.cpp \
35     XdxfSettingsDialog.cpp
36
37
38 HEADERS += \
39     xdxfplugin.h \
40     TranslationXdxf.h \
41     XdxfLoadDialog.h \
42     ../../../includes/DictDialog.h \
43     XdxfDictDialog.h \
44     ../../../includes/translation.h \
45     ../../../includes/settings.h \
46     ../../../includes/CommonDictInterface.h \
47     XdxfSettingsDialog.h
48
49
50     
51 unix {
52   #VARIABLES
53   isEmpty(PREFIX) {
54     PREFIX = /usr
55   }
56   
57   BINDIR = $$PREFIX/bin
58   LIBDIR = $$PREFIX/lib/$${MDICT_APPNAME}
59   DATADIR =$$PREFIX/share
60
61   DEFINES += DATADIR=\\\"$$DATADIR\\\" PKGDATADIR=\\\"$$PKGDATADIR\\\"
62
63   #MAKE INSTALL
64
65   INSTALLS += target dicts
66
67   target.path = $$LIBDIR
68
69   dicts.path = $$LIBDIR
70   dicts.files += ../../../../../data/dicts/dict.xdxf
71 }