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