Merge branch 'gui'
[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 sql
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     XdxfCachingDialog.cpp
37
38
39 HEADERS += \
40     xdxfplugin.h \
41     TranslationXdxf.h \
42     XdxfLoadDialog.h \
43     ../../../includes/DictDialog.h \
44     XdxfDictDialog.h \
45     ../../../includes/translation.h \
46     ../../../includes/settings.h \
47     ../../../includes/CommonDictInterface.h \
48     XdxfSettingsDialog.h \
49     XdxfCachingDialog.h
50
51
52     
53 unix {
54   #VARIABLES
55   isEmpty(PREFIX) {
56     PREFIX = /usr
57   }
58   
59   BINDIR = $$PREFIX/bin
60   LIBDIR = $$PREFIX/lib/$${MDICT_APPNAME}
61   DATADIR =$$PREFIX/share
62
63   DEFINES += DATADIR=\\\"$$DATADIR\\\" PKGDATADIR=\\\"$$PKGDATADIR\\\"
64
65   #MAKE INSTALL
66
67   INSTALLS += target dicts
68
69   target.path = $$LIBDIR
70
71   dicts.path = $$LIBDIR
72   dicts.files += ../../../../../data/dicts/eng-us.xdxf
73   dicts.files += ../../../../../data/dicts/eng-thai.xdxf
74 }
75
76 RESOURCES += \
77     xdxf.qrc