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