Home: Use icon from AFM, display a black area with text if icon unloadable
[apps/homescreen.git] / homescreen / homescreen.pro
1 # Copyright (C) 2016, 2017 Mentor Graphics Development (Deutschland) GmbH
2 #
3 # Licensed under the Apache License, Version 2.0 (the "License");
4 # you may not use this file except in compliance with the License.
5 # You may obtain a copy of the License at
6 #
7 #      http://www.apache.org/licenses/LICENSE-2.0
8 #
9 # Unless required by applicable law or agreed to in writing, software
10 # distributed under the License is distributed on an "AS IS" BASIS,
11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 # See the License for the specific language governing permissions and
13 # limitations under the License.
14
15 TEMPLATE = app
16 TARGET = HomeScreen
17 QT = qml quick dbus
18 CONFIG += c++11
19
20 include(../interfaces/interfaces.pri)
21
22 AFM_ICON_DIR = '$$system(pkg-config --variable=icondir afm-main || echo /var/local/lib/afm/icons/)'
23 QMAKE_CXXFLAGS += -DAFM_ICON_DIR='\\\"$$AFM_ICON_DIR\\\"'
24
25 SOURCES += \
26     src/main.cpp \
27     src/homescreencontrolinterface.cpp \
28     src/layouthandler.cpp \
29     src/applicationmodel.cpp \
30     src/appinfo.cpp \
31     src/statusbarmodel.cpp \
32     src/statusbarserver.cpp \
33     src/applicationlauncher.cpp
34
35 HEADERS  += \
36     src/homescreencontrolinterface.h \
37     src/layouthandler.h \
38     src/statusbarmodel.h \
39     src/statusbarserver.h \
40     src/applicationlauncher.h \
41     src/applicationmodel.h \
42     src/appinfo.h
43
44 OTHER_FILES += \
45     README.md
46
47 RESOURCES += \
48     qml/images/Home/home.qrc \
49     qml/images/MediaPlayer/mediaplayer.qrc \
50     qml/images/MediaMusic/mediamusic.qrc \
51     qml/images/Weather/weather.qrc \
52     qml/images/Shortcut/shortcut.qrc \
53     qml/images/Status/status.qrc \
54     qml/images/images.qrc \
55     qml/qml.qrc