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