wscript: make win32 common libraries check faster
This commit is contained in:
parent
18d8ef287d
commit
9d0c7338ab
1 changed files with 10 additions and 12 deletions
22
wscript
22
wscript
|
@ -250,13 +250,7 @@ def configure(conf):
|
||||||
# Don't check them more than once, to save time
|
# Don't check them more than once, to save time
|
||||||
# Usually, they are always available
|
# Usually, they are always available
|
||||||
# but we need them in uselib
|
# but we need them in uselib
|
||||||
a = map(lambda x: {
|
a = [
|
||||||
# 'features': 'c',
|
|
||||||
# 'message': '...' + x,
|
|
||||||
'lib': x,
|
|
||||||
# 'uselib_store': x.upper(),
|
|
||||||
# 'global_define': False,
|
|
||||||
}, [
|
|
||||||
'user32',
|
'user32',
|
||||||
'shell32',
|
'shell32',
|
||||||
'gdi32',
|
'gdi32',
|
||||||
|
@ -264,12 +258,16 @@ def configure(conf):
|
||||||
'dbghelp',
|
'dbghelp',
|
||||||
'psapi',
|
'psapi',
|
||||||
'ws2_32'
|
'ws2_32'
|
||||||
])
|
]
|
||||||
|
|
||||||
for i in a:
|
if conf.env.COMPILER_CC == 'msvc':
|
||||||
conf.check_cc(**i)
|
for i in a:
|
||||||
|
conf.start_msg('Checking for MSVC library')
|
||||||
# conf.multicheck(*a, run_all_tests = True, mandatory = True)
|
conf.check_lib_msvc(i)
|
||||||
|
conf.end_msg(i)
|
||||||
|
else:
|
||||||
|
for i in a:
|
||||||
|
conf.check_cc(lib = i)
|
||||||
|
|
||||||
# check if we can use C99 tgmath
|
# check if we can use C99 tgmath
|
||||||
if conf.check_cc(header_name='tgmath.h', mandatory=False):
|
if conf.check_cc(header_name='tgmath.h', mandatory=False):
|
||||||
|
|
Loading…
Add table
Reference in a new issue