launcher.pro: Use system() to figure out where to pull the protocol
[apps/launcher.git] / launcher / launcher.pro
index e16e9ce..110aedc 100644 (file)
 
 TEMPLATE = app
 TARGET = launcher
-QT = qml quick dbus websockets
-CONFIG += c++11 link_pkgconfig
+QT = qml quick websockets gui-private
+CONFIG += c++11 link_pkgconfig wayland-scanner
 DESTDIR = $${OUT_PWD}/../package/root/bin
-PKGCONFIG += qlibwindowmanager libhomescreen
+PKGCONFIG += libhomescreen wayland-client
 
-include(../interfaces/interfaces.pri)
+CONFIG(release, debug|release) {
+    QMAKE_POST_LINK = $(STRIP) --strip-unneeded $(TARGET)
+}
 
 SOURCES += \
     src/main.cpp \
     src/applicationmodel.cpp \
     src/appinfo.cpp \
-    src/applicationlauncher.cpp \
+    src/shell-desktop.cpp \
     src/homescreenhandler.cpp
 
 HEADERS  += \
-    src/applicationlauncher.h \
     src/applicationmodel.h \
     src/appinfo.h \
+    src/shell-desktop.h \
     src/homescreenhandler.h
 
 OTHER_FILES += \
@@ -41,3 +43,7 @@ OTHER_FILES += \
 RESOURCES += \
     qml/images/images.qrc \
     qml/qml.qrc
+
+AGL_SHELL_DESKTOP_PATH = $$system(pkg-config --variable=pkgdatadir agl-compositor-0.0.19-protocols)
+WAYLANDCLIENTSOURCES += \
+    $$AGL_SHELL_DESKTOP_PATH/agl-shell-desktop.xml