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