From f3f0d14d3d8fbdfded9424f3b3e9fc7ca33cf4e6 Mon Sep 17 00:00:00 2001 From: Paul Brossier Date: Sun, 1 Oct 2017 20:03:45 +0200 Subject: [PATCH] wscript: shorten long lines --- wscript | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/wscript b/wscript index 9e0810ba..5ee1d8db 100644 --- a/wscript +++ b/wscript @@ -251,7 +251,9 @@ def configure(ctx): ctx.env.cstlib_PATTERN = '%s.a' # tell emscripten functions we want to expose - from python.lib.gen_external import get_c_declarations, get_cpp_objects_from_c_declarations, get_all_func_names_from_lib, generate_lib_from_c_declarations + from python.lib.gen_external import get_c_declarations, \ + get_cpp_objects_from_c_declarations, get_all_func_names_from_lib, \ + generate_lib_from_c_declarations c_decls = get_c_declarations(usedouble=False) # emscripten can't use double objects = list(get_cpp_objects_from_c_declarations(c_decls)) # ensure that aubio structs are exported @@ -292,8 +294,11 @@ def configure(ctx): # check for Intel IPP if (ctx.options.enable_intelipp != False): - if (ctx.check(header_name=['ippcore.h', 'ippvm.h', 'ipps.h'], mandatory = False) and - ctx.check(lib=['ippcore', 'ippvm', 'ipps'], uselib_store='INTEL_IPP', mandatory = False)): + has_ipp_headers = ctx.check(header_name=['ippcore.h', 'ippvm.h', 'ipps.h'], + mandatory = False) + has_ipp_libs = ctx.check(lib=['ippcore', 'ippvm', 'ipps'], + uselib_store='INTEL_IPP', mandatory = False) + if (has_ipp_headers and has_ipp_libs): ctx.msg('Checking if Intel IPP is available', 'yes') ctx.define('HAVE_INTEL_IPP', 1) if ctx.env.CC_NAME == 'msvc': -- 2.11.0