03bfb6648c5b21db91680b8fda5fc6c5acda4fdc
[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     backbone/History.cpp \
35     gui/HistoryListDialog.cpp
36
37 HEADERS  += gui/MainWindow.h \
38     gui/SearchBarWidget.h \
39     gui/WordListWidget.h \
40     gui/TranslationWidget.h \
41     backbone/backbone.h \
42     ../includes/translation.h \
43     ../includes/settings.h \
44     ../includes/CommonDictInterface.h \
45     gui/MenuWidget.h \
46     gui/MenuTabWidget.h \
47     gui/DictManagerWidget.h \
48     gui/DictTypeSelectDialog.h \
49     gui/TranslationWidgetAutoResizer.h \
50     ../includes/History.h \
51     gui/HistoryListDialog.h \
52     ../includes/GUIInterface.h
53
54 FORMS    += gui/MainWindow.ui
55
56 unix {
57   #VARIABLES
58   isEmpty(PREFIX) {
59     PREFIX = /usr
60   }
61   BINDIR = $$PREFIX/bin
62   DATADIR =$$PREFIX/share
63
64   DEFINES += DATADIR=\\\"$$DATADIR\\\" PKGDATADIR=\\\"$$PKGDATADIR\\\"
65
66   #MAKE INSTALL
67
68   INSTALLS += target desktop icon64 configs
69
70   configs.path = ~/.mdictionary
71   configs.files += ../../../data/mdictionary.defaults
72
73   target.path =$$BINDIR
74
75 maemo5 {
76   desktop.path = $$DATADIR/applications/hildon
77   icon64.path = $$DATADIR/icons/hicolor/64x64/hildon
78 }
79
80 unix {
81   desktop.path = $$DATADIR/applications
82   icon64.path = $$DATADIR/icons
83 }
84   desktop.files += ../../../data/other/$${TARGET}.desktop
85   icon64.files += ../../../data/icons/64x64/$${TARGET}.png
86 }