mumble/qmake/openssl.pri
Jan Klass 5fe390a0e4 Add missing ssleay32 library reference in openssl qmake configuration
MumbleSSL (defined in SSL.h/.cpp) uses OpenSSL functions - starting with
SSL_library_init. These functions are defined in the ssleay32 library.

This library was missing, which resulted/could result in linker errors
(in specific kinds of build environments).
2019-03-17 01:08:32 +01:00

34 lines
815 B
Plaintext

# Copyright 2005-2019 The Mumble Developers. All rights reserved.
# Use of this source code is governed by a BSD-style license
# that can be found in the LICENSE file at the root of the
# Mumble source tree or at <https://www.mumble.info/LICENSE>.
include(pkgconfig.pri)
# Include this file to portably link
# against OpenSSL.
#
# It requires compiler.pri to be included
# for $$OPENSSL_PATH, etc. to work on win32.
# This file can't include compiler.pri: it can
# only be included once per .pro file.
win32-msvc* {
INCLUDEPATH *= "$$OPENSSL_PATH/include"
QMAKE_LIBDIR *= "$$OPENSSL_PATH/lib"
LIBS *= -lgdi32 -llibeay32 -lssleay32
}
win32-g++ {
LIBS *= -lssl -lcrypto -lgdi32
}
unix {
contains(UNAME, FreeBSD) {
LIBS *= -lcrypto -lssl
} else {
CONFIG *= link_pkgconfig
must_pkgconfig(openssl)
}
}