diff options
author | Andy Nichols <andy.nichols@digia.com> | 2013-01-31 12:25:06 +0100 |
---|---|---|
committer | Andy Nichols <andy.nichols@digia.com> | 2013-02-01 10:02:41 +0100 |
commit | b0582106afe1ebb8a77c6d442966f76bde40f092 (patch) | |
tree | a59e93a884543cef702702d8bab600e926b47fac /config.tests | |
parent | 5d188139d3f9d8aeaca10a941c7fb177c709a0c0 (diff) | |
download | qtwayland-b0582106afe1ebb8a77c6d442966f76bde40f092.tar.gz |
Require xkbcommon and wayland-scanner to build
Change-Id: I83066c632c5dec9599d7261a2f353ef4749a19da
Reviewed-by: Jørgen Lind <jorgen.lind@gmail.com>
Diffstat (limited to 'config.tests')
-rw-r--r-- | config.tests/wayland_scanner/main.cpp | 47 | ||||
-rw-r--r-- | config.tests/wayland_scanner/scanner-test.xml | 51 | ||||
-rw-r--r-- | config.tests/wayland_scanner/wayland_scanner.pro | 15 |
3 files changed, 113 insertions, 0 deletions
diff --git a/config.tests/wayland_scanner/main.cpp b/config.tests/wayland_scanner/main.cpp new file mode 100644 index 00000000..deb1bd0a --- /dev/null +++ b/config.tests/wayland_scanner/main.cpp @@ -0,0 +1,47 @@ +/**************************************************************************** +** +** Copyright (C) 2012 Digia Plc and/or its subsidiary(-ies). +** Contact: http://www.qt-project.org/legal +** +** This file is part of the Qt Compositor. +** +** $QT_BEGIN_LICENSE:BSD$ +** You may use this file under the terms of the BSD license as follows: +** +** "Redistribution and use in source and binary forms, with or without +** modification, are permitted provided that the following conditions are +** met: +** * Redistributions of source code must retain the above copyright +** notice, this list of conditions and the following disclaimer. +** * Redistributions in binary form must reproduce the above copyright +** notice, this list of conditions and the following disclaimer in +** the documentation and/or other materials provided with the +** distribution. +** * Neither the name of Digia Plc and its Subsidiary(-ies) nor the names +** of its contributors may be used to endorse or promote products derived +** from this software without specific prior written permission. +** +** +** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE." +** +** $QT_END_LICENSE$ +** +****************************************************************************/ + +//If wayland-scanner is available, the following file should exist +#include "wayland-scanner-test-client-protocol.h" + +int main() +{ + return 0; +} diff --git a/config.tests/wayland_scanner/scanner-test.xml b/config.tests/wayland_scanner/scanner-test.xml new file mode 100644 index 00000000..84913fd5 --- /dev/null +++ b/config.tests/wayland_scanner/scanner-test.xml @@ -0,0 +1,51 @@ +<?xml version="1.0" encoding="UTF-8"?> +<protocol name="scanner_test"> + <!-- a dummy extension to test for wayland-scanner tool --> + <copyright> + Copyright (C) 2012 Digia Plc and/or its subsidiary(-ies). + Contact: http://www.qt-project.org/legal + + This file is part of the plugins of the Qt Toolkit. + + $QT_BEGIN_LICENSE:BSD$ + You may use this file under the terms of the BSD license as follows: + + "Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions are + met: + * Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in + the documentation and/or other materials provided with the + distribution. + * Neither the name of Digia Plc and its Subsidiary(-ies) nor the names + of its contributors may be used to endorse or promote products derived + from this software without specific prior written permission. + + + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR + A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT + OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, + SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT + LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, + DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY + THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT + (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE + OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE." + + $QT_END_LICENSE$ + </copyright> + <interface name="wl_scanner_test" version="1"> + + <!-- Create a wayland buffer wrapping a global image. --> + <request name="get_scanner_test"> + <arg name="id" type="new_id" interface="wl_scanner_test"/> + <arg name="fakedata" type="int"/> + </request> + </interface> + +</protocol> + diff --git a/config.tests/wayland_scanner/wayland_scanner.pro b/config.tests/wayland_scanner/wayland_scanner.pro new file mode 100644 index 00000000..57edd5b2 --- /dev/null +++ b/config.tests/wayland_scanner/wayland_scanner.pro @@ -0,0 +1,15 @@ +TARGET = wayland_scanner +QT = core + +!contains(QT_CONFIG, no-pkg-config) { + CONFIG += link_pkgconfig + PKGCONFIG += wayland-client +} else { + LIBS += -lwayland-client +} + +# Input +SOURCES += main.cpp + +WAYLANDSOURCES += scanner-test.xml + |