From fdbd1c5658b2f9cb5a72e146cabf34b3d9c4f0c5 Mon Sep 17 00:00:00 2001 From: Alibek Omarov Date: Fri, 18 Oct 2019 05:11:18 +0300 Subject: [PATCH] wscript: check win32 libraries in parallel --- wscript | 22 +++++++++++++++------- 1 file changed, 15 insertions(+), 7 deletions(-) diff --git a/wscript b/wscript index 54f9b96b..980e8218 100644 --- a/wscript +++ b/wscript @@ -249,13 +249,21 @@ def configure(conf): # Don't check them more than once, to save time # Usually, they are always available # but we need them in uselib - conf.check_cc( lib='user32' ) - conf.check_cc( lib='shell32' ) - conf.check_cc( lib='gdi32' ) - conf.check_cc( lib='advapi32' ) - conf.check_cc( lib='dbghelp' ) - conf.check_cc( lib='psapi' ) - conf.check_cc( lib='ws2_32' ) + a = map(lambda x: { + 'features': 'c', + 'message': '...' + x, + 'lib': x + }, [ + 'user32', + 'shell32', + 'gdi32', + 'advapi32', + 'dbghelp', + 'psapi', + 'ws2_32' + ]) + + conf.multicheck(*a) # indicate if we are packaging for Linux/BSD if(not conf.options.WIN_INSTALL and