Merge branch 'master' of ssh://drop.maemo.org/git/mdictionary
[mdictionary] / trunk / src / base / base.pro
1 # -------------------------------------------------
2 # Project created by QtCreator 2010-08-03T08:54:27
3 #-------------------------------------------------
4
5 QT += core \
6     gui \
7     sql \
8     xml \
9     xmlpatterns
10
11 maemo5:QT += maemo5
12
13
14 TARGET = mdictionary
15 TEMPLATE = app
16 MDICT_BINDIR = $$[MDICT_BINDIR]
17 isEmpty(MDICT_BINDIR):MDICT_BINDIR = .
18 DESTDIR = $${MDICT_BINDIR}
19 SOURCES += gui/main.cpp \
20     gui/MainWindow.cpp \
21     gui/SearchBarWidget.cpp \
22     gui/WordListWidget.cpp \
23     gui/TranslationWidget.cpp \
24     backbone/backbone.cpp \
25     gui/MenuWidget.cpp \
26     gui/MenuTabWidget.cpp \
27     gui/DictManagerWidget.cpp \
28     gui/DictTypeSelectDialog.cpp \
29     backbone/History.cpp \
30     gui/HistoryListDialog.cpp \
31     gui/WordListProxyStyle.cpp \
32     backbone/Bookmarks.cpp \
33     gui/SettingsWidget.cpp \
34     gui/BookmarksWidget.cpp \
35     gui/WelcomeScreenWidget.cpp \
36     gui/AboutWidget.cpp \
37     gui/TranslationTextEdit.cpp
38
39 HEADERS += gui/MainWindow.h \
40
41     gui/AboutWidget.h \
42     gui/SearchBarWidget.h \
43     gui/WordListWidget.h \
44     gui/TranslationWidget.h \
45     backbone/backbone.h \
46     ../includes/translation.h \
47     ../includes/settings.h \
48     ../includes/CommonDictInterface.h \
49     gui/MenuWidget.h \
50     gui/MenuTabWidget.h \
51     gui/DictManagerWidget.h \
52     gui/DictTypeSelectDialog.h \
53     gui/TranslationWidgetAutoResizer.h \
54     ../includes/History.h \
55     gui/HistoryListDialog.h \
56     ../includes/GUIInterface.h \
57     gui/WordListProxyStyle.h \
58     backbone/Bookmarks.h \
59     backbone/BookmarkTranslations.h \
60     gui/SettingsWidget.h \
61     gui/BookmarksWidget.h \
62     gui/WelcomeScreenWidget.h \
63     ../includes/Notify.h \
64     gui/TranslationTextEdit.h
65
66 FORMS += gui/MainWindow.ui
67
68 RESOURCES += gui/gui.qrc
69 unix { 
70     # VARIABLES
71     isEmpty(PREFIX):PREFIX = /usr
72     BINDIR = $$PREFIX/bin
73     DATADIR = $$PREFIX/share
74     DEFINES += DATADIR=\\\"$$DATADIR\\\" \
75         PKGDATADIR=\\\"$$PKGDATADIR\\\"
76     
77     # MAKE INSTALL
78     INSTALLS += target \
79         desktop \
80         icon64 \
81         configs
82     configs.path = ~/.mdictionary
83     configs.files += ../../../data/mdictionary.defaults
84     target.path = $$BINDIR
85     maemo5 { 
86         desktop.path = $$DATADIR/applications/hildon
87         icon64.path = $$DATADIR/icons/hicolor/64x64/hildon
88     }
89     !maemo5 { 
90         desktop.path = $$DATADIR/applications
91         icon64.path = $$DATADIR/icons
92     }
93     desktop.files += ../../../data/other/$${TARGET}.desktop
94     icon64.files += ../../../data/icons/64x64/$${TARGET}.png
95 }
96
97 RESOURCES += xslt2.qrc