summaryrefslogtreecommitdiffstats
path: root/tests/auto/client/client.pro
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/client/client.pro')
-rw-r--r--tests/auto/client/client.pro34
1 files changed, 34 insertions, 0 deletions
diff --git a/tests/auto/client/client.pro b/tests/auto/client/client.pro
new file mode 100644
index 000000000..5d1f43d69
--- /dev/null
+++ b/tests/auto/client/client.pro
@@ -0,0 +1,34 @@
+CONFIG += testcase
+TARGET = tst_client
+
+QT += testlib
+QT += core-private gui-private
+
+use_pkgconfig {
+ CONFIG += link_pkgconfig
+ PKGCONFIG += wayland-server
+
+ #set the rpath
+ !isEmpty(QMAKE_LFLAGS_RPATH) {
+ WAYLAND_NEEDS_RPATH = $$system(pkg-config --libs-only-L wayland-server)
+ !isEmpty(WAYLAND_NEEDS_RPATH) {
+ WAYLAND_LIBDIR = $$system(pkg-config --variable=libdir wayland-server)
+ !isEmpty(WAYLAND_LIBDIR):QMAKE_LFLAGS += $${QMAKE_LFLAGS_RPATH}$${WAYLAND_LIBDIR}
+ }
+ }
+} else {
+ INCLUDEPATH += $$QMAKE_INCDIR_WAYLAND
+ !isEmpty(QMAKE_LIBDIR_WAYLAND) {
+ LIBS += -L$$QMAKE_LIBDIR_WAYLAND
+ }
+ LIBS += -lwayland-server -lffi
+}
+
+SOURCES += tst_client.cpp \
+ mockcompositor.cpp \
+ mockinput.cpp \
+ mockshell.cpp \
+ mockshm.cpp \
+ mocksurface.cpp \
+ mockoutput.cpp
+HEADERS += mockcompositor.h mocksurface.h