add qml-elements
[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 target.path = $$BIN_DIR
80 INSTALLS += target
81
82 unix { 
83         maemo5 {
84                 desktop.path = $$SHARE_DIR/applications/hildon
85                 icon64.path = $$SHARE_DIR/icons/hicolor/64x64/hildon
86         }    
87         !maemo5 {
88                 desktop.path = $$SHARE_DIR/applications
89                 icon64.path = $$SHARE_DIR/icons
90         }
91
92         desktop.files += ../../data/other/$${TARGET}.desktop
93         icon64.files += ../../data/icons/64x64/$${TARGET}.png
94
95     shared.path = $$DATA_DIR
96     shared.files += ../../data/icons/16x16/staron.png
97     shared.files += ../../data/xsl/mask.png
98
99     meego {
100         css.path = $$DATA_DIR/css
101         css.files += ../../data/css_meego/style.css
102     }
103     else:maemo5 {
104         css.path = $$DATA_DIR/css
105         css.files += ../../data/css_maemo/style.css
106     }
107     else {
108         css.path = $$DATA_DIR/css
109         css.files += ../../data/css_desktop/style.css
110     }
111
112     meego {
113         css_images.path = $$DATA_DIR/css/images
114         css_images.files += ../../data/css_meego/images/header-background.png
115         css_images.files += ../../data/css_meego/images/header-border.png
116         css_images.files += ../../data/css_meego/images/shadow-grey-bg.png
117         css_images.files += ../../data/css_meego/images/shadow-white-bg.png
118         css_images.files += ../../data/css_meego/images/tab-background.png
119         css_images.files += ../../data/css_meego/images/key-background.png
120     css_images.files += ../../data/css_meego/images/shadow-transparent-bg. png
121         css_images.files += ../../data/css_meego/images/splash2.png
122     }
123     else:maemo5 {
124         css.path = $$DATA_DIR/css
125         css.files += ../../data/css_maemo/style.css
126
127         css_images.path = $$DATA_DIR/css/images
128         css_images.files += ../../data/css_maemo/images/header-background.png
129         css_images.files += ../../data/css_maemo/images/header-border.png
130         css_images.files += ../../data/css_maemo/images/shadow-grey-bg.png
131         css_images.files += ../../data/css_maemo/images/shadow-white-bg.png
132         css_images.files += ../../data/css_maemo/images/tab-background.png
133         css_images.files += ../../data/css_maemo/images/key-background.png
134     }
135     else {
136         css.path = $$DATA_DIR/css
137         css.files += ../../data/css_desktop/style.css
138
139         css_images.path = $$DATA_DIR/css/images
140         css_images.files += ../../data/css_desktop/images/header-background.png
141         css_images.files += ../../data/css_desktop/images/header-border.png
142         css_images.files += ../../data/css_desktop/images/shadow-grey-bg.png
143         css_images.files += ../../data/css_desktop/images/shadow-white-bg.png
144         css_images.files += ../../data/css_desktop/images/tab-background.png
145         css_images.files += ../../data/css_desktop/images/key-background.png
146     }
147
148     service.path = $$SHARE_DIR/dbus-1/services
149     service.files += ../../data/other/com.comarch.mdictionary.service
150         
151     INSTALLS += desktop icon64 shared service css css_images
152 }
153
154
155 check.commands = echo 'No check here'
156 QMAKE_EXTRA_TARGETS += check
157
158 OTHER_FILES += \
159     qml/Button.qml \
160     qml/AboutWidget.qml \
161     qml/SearchBarWidget.qml \
162     qml/IconButton.qml \
163     qml/MyTextLineEdit.qml