summaryrefslogtreecommitdiffstats
path: root/config.tests
diff options
context:
space:
mode:
authorLaszlo Agocs <laszlo.agocs@theqtcompany.com>2015-11-16 12:04:34 +0100
committerLaszlo Agocs <laszlo.agocs@theqtcompany.com>2015-11-16 12:36:55 +0000
commitbecd18327dd28bd742007a54b176d1d4f0f5857c (patch)
tree8e3ccc568654e9f2e591a3b9b508685939a77972 /config.tests
parent149f57ecdfd0bcd46fad67a14789f3badae520fa (diff)
Make libyaml support config test based
If 0.1.6 is not available, fall back to the bundled version automatically. Requiring bizarre command line options is not ideal, esp. since most users will run into the problem of having only version 0.1.4. Change-Id: I0fc6e1081d45b0704ef18cc584352d9119d69258 Reviewed-by: Robert Griebl <robert.griebl@pelagicore.com>
Diffstat (limited to 'config.tests')
-rw-r--r--config.tests/libyaml/libyaml.pro7
-rw-r--r--config.tests/libyaml/main.cpp45
2 files changed, 52 insertions, 0 deletions
diff --git a/config.tests/libyaml/libyaml.pro b/config.tests/libyaml/libyaml.pro
new file mode 100644
index 00000000..72cdd371
--- /dev/null
+++ b/config.tests/libyaml/libyaml.pro
@@ -0,0 +1,7 @@
+TARGET = libyaml
+CONFIG -= qt
+
+SOURCES += main.cpp
+
+PKGCONFIG += "'yaml-0.1 >= 0.1.6'"
+CONFIG += link_pkgconfig
diff --git a/config.tests/libyaml/main.cpp b/config.tests/libyaml/main.cpp
new file mode 100644
index 00000000..f2ee04e1
--- /dev/null
+++ b/config.tests/libyaml/main.cpp
@@ -0,0 +1,45 @@
+/****************************************************************************
+**
+** Copyright (C) 2015 The Qt Company Ltd.
+** Contact: http://www.qt.io/licensing/
+**
+** This file is part of the Qt Application Manager
+**
+** $QT_BEGIN_LICENSE:LGPL3$
+** 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 <yaml.h>
+
+int main()
+{
+ yaml_parser_t p;
+ yaml_parser_initialize(&p);
+
+ return 0;
+}