Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mumble-voip/mumble.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMikkel Krautz <mikkel@krautz.dk>2017-02-24 01:22:30 +0300
committerMikkel Krautz <mikkel@krautz.dk>2017-02-24 01:22:30 +0300
commit6329ed7cd103aba09e0d12f1daf9a76c87b7f5fe (patch)
tree891df7e3997d6aaf378dd3d1fdd80121303128bc /qmake/openssl.pri
parent90a904db4ca107d18f6d05cb4e2cad6387e03b54 (diff)
mumble.pri: split out OpenSSL depenency lookup into qmake/openssl.pri for easier use in tests.
This is needed to be able to add tests that depend on OpenSSL.
Diffstat (limited to 'qmake/openssl.pri')
-rw-r--r--qmake/openssl.pri28
1 files changed, 28 insertions, 0 deletions
diff --git a/qmake/openssl.pri b/qmake/openssl.pri
new file mode 100644
index 000000000..30b10d4b7
--- /dev/null
+++ b/qmake/openssl.pri
@@ -0,0 +1,28 @@
+# Copyright 2005-2017 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 {
+ INCLUDEPATH *= "$$OPENSSL_PATH/include"
+ QMAKE_LIBDIR *= "$$OPENSSL_PATH/lib"
+ LIBS *= -llibeay32
+}
+
+unix {
+ contains(UNAME, FreeBSD) {
+ LIBS *= -lcrypto -lssl
+ } else {
+ must_pkgconfig(openssl)
+ }
+}