homescreen: Add support for v3 of agl-shell protocol
[apps/homescreen.git] / homescreen / homescreen.pro
index 0e5bb58..16a01f6 100644 (file)
 # limitations under the License.
 
 TEMPLATE = app
-TARGET = HomeScreen
-QT = qml quick dbus websockets
-CONFIG += c++11 link_pkgconfig
-DESTDIR = $${OUT_PWD}/../package/root/bin
-PKGCONFIG += qlibwindowmanager qtappfw
-
-LIBS += -lhomescreen
-
-include(../interfaces/interfaces.pri)
+TARGET = homescreen
+QT = qml quick gui-private
+CONFIG += c++11 link_pkgconfig wayland-scanner
+PKGCONFIG += wayland-client
+PKGCONFIG += qtappfw-weather qtappfw-network qtappfw-bt qtappfw-vehicle-signals qtappfw-applauncher
 
 SOURCES += \
     src/main.cpp \
+    src/shell.cpp \
     src/statusbarmodel.cpp \
     src/statusbarserver.cpp \
     src/applicationlauncher.cpp \
@@ -33,6 +30,8 @@ SOURCES += \
     src/homescreenhandler.cpp
 
 HEADERS  += \
+    src/shell.h \
+    src/constants.h \
     src/statusbarmodel.h \
     src/statusbarserver.h \
     src/applicationlauncher.h \
@@ -50,3 +49,12 @@ RESOURCES += \
     qml/images/Status/status.qrc \
     qml/images/images.qrc \
     qml/qml.qrc
+
+AGL_SHELL_PATH = $$system(pkg-config --variable=pkgdatadir agl-compositor-0.0.20-protocols)
+WAYLANDCLIENTSOURCES += $$AGL_SHELL_PATH/agl-shell.xml
+
+target.path = $${PREFIX}/usr/bin
+target.files += $${OUT_PWD}/$${TARGET}
+target.CONFIG = no_check_exist executable
+
+INSTALLS += target