From fc878e04bfa41b67f3295f255c7f1b980ffb04bc Mon Sep 17 00:00:00 2001 From: Mikkel Krautz Date: Thu, 2 Mar 2017 00:30:09 +0100 Subject: [PATCH] TestCryptographicRandom: add QT_NO_OPENGL to fix 'make check' for win32-msvc builds. --- .../TestCryptographicRandom/TestCryptographicRandom.pro | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/tests/TestCryptographicRandom/TestCryptographicRandom.pro b/src/tests/TestCryptographicRandom/TestCryptographicRandom.pro index 8aebec149..628436798 100644 --- a/src/tests/TestCryptographicRandom/TestCryptographicRandom.pro +++ b/src/tests/TestCryptographicRandom/TestCryptographicRandom.pro @@ -12,6 +12,14 @@ CONFIG += testcase CONFIG += qt warn_on CONFIG -= app_bundle LANGUAGE = C++ + +# We build this test with 'gui' in QT, +# but we include the QtGui headers from +# murmur_pch.h. Define QT_NO_OPENGL to +# avoid build errors about a missing GLES/gles2.h +# header. +DEFINES += QT_NO_OPENGL + TARGET = TestCryptographicRandom SOURCES = TestCryptographicRandom.cpp CryptographicRandom.cpp arc4random_uniform.cpp HEADERS = CryptographicHash.h