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