diff options
author | Robert Griebl <robert.griebl@pelagicore.com> | 2016-06-16 19:22:07 +0200 |
---|---|---|
committer | Robert Griebl <robert.griebl@pelagicore.com> | 2016-06-21 11:42:48 +0000 |
commit | 8a0d6097315c5560fc46afa03413cf1a1f7a999b (patch) | |
tree | a3da17946e0fe81a88a7545031523b1057c8e91b /config.tests | |
parent | fed665cca0540e7fa05e4a620d1e35d2cb920708 (diff) |
Do not even start to build if libcrypto is needed, but missing
Change-Id: I106eccf879c36a01ab3a7c01752f1eb838a92a3b
Reviewed-by: Dominik Holland <dominik.holland@pelagicore.com>
Diffstat (limited to 'config.tests')
-rw-r--r-- | config.tests/libarchive/libarchive.pro | 1 | ||||
-rw-r--r-- | config.tests/libcrypto/libcrypto.pro | 10 | ||||
-rw-r--r-- | config.tests/libcrypto/main.cpp | 51 | ||||
-rw-r--r-- | config.tests/libdbus/libdbus.pro | 1 | ||||
-rw-r--r-- | config.tests/libyaml/libyaml.pro | 1 |
5 files changed, 64 insertions, 0 deletions
diff --git a/config.tests/libarchive/libarchive.pro b/config.tests/libarchive/libarchive.pro index 0a1bf2e2..7f4224e0 100644 --- a/config.tests/libarchive/libarchive.pro +++ b/config.tests/libarchive/libarchive.pro @@ -1,5 +1,6 @@ TARGET = libarchive CONFIG -= qt +CONFIG += console SOURCES += main.cpp diff --git a/config.tests/libcrypto/libcrypto.pro b/config.tests/libcrypto/libcrypto.pro new file mode 100644 index 00000000..64ce4aef --- /dev/null +++ b/config.tests/libcrypto/libcrypto.pro @@ -0,0 +1,10 @@ +TARGET = libcrypto +CONFIG -= qt +CONFIG += console + +SOURCES += main.cpp + +linux:packagesExist("'libcrypto >= 1.0.1'") { + PKGCONFIG += libcrypto + CONFIG *= link_pkgconfig +} diff --git a/config.tests/libcrypto/main.cpp b/config.tests/libcrypto/main.cpp new file mode 100644 index 00000000..ff48e230 --- /dev/null +++ b/config.tests/libcrypto/main.cpp @@ -0,0 +1,51 @@ +/**************************************************************************** +** +** Copyright (C) 2016 Pelagicore AG +** Contact: https://www.qt.io/licensing/ +** +** This file is part of the Pelagicore Application Manager. +** +** $QT_BEGIN_LICENSE:LGPL-QTAS$ +** Commercial License Usage +** Licensees holding valid commercial Qt Automotive Suite 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 https://www.qt.io/terms-conditions. +** For further information use the contact form at https://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.LGPL3 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-3.0.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 (at your option) the GNU General +** Public license version 3 or any later version approved by the KDE Free +** Qt Foundation. The licenses are as published by the Free Software +** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3 +** included in the packaging of this file. Please review the following +** information to ensure the GNU General Public License requirements will +** be met: https://www.gnu.org/licenses/gpl-2.0.html and +** https://www.gnu.org/licenses/gpl-3.0.html. +** +** $QT_END_LICENSE$ +** +** SPDX-License-Identifier: LGPL-3.0 +** +****************************************************************************/ + +#include <openssl/opensslv.h> + +#if OPENSSL_VERSION_NUMBER-0 < 0x1000100fL +# error "OpenSSL < 1.0.1 is binary incompatible" +#endif + +int main() +{ + return 0; +} diff --git a/config.tests/libdbus/libdbus.pro b/config.tests/libdbus/libdbus.pro index 53854f80..29348c8e 100644 --- a/config.tests/libdbus/libdbus.pro +++ b/config.tests/libdbus/libdbus.pro @@ -1,5 +1,6 @@ TARGET = libdbus CONFIG -= qt +CONFIG += console SOURCES += main.cpp diff --git a/config.tests/libyaml/libyaml.pro b/config.tests/libyaml/libyaml.pro index 72cdd371..eaf0665c 100644 --- a/config.tests/libyaml/libyaml.pro +++ b/config.tests/libyaml/libyaml.pro @@ -1,5 +1,6 @@ TARGET = libyaml CONFIG -= qt +CONFIG += console SOURCES += main.cpp |