diff options
author | Laszlo Agocs <laszlo.agocs@theqtcompany.com> | 2015-11-16 12:22:47 +0100 |
---|---|---|
committer | Laszlo Agocs <laszlo.agocs@theqtcompany.com> | 2015-11-16 12:37:00 +0000 |
commit | 56885ed37e6ef011044cd37c848e3f8ed94618ba (patch) | |
tree | 16757a204eaf5a4bbe922f0ed53d7ab5b3ad1c67 /config.tests | |
parent | becd18327dd28bd742007a54b176d1d4f0f5857c (diff) |
Make libarchive support config test based
Use the bundled one automatically if 3.1.2 is not available via pkg-config.
Change-Id: Iac00dc0173acef3525fc97a09b47458fb2b1036b
Reviewed-by: Robert Griebl <robert.griebl@pelagicore.com>
Diffstat (limited to 'config.tests')
-rw-r--r-- | config.tests/libarchive/libarchive.pro | 7 | ||||
-rw-r--r-- | config.tests/libarchive/main.cpp | 45 |
2 files changed, 52 insertions, 0 deletions
diff --git a/config.tests/libarchive/libarchive.pro b/config.tests/libarchive/libarchive.pro new file mode 100644 index 00000000..0a1bf2e2 --- /dev/null +++ b/config.tests/libarchive/libarchive.pro @@ -0,0 +1,7 @@ +TARGET = libarchive +CONFIG -= qt + +SOURCES += main.cpp + +PKGCONFIG += "'libarchive >= 3.1.2'" +CONFIG += link_pkgconfig diff --git a/config.tests/libarchive/main.cpp b/config.tests/libarchive/main.cpp new file mode 100644 index 00000000..a9fb5671 --- /dev/null +++ b/config.tests/libarchive/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 <archive.h> +#include <archive_entry.h> + +int main() +{ + struct archive *ar = archive_write_new(); + + return 0; +} |