homescreen: Add support for v3 of agl-shell protocol
[apps/homescreen.git] / homescreen / homescreen.pro
1 # Copyright (C) 2016, 2017 Mentor Graphics Development (Deutschland) GmbH
2 # Copyright (c) 2017 TOYOTA MOTOR CORPORATION
3 #
4 # Licensed under the Apache License, Version 2.0 (the "License");
5 # you may not use this file except in compliance with the License.
6 # You may obtain a copy of the License at
7 #
8 #      http://www.apache.org/licenses/LICENSE-2.0
9 #
10 # Unless required by applicable law or agreed to in writing, software
11 # distributed under the License is distributed on an "AS IS" BASIS,
12 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 # See the License for the specific language governing permissions and
14 # limitations under the License.
15
16 TEMPLATE = app
17 TARGET = homescreen
18 QT = qml quick gui-private
19 CONFIG += c++11 link_pkgconfig wayland-scanner
20 PKGCONFIG += wayland-client
21 PKGCONFIG += qtappfw-weather qtappfw-network qtappfw-bt qtappfw-vehicle-signals qtappfw-applauncher
22
23 SOURCES += \
24     src/main.cpp \
25     src/shell.cpp \
26     src/statusbarmodel.cpp \
27     src/statusbarserver.cpp \
28     src/applicationlauncher.cpp \
29     src/mastervolume.cpp \
30     src/homescreenhandler.cpp
31
32 HEADERS  += \
33     src/shell.h \
34     src/constants.h \
35     src/statusbarmodel.h \
36     src/statusbarserver.h \
37     src/applicationlauncher.h \
38     src/mastervolume.h \
39     src/homescreenhandler.h
40
41 OTHER_FILES += \
42     README.md
43
44 RESOURCES += \
45     qml/images/MediaPlayer/mediaplayer.qrc \
46     qml/images/MediaMusic/mediamusic.qrc \
47     qml/images/Weather/weather.qrc \
48     qml/images/Shortcut/shortcut.qrc \
49     qml/images/Status/status.qrc \
50     qml/images/images.qrc \
51     qml/qml.qrc
52
53 AGL_SHELL_PATH = $$system(pkg-config --variable=pkgdatadir agl-compositor-0.0.20-protocols)
54 WAYLANDCLIENTSOURCES += $$AGL_SHELL_PATH/agl-shell.xml
55
56 target.path = $${PREFIX}/usr/bin
57 target.files += $${OUT_PWD}/$${TARGET}
58 target.CONFIG = no_check_exist executable
59
60 INSTALLS += target