67790e3898fc715b279b7b118661b6330acae3b6
[mdictionary] / trunk / src / plugins / google / src / src.pro
1 #-------------------------------------------------
2 #
3 # Project created by QtCreator 2010-08-03T09:33:52
4 #
5 #-------------------------------------------------
6
7 QT       += core xml gui network
8
9
10 TARGET = GooglePlugin
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     GooglePlugin.cpp \
32     TranslationGoogle.cpp \
33     GoogleDictDialog.cpp
34
35 HEADERS += \
36     GooglePlugin.h \
37     ../../../includes/DictDialog.h \
38     ../../../includes/translation.h \
39     ../../../includes/settings.h \
40     ../../../includes/CommonDictInterface.h \
41     TranslationGoogle.h \
42     GoogleDictDialog.h
43
44
45
46     
47 unix {
48   #VARIABLES
49   isEmpty(PREFIX) {
50     PREFIX = /usr
51   }
52   
53   BINDIR = $$PREFIX/bin
54   LIBDIR = $$PREFIX/lib/$${MDICT_APPNAME}
55   DATADIR =$$PREFIX/share
56
57   DEFINES += DATADIR=\\\"$$DATADIR\\\" PKGDATADIR=\\\"$$PKGDATADIR\\\"
58
59   #MAKE INSTALL
60
61   INSTALLS += target dicts
62
63   target.path = $$LIBDIR
64
65   dicts.path = $$LIBDIR
66
67 }