webView
[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     qml/SpinBox.qml
99
100 target.path = $$BIN_DIR
101 INSTALLS += target
102
103 unix { 
104         #icons and misc
105         maemo5 {
106                 desktop.path = $$SHARE_DIR/applications/hildon
107                 icon64.path = $$SHARE_DIR/icons/hicolor/64x64/hildon
108         }    
109         !maemo5 {
110                 desktop.path = $$SHARE_DIR/applications
111                 icon64.path = $$SHARE_DIR/icons
112         }
113
114         desktop.files += ../../data/other/$${TARGET}.desktop
115         icon64.files += ../../data/icons/64x64/$${TARGET}.png
116
117     shared.path = $$DATA_DIR
118     shared.files += ../../data/icons/16x16/staron.png
119     shared.files += ../../data/xsl/mask.png
120
121     #css
122     meego {
123         css.path = $$DATA_DIR/css
124         css.files += ../../data/css_meego/style.css
125     }
126     else:maemo5 {
127         css.path = $$DATA_DIR/css
128         css.files += ../../data/css_maemo/style.css
129     }
130     else {
131         css.path = $$DATA_DIR/css
132         css.files += ../../data/css_desktop/style.css
133     }
134
135     #css images
136     meego {
137         css_images.path = $$DATA_DIR/css/images
138         css_images.files += ../../data/css_meego/images/header-background.png
139         css_images.files += ../../data/css_meego/images/header-border.png
140         css_images.files += ../../data/css_meego/images/shadow-grey-bg.png
141         css_images.files += ../../data/css_meego/images/shadow-white-bg.png
142         css_images.files += ../../data/css_meego/images/tab-background.png
143         css_images.files += ../../data/css_meego/images/key-background.png
144         css_images.files += ../../data/css_meego/images/shadow-transparent-bg. png
145         css_images.files += ../../data/css_meego/images/splash2.png
146     }
147     else:maemo5 {
148         css.path = $$DATA_DIR/css
149         css.files += ../../data/css_maemo/style.css
150
151         css_images.path = $$DATA_DIR/css/images
152         css_images.files += ../../data/css_maemo/images/header-background.png
153         css_images.files += ../../data/css_maemo/images/header-border.png
154         css_images.files += ../../data/css_maemo/images/shadow-grey-bg.png
155         css_images.files += ../../data/css_maemo/images/shadow-white-bg.png
156         css_images.files += ../../data/css_maemo/images/tab-background.png
157         css_images.files += ../../data/css_maemo/images/key-background.png
158     }
159     else {
160         css.path = $$DATA_DIR/css
161         css.files += ../../data/css_desktop/style.css
162
163         css_images.path = $$DATA_DIR/css/images
164         css_images.files += ../../data/css_desktop/images/header-background.png
165         css_images.files += ../../data/css_desktop/images/header-border.png
166         css_images.files += ../../data/css_desktop/images/shadow-grey-bg.png
167         css_images.files += ../../data/css_desktop/images/shadow-white-bg.png
168         css_images.files += ../../data/css_desktop/images/tab-background.png
169         css_images.files += ../../data/css_desktop/images/key-background.png
170     }
171
172     #services
173     service.path = $$SHARE_DIR/dbus-1/services
174     service.files += ../../data/other/com.comarch.mdictionary.service
175
176     #qmls (stub)
177     meego {
178         qmls.path = $$DATA_DIR/qml
179         qmls.files += ./qml/WelcomeScreenWidget.qml
180     }
181     else:maemo5 {
182         qmls.path = $$DATA_DIR/qml
183         qmls.files += ./qml/WelcomeScreenWidget.qml
184     }
185     else {
186         qmls.path = $$DATA_DIR/qml
187         qmls.files += ./qml/WelcomeScreenWidget.qml
188         qmls.files += ./qml/Button.qml 
189         qmls.files += ./qml/AboutWidget.qml
190         qmls.files += ./qml/SearchBarWidget.qml
191         qmls.files += ./qml/IconButton.qml
192         qmls.files += ./qml/MyTextLineEdit.qml
193         qmls.files += ./qml/ProgressBar.qml
194         qmls.files += ./qml/ElementsListView.qml
195         qmls.files += ./qml/DictTypeSelectDialog.qml
196         qmls.files += ./qml/DictManagerWidget.qml
197         qmls.files += ./qml/WordListWidget.qml
198         qmls.files += ./qml/TranslationView.qml
199         qmls.files += ./qml/FlickableWebView.qml
200         qmls.files += ./qml/ScrollBar.qml
201     }
202         
203     INSTALLS += desktop icon64 shared service css css_images qmls
204 }
205
206
207 check.commands = echo 'No check here'
208 QMAKE_EXTRA_TARGETS += check