3cc846706059890f3d214dcd21f1c0f843755a4a
[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
14 maemo5:QT += maemo5
15
16 message($$CONFIG)
17
18 SOURCES += gui/main.cpp \
19     backbone/ConfigGenerator.cpp \
20     gui/MainWindow.cpp \
21     gui/SearchBarWidget.cpp \
22     gui/WordListWidget.cpp \
23     gui/TranslationWidget.cpp \
24     backbone/backbone.cpp \
25     gui/MenuWidget.cpp \
26     gui/MenuTabWidget.cpp \
27     gui/DictManagerWidget.cpp \
28     gui/DictTypeSelectDialog.cpp \
29     backbone/History.cpp \
30     gui/HistoryListDialog.cpp \
31     gui/WordListProxyStyle.cpp \
32     backbone/Bookmarks.cpp \
33     gui/SettingsWidget.cpp \
34     gui/BookmarksWidget.cpp \
35     gui/WelcomeScreenWidget.cpp \
36     gui/AboutWidget.cpp \
37     gui/TranslationView.cpp \
38     gui/DBusAdapter.cpp \
39     gui/NotifyManager.cpp \
40     gui/SpinBox.cpp
41
42 HEADERS += gui/MainWindow.h \
43     backbone/ConfigGenerator.h \
44     gui/AboutWidget.h \
45     gui/SearchBarWidget.h \
46     gui/WordListWidget.h \
47     gui/TranslationWidget.h \
48     backbone/backbone.h \
49     ../include/translation.h \
50     ../include/settings.h \
51     ../include/CommonDictInterface.h \
52     gui/MenuWidget.h \
53     gui/MenuTabWidget.h \
54     gui/DictManagerWidget.h \
55     gui/DictTypeSelectDialog.h \
56     ../include/History.h \
57     gui/HistoryListDialog.h \
58     ../include/GUIInterface.h \
59     gui/WordListProxyStyle.h \
60     backbone/Bookmarks.h \
61     backbone/BookmarkTranslations.h \
62     gui/SettingsWidget.h \
63     gui/BookmarksWidget.h \
64     gui/WelcomeScreenWidget.h \
65     ../include/Notify.h \
66     gui/TranslationView.h \
67     ../include/AccentsNormalizer.h \
68     ../include/DictDialog.h \
69     gui/DBusAdapter.h \
70     gui/NotifyManager.h \
71     gui/SpinBox.h
72
73 RESOURCES += ../../data/gui.qrc
74
75 TRANSLATIONS += pl_PL.ts \
76                 en_US.ts
77
78 target.path = $$BIN_DIR
79 INSTALLS += target
80
81 unix { 
82         maemo5 {
83                 desktop.path = $$SHARE_DIR/applications/hildon
84                 icon64.path = $$SHARE_DIR/icons/hicolor/64x64/hildon
85         }    
86         !maemo5 {
87                 desktop.path = $$SHARE_DIR/applications
88                 icon64.path = $$SHARE_DIR/icons
89         }
90
91         desktop.files += ../../data/other/$${TARGET}.desktop
92         icon64.files += ../../data/icons/64x64/$${TARGET}.png
93
94     shared.path = $$DATA_DIR
95     shared.files += ../../data/icons/16x16/staron.png
96     shared.files += ../../data/xsl/mask.png
97
98     meego {
99         css.path = $$DATA_DIR/css
100         css.files += ../../data/css_meego/style.css
101     }
102     else:maemo5 {
103         css.path = $$DATA_DIR/css
104         css.files += ../../data/css_maemo/style.css
105     }
106     else {
107         css.path = $$DATA_DIR/css
108         css.files += ../../data/css_desktop/style.css
109     }
110
111     meego {
112         css_images.path = $$DATA_DIR/css/images
113         css_images.files += ../../data/css_meego/images/header-background.png
114         css_images.files += ../../data/css_meego/images/header-border.png
115         css_images.files += ../../data/css_meego/images/shadow-grey-bg.png
116         css_images.files += ../../data/css_meego/images/shadow-white-bg.png
117         css_images.files += ../../data/css_meego/images/tab-background.png
118         css_images.files += ../../data/css_meego/images/key-background.png
119     css_images.files += ../../data/css_meego/images/shadow-transparent-bg. png
120         css_images.files += ../../data/css_meego/images/splash2.png
121     }
122     else:maemo5 {
123         css.path = $$DATA_DIR/css
124         css.files += ../../data/css_maemo/style.css
125
126         css_images.path = $$DATA_DIR/css/images
127         css_images.files += ../../data/css_maemo/images/header-background.png
128         css_images.files += ../../data/css_maemo/images/header-border.png
129         css_images.files += ../../data/css_maemo/images/shadow-grey-bg.png
130         css_images.files += ../../data/css_maemo/images/shadow-white-bg.png
131         css_images.files += ../../data/css_maemo/images/tab-background.png
132         css_images.files += ../../data/css_maemo/images/key-background.png
133     }
134     else {
135         css.path = $$DATA_DIR/css
136         css.files += ../../data/css_desktop/style.css
137
138         css_images.path = $$DATA_DIR/css/images
139         css_images.files += ../../data/css_desktop/images/header-background.png
140         css_images.files += ../../data/css_desktop/images/header-border.png
141         css_images.files += ../../data/css_desktop/images/shadow-grey-bg.png
142         css_images.files += ../../data/css_desktop/images/shadow-white-bg.png
143         css_images.files += ../../data/css_desktop/images/tab-background.png
144         css_images.files += ../../data/css_desktop/images/key-background.png
145     }
146
147     service.path = $$SHARE_DIR/dbus-1/services
148     service.files += ../../data/other/com.comarch.mdictionary.service
149         
150     INSTALLS += desktop icon64 shared service css css_images
151 }
152
153
154 check.commands = echo 'No check here'
155 QMAKE_EXTRA_TARGETS += check