From cc48526dfb85701629ad19bd1dadf88af5482800 Mon Sep 17 00:00:00 2001 From: Andras Becsi Date: Mon, 23 Feb 2015 13:42:26 +0100 Subject: Add config test for Khronos development headers MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit These are needed on Linux, since the core layer can not rely on the shipped third_party/khronos headers because that would break the build on GLES configs. Change-Id: I598f58a9830b31a56425db60b7fc36c3f34f8581 Reviewed-by: Michael BrĂ¼ning --- tools/qmake/config.tests/khr/khr.cpp | 44 ++++++++++++++++++++++++++++++++++++ tools/qmake/config.tests/khr/khr.pro | 2 ++ 2 files changed, 46 insertions(+) create mode 100644 tools/qmake/config.tests/khr/khr.cpp create mode 100644 tools/qmake/config.tests/khr/khr.pro (limited to 'tools/qmake/config.tests/khr') diff --git a/tools/qmake/config.tests/khr/khr.cpp b/tools/qmake/config.tests/khr/khr.cpp new file mode 100644 index 000000000..6182df286 --- /dev/null +++ b/tools/qmake/config.tests/khr/khr.cpp @@ -0,0 +1,44 @@ +/**************************************************************************** +** +** Copyright (C) 2015 The Qt Company Ltd. +** Contact: http://www.qt.io/licensing/ +** +** This file is part of the QtWebEngine module of the Qt Toolkit. +** +** $QT_BEGIN_LICENSE:LGPL$ +** Commercial License Usage +** Licensees holding valid commercial Qt licenses may use this file in +** accordance with the commercial license agreement provided with the +** Software or, alternatively, in accordance with the terms contained in +** a written agreement between you and The Qt Company. For licensing terms +** and conditions see http://www.qt.io/terms-conditions. For further +** information use the contact form at http://www.qt.io/contact-us. +** +** GNU Lesser General Public License Usage +** Alternatively, this file may be used under the terms of the GNU Lesser +** General Public License version 3 as published by the Free Software +** Foundation and appearing in the file LICENSE.LGPLv3 included in the +** packaging of this file. Please review the following information to +** ensure the GNU Lesser General Public License version 3 requirements +** will be met: https://www.gnu.org/licenses/lgpl.html. +** +** GNU General Public License Usage +** Alternatively, this file may be used under the terms of the GNU +** General Public License version 2.0 or later as published by the Free +** Software Foundation and appearing in the file LICENSE.GPL included in +** the packaging of this file. Please review the following information to +** ensure the GNU General Public License version 2.0 requirements will be +** met: http://www.gnu.org/licenses/gpl-2.0.html. +** +** $QT_END_LICENSE$ +** +****************************************************************************/ + +#include + +int main(int, char **) +{ + const khronos_boolean_enum_t kfalse = KHRONOS_FALSE; + const khronos_boolean_enum_t ktrue = KHRONOS_TRUE; + return kfalse == ktrue; +} diff --git a/tools/qmake/config.tests/khr/khr.pro b/tools/qmake/config.tests/khr/khr.pro new file mode 100644 index 000000000..6abd2367a --- /dev/null +++ b/tools/qmake/config.tests/khr/khr.pro @@ -0,0 +1,2 @@ +CONFIG-=qt +linux:SOURCES += khr.cpp -- cgit v1.2.3