d01fcc4a2c5f3c738b8a8ae551d44461d98f8448
[mdictionary] / src / mdictionary / mdictionary.pro
1 TARGET = mdictionary
2 TEMPLATE = app
3
4 include(../../mdictionary.pri)
5
6 QT = core \
7     gui \
8     xml \
9     xmlpatterns \
10     sql \
11     dbus \
12     webkit \
13     declarative
14
15 maemo5:QT += maemo5
16
17 message($$CONFIG)
18
19 SOURCES += gui/main.cpp \
20     backbone/ConfigGenerator.cpp \
21     gui/MainWindow.cpp \
22     gui/SearchBarWidget.cpp \
23     gui/WordListWidget.cpp \
24     gui/TranslationWidget.cpp \
25     backbone/backbone.cpp \
26     gui/MenuWidget.cpp \
27     gui/MenuTabWidget.cpp \
28     gui/DictManagerWidget.cpp \
29     gui/DictTypeSelectDialog.cpp \
30     backbone/History.cpp \
31     gui/HistoryListDialog.cpp \
32     gui/WordListProxyStyle.cpp \
33     backbone/Bookmarks.cpp \
34     gui/SettingsWidget.cpp \
35     gui/BookmarksWidget.cpp \
36     gui/WelcomeScreenWidget.cpp \
37     gui/AboutWidget.cpp \
38     gui/TranslationView.cpp \
39     gui/DBusAdapter.cpp \
40     gui/NotifyManager.cpp \
41     gui/SpinBox.cpp \
42     gui/DictTypeModel.cpp \
43     gui/DictManagerModel.cpp
44
45 HEADERS += gui/MainWindow.h \
46     backbone/ConfigGenerator.h \
47     gui/AboutWidget.h \
48     gui/SearchBarWidget.h \
49     gui/WordListWidget.h \
50     gui/TranslationWidget.h \
51     backbone/backbone.h \
52     ../include/translation.h \
53     ../include/settings.h \
54     ../include/CommonDictInterface.h \
55     gui/MenuWidget.h \
56     gui/MenuTabWidget.h \
57     gui/DictManagerWidget.h \
58     gui/DictTypeSelectDialog.h \
59     ../include/History.h \
60     gui/HistoryListDialog.h \
61     ../include/GUIInterface.h \
62     gui/WordListProxyStyle.h \
63     backbone/Bookmarks.h \
64     backbone/BookmarkTranslations.h \
65     gui/SettingsWidget.h \
66     gui/BookmarksWidget.h \
67     gui/WelcomeScreenWidget.h \
68     ../include/Notify.h \
69     gui/TranslationView.h \
70     ../include/AccentsNormalizer.h \
71     ../include/DictDialog.h \
72     gui/DBusAdapter.h \
73     gui/NotifyManager.h \
74     gui/SpinBox.h \
75     gui/DictTypeModel.h \
76     gui/DictManagerModel.h
77
78 RESOURCES += ../../data/gui.qrc
79
80 TRANSLATIONS += pl_PL.ts \
81                 en_US.ts
82
83 OTHER_FILES += \
84     qml/WelcomeScreenWidget.qml \
85     qml/Button.qml \
86     qml/AboutWidget.qml \
87     qml/SearchBarWidget.qml \
88     qml/IconButton.qml \
89     qml/MyTextLineEdit.qml \
90     qml/ProgressBar.qml \
91     qml/ElementsListView.qml \
92     qml/DictTypeSelectDialog.qml \
93     qml/DictManagerWidget.qml \
94     qml/WordListWidget.qml \
95     qml/TranslationView.qml \
96     qml/FlickableWebView.qml \
97     qml/ScrollBar.qml
98
99 target.path = $$BIN_DIR
100 INSTALLS += target
101
102 unix { 
103         #icons and misc
104         maemo5 {
105                 desktop.path = $$SHARE_DIR/applications/hildon
106                 icon64.path = $$SHARE_DIR/icons/hicolor/64x64/hildon
107         }    
108         !maemo5 {
109                 desktop.path = $$SHARE_DIR/applications
110                 icon64.path = $$SHARE_DIR/icons
111         }
112
113         desktop.files += ../../data/other/$${TARGET}.desktop
114         icon64.files += ../../data/icons/64x64/$${TARGET}.png
115
116     shared.path = $$DATA_DIR
117     shared.files += ../../data/icons/16x16/staron.png
118     shared.files += ../../data/xsl/mask.png
119
120     #css
121     meego {
122         css.path = $$DATA_DIR/css
123         css.files += ../../data/css_meego/style.css
124     }
125     else:maemo5 {
126         css.path = $$DATA_DIR/css
127         css.files += ../../data/css_maemo/style.css
128     }
129     else {
130         css.path = $$DATA_DIR/css
131         css.files += ../../data/css_desktop/style.css
132     }
133
134     #css images
135     meego {
136         css_images.path = $$DATA_DIR/css/images
137         css_images.files += ../../data/css_meego/images/header-background.png
138         css_images.files += ../../data/css_meego/images/header-border.png
139         css_images.files += ../../data/css_meego/images/shadow-grey-bg.png
140         css_images.files += ../../data/css_meego/images/shadow-white-bg.png
141         css_images.files += ../../data/css_meego/images/tab-background.png
142         css_images.files += ../../data/css_meego/images/key-background.png
143         css_images.files += ../../data/css_meego/images/shadow-transparent-bg. png
144         css_images.files += ../../data/css_meego/images/splash2.png
145     }
146     else:maemo5 {
147         css.path = $$DATA_DIR/css
148         css.files += ../../data/css_maemo/style.css
149
150         css_images.path = $$DATA_DIR/css/images
151         css_images.files += ../../data/css_maemo/images/header-background.png
152         css_images.files += ../../data/css_maemo/images/header-border.png
153         css_images.files += ../../data/css_maemo/images/shadow-grey-bg.png
154         css_images.files += ../../data/css_maemo/images/shadow-white-bg.png
155         css_images.files += ../../data/css_maemo/images/tab-background.png
156         css_images.files += ../../data/css_maemo/images/key-background.png
157     }
158     else {
159         css.path = $$DATA_DIR/css
160         css.files += ../../data/css_desktop/style.css
161
162         css_images.path = $$DATA_DIR/css/images
163         css_images.files += ../../data/css_desktop/images/header-background.png
164         css_images.files += ../../data/css_desktop/images/header-border.png
165         css_images.files += ../../data/css_desktop/images/shadow-grey-bg.png
166         css_images.files += ../../data/css_desktop/images/shadow-white-bg.png
167         css_images.files += ../../data/css_desktop/images/tab-background.png
168         css_images.files += ../../data/css_desktop/images/key-background.png
169     }
170
171     #services
172     service.path = $$SHARE_DIR/dbus-1/services
173     service.files += ../../data/other/com.comarch.mdictionary.service
174
175     #qmls (stub)
176     meego {
177         qmls.path = $$DATA_DIR/qml
178         qmls.files += ./qml/WelcomeScreenWidget.qml
179     }
180     else:maemo5 {
181         qmls.path = $$DATA_DIR/qml
182         qmls.files += ./qml/WelcomeScreenWidget.qml
183     }
184     else {
185         qmls.path = $$DATA_DIR/qml
186         qmls.files += ./qml/WelcomeScreenWidget.qml
187         qmls.files += ./qml/Button.qml 
188         qmls.files += ./qml/AboutWidget.qml
189         qmls.files += ./qml/SearchBarWidget.qml
190         qmls.files += ./qml/IconButton.qml
191         qmls.files += ./qml/MyTextLineEdit.qml
192         qmls.files += ./qml/ProgressBar.qml
193         qmls.files += ./qml/ElementsListView.qml
194         qmls.files += ./qml/DictTypeSelectDialog.qml
195         qmls.files += ./qml/DictManagerWidget.qml
196         qmls.files += ./qml/WordListWidget.qml
197         qmls.files += ./qml/TranslationView.qml
198         qmls.files += ./qml/FlickableWebView.qml
199         qmls.files += ./qml/ScrollBar.qml
200     }
201         
202     INSTALLS += desktop icon64 shared service css css_images qmls
203 }
204
205
206 check.commands = echo 'No check here'
207 QMAKE_EXTRA_TARGETS += check