first version of list element in qml
[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
44 HEADERS += gui/MainWindow.h \
45     backbone/ConfigGenerator.h \
46     gui/AboutWidget.h \
47     gui/SearchBarWidget.h \
48     gui/WordListWidget.h \
49     gui/TranslationWidget.h \
50     backbone/backbone.h \
51     ../include/translation.h \
52     ../include/settings.h \
53     ../include/CommonDictInterface.h \
54     gui/MenuWidget.h \
55     gui/MenuTabWidget.h \
56     gui/DictManagerWidget.h \
57     gui/DictTypeSelectDialog.h \
58     ../include/History.h \
59     gui/HistoryListDialog.h \
60     ../include/GUIInterface.h \
61     gui/WordListProxyStyle.h \
62     backbone/Bookmarks.h \
63     backbone/BookmarkTranslations.h \
64     gui/SettingsWidget.h \
65     gui/BookmarksWidget.h \
66     gui/WelcomeScreenWidget.h \
67     ../include/Notify.h \
68     gui/TranslationView.h \
69     ../include/AccentsNormalizer.h \
70     ../include/DictDialog.h \
71     gui/DBusAdapter.h \
72     gui/NotifyManager.h \
73     gui/SpinBox.h \
74     gui/DictTypeModel.h
75
76 RESOURCES += ../../data/gui.qrc
77
78 TRANSLATIONS += pl_PL.ts \
79                 en_US.ts
80
81 OTHER_FILES += \
82     qml/WelcomeScreenWidget.qml \
83     qml/Button.qml \
84     qml/AboutWidget.qml \
85     qml/SearchBarWidget.qml \
86     qml/IconButton.qml \
87     qml/MyTextLineEdit.qml \
88     qml/DictListDelegate.qml \
89     qml/DictTypeListDelegate.qml \
90     qml/WordListDelegate.qml \
91     qml/ElementsListView.qml \
92     qml/DictTypeListView.qml \
93     qml/DictTypeSelectDialog.qml
94
95 target.path = $$BIN_DIR
96 INSTALLS += target
97
98 unix { 
99         #icons and misc
100         maemo5 {
101                 desktop.path = $$SHARE_DIR/applications/hildon
102                 icon64.path = $$SHARE_DIR/icons/hicolor/64x64/hildon
103         }    
104         !maemo5 {
105                 desktop.path = $$SHARE_DIR/applications
106                 icon64.path = $$SHARE_DIR/icons
107         }
108
109         desktop.files += ../../data/other/$${TARGET}.desktop
110         icon64.files += ../../data/icons/64x64/$${TARGET}.png
111
112     shared.path = $$DATA_DIR
113     shared.files += ../../data/icons/16x16/staron.png
114     shared.files += ../../data/xsl/mask.png
115
116     #css
117     meego {
118         css.path = $$DATA_DIR/css
119         css.files += ../../data/css_meego/style.css
120     }
121     else:maemo5 {
122         css.path = $$DATA_DIR/css
123         css.files += ../../data/css_maemo/style.css
124     }
125     else {
126         css.path = $$DATA_DIR/css
127         css.files += ../../data/css_desktop/style.css
128     }
129
130     #css images
131     meego {
132         css_images.path = $$DATA_DIR/css/images
133         css_images.files += ../../data/css_meego/images/header-background.png
134         css_images.files += ../../data/css_meego/images/header-border.png
135         css_images.files += ../../data/css_meego/images/shadow-grey-bg.png
136         css_images.files += ../../data/css_meego/images/shadow-white-bg.png
137         css_images.files += ../../data/css_meego/images/tab-background.png
138         css_images.files += ../../data/css_meego/images/key-background.png
139     css_images.files += ../../data/css_meego/images/shadow-transparent-bg. png
140         css_images.files += ../../data/css_meego/images/splash2.png
141     }
142     else:maemo5 {
143         css.path = $$DATA_DIR/css
144         css.files += ../../data/css_maemo/style.css
145
146         css_images.path = $$DATA_DIR/css/images
147         css_images.files += ../../data/css_maemo/images/header-background.png
148         css_images.files += ../../data/css_maemo/images/header-border.png
149         css_images.files += ../../data/css_maemo/images/shadow-grey-bg.png
150         css_images.files += ../../data/css_maemo/images/shadow-white-bg.png
151         css_images.files += ../../data/css_maemo/images/tab-background.png
152         css_images.files += ../../data/css_maemo/images/key-background.png
153     }
154     else {
155         css.path = $$DATA_DIR/css
156         css.files += ../../data/css_desktop/style.css
157
158         css_images.path = $$DATA_DIR/css/images
159         css_images.files += ../../data/css_desktop/images/header-background.png
160         css_images.files += ../../data/css_desktop/images/header-border.png
161         css_images.files += ../../data/css_desktop/images/shadow-grey-bg.png
162         css_images.files += ../../data/css_desktop/images/shadow-white-bg.png
163         css_images.files += ../../data/css_desktop/images/tab-background.png
164         css_images.files += ../../data/css_desktop/images/key-background.png
165     }
166
167     #services
168     service.path = $$SHARE_DIR/dbus-1/services
169     service.files += ../../data/other/com.comarch.mdictionary.service
170
171     #qmls (stub)
172     meego {
173         qmls.path = $$DATA_DIR/qml
174         qmls.files += ./qml/WelcomeScreenWidget.qml
175     }
176     else:maemo5 {
177         qmls.path = $$DATA_DIR/qml
178         qmls.files += ./qml/WelcomeScreenWidget.qml
179     }
180     else {
181         qmls.path = $$DATA_DIR/qml
182         qmls.files += ./qml/WelcomeScreenWidget.qml
183         qmls.files += ./qml/Button.qml 
184         qmls.files += ./qml/AboutWidget.qml
185         qmls.files += ./qml/SearchBarWidget.qml
186         qmls.files += ./qml/IconButton.qml
187         qmls.files += ./qml/MyTextLineEdit.qml
188         qmls.files += ./qml/DictListDelegate.qml
189         qmls.files += ./qml/DictTypeListDelegate.qml
190         qmls.files += ./qml/WordListDelegate.qml
191         qmls.files += ./qml/ElementsListView.qml
192         qmls.files += ./qml/DictTypeListView.qml
193         qmls.files += ./qml/DictTypeSelectDialog.qml
194     }
195         
196     INSTALLS += desktop icon64 shared service css css_images qmls
197 }
198
199
200 check.commands = echo 'No check here'
201 QMAKE_EXTRA_TARGETS += check