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