Added default configuration file installing
[mdictionary] / trunk / src / base / base.pro
1 #-------------------------------------------------
2 #
3 # Project created by QtCreator 2010-08-03T08:54:27
4 #
5 #-------------------------------------------------
6
7 QT       += core gui
8
9 maemo5 {
10     QT += maemo5
11 }
12
13 TARGET = mdictionary
14 TEMPLATE = app
15
16 MDICT_BINDIR = $$[MDICT_BINDIR]
17
18 isEmpty(MDICT_BINDIR) {
19   MDICT_BINDIR = .
20 }
21
22 DESTDIR = $${MDICT_BINDIR}
23
24 SOURCES += gui/main.cpp\
25         gui/MainWindow.cpp \
26     gui/SearchBarWidget.cpp \
27     gui/WordListWidget.cpp \
28     gui/TranslationWidget.cpp \
29     backbone/backbone.cpp \
30     gui/MenuWidget.cpp \
31     gui/MenuTabWidget.cpp \
32     gui/DictManagerWidget.cpp \
33     gui/DictTypeSelectDialog.cpp
34
35 HEADERS  += gui/MainWindow.h \
36     gui/SearchBarWidget.h \
37     gui/WordListWidget.h \
38     gui/TranslationWidget.h \
39     backbone/backbone.h \
40     ../includes/translation.h \
41     ../includes/settings.h \
42     ../includes/CommonDictInterface.h \
43     gui/MenuWidget.h \
44     gui/MenuTabWidget.h \
45     gui/DictManagerWidget.h \
46     gui/DictTypeSelectDialog.h \
47     gui/TranslationWidgetAutoResizer.h
48
49 FORMS    += gui/MainWindow.ui
50
51 unix {
52   #VARIABLES
53   isEmpty(PREFIX) {
54     PREFIX = /usr
55   }
56   BINDIR = $$PREFIX/bin
57   DATADIR =$$PREFIX/share
58
59   DEFINES += DATADIR=\\\"$$DATADIR\\\" PKGDATADIR=\\\"$$PKGDATADIR\\\"
60
61   #MAKE INSTALL
62
63   INSTALLS += target desktop icon64 configs
64
65   configs.path = ~/.mdictionary
66   configs.files += ../../../data/mdictionary.defaults
67
68   target.path =$$BINDIR
69
70   desktop.path = $$DATADIR/applications/hildon
71   desktop.files += ../../../data/other/$${TARGET}.desktop
72
73   icon64.path = $$DATADIR/icons/hicolor/64x64/hildon
74   icon64.files += ../../../data/icons/64x64/$${TARGET}.png
75 }