- Timestamp:
- Nov 4, 2018, 1:34:34 PM (6 years ago)
- Branches:
- feature/autosink, feature/cnn, feature/cnn_org, feature/constantq, feature/crepe, feature/crepe_org, feature/pitchshift, feature/pydocstrings, feature/timestretch, fix/ffmpeg5, master
- Children:
- 3fb5812
- Parents:
- fedb139
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
wscript
rfedb139 r19237a7 43 43 choices = ('debug', 'release'), 44 44 dest = 'build_type', 45 help = 'whether to compile with (--build-type=release) or without (--build-type=debug) '\ 46 ' compiler opimizations [default: release]') 45 help = 'whether to compile with (--build-type=release)' \ 46 ' or without (--build-type=debug)' \ 47 ' compiler opimizations [default: release]') 47 48 add_option_enable_disable(ctx, 'fftw3f', default = False, 48 49 help_str = 'compile with fftw3f instead of ooura (recommended)', … … 110 111 111 112 ctx.add_option('--with-target-platform', type='string', 112 help='set target platform for cross-compilation', dest='target_platform') 113 help='set target platform for cross-compilation', 114 dest='target_platform') 113 115 114 116 ctx.load('compiler_c') … … 206 208 ctx.msg('Checking for AudioToolbox.framework', 'yes') 207 209 else: 208 ctx.msg('Checking for AudioToolbox.framework', 'no (disabled)', color = 'YELLOW') 210 ctx.msg('Checking for AudioToolbox.framework', 'no (disabled)', 211 color = 'YELLOW') 209 212 if (ctx.options.enable_accelerate != False): 210 213 ctx.define('HAVE_ACCELERATE', 1) … … 212 215 ctx.msg('Checking for Accelerate framework', 'yes') 213 216 else: 214 ctx.msg('Checking for Accelerate framework', 'no (disabled)', color = 'YELLOW') 217 ctx.msg('Checking for Accelerate framework', 'no (disabled)', 218 color = 'YELLOW') 215 219 216 220 if target_platform in [ 'ios', 'iosimulator' ]: … … 266 270 # tell emscripten functions we want to expose 267 271 from python.lib.gen_external import get_c_declarations, \ 268 get_cpp_objects_from_c_declarations, get_all_func_names_from_lib, \ 272 get_cpp_objects_from_c_declarations, \ 273 get_all_func_names_from_lib, \ 269 274 generate_lib_from_c_declarations 270 c_decls = get_c_declarations(usedouble=False) # emscripten can't use double 275 # emscripten can't use double 276 c_decls = get_c_declarations(usedouble=False) 271 277 objects = list(get_cpp_objects_from_c_declarations(c_decls)) 272 278 # ensure that aubio structs are exported … … 275 281 exported_funcnames = get_all_func_names_from_lib(lib) 276 282 c_mangled_names = ['_' + s for s in exported_funcnames] 277 ctx.env.LINKFLAGS_cshlib += ['-s', 'EXPORTED_FUNCTIONS=%s' % c_mangled_names] 283 ctx.env.LINKFLAGS_cshlib += ['-s', 284 'EXPORTED_FUNCTIONS=%s' % c_mangled_names] 278 285 279 286 # check support for C99 __VA_ARGS__ macros … … 305 312 # check for Intel IPP 306 313 if (ctx.options.enable_intelipp != False): 307 has_ipp_headers = ctx.check(header_name=['ippcore.h', 'ippvm.h', 'ipps.h'],308 314 has_ipp_headers = ctx.check(header_name=['ippcore.h', 'ippvm.h', 315 'ipps.h'], mandatory = False) 309 316 has_ipp_libs = ctx.check(lib=['ippcore', 'ippvm', 'ipps'], 310 317 uselib_store='INTEL_IPP', mandatory = False) … … 313 320 ctx.define('HAVE_INTEL_IPP', 1) 314 321 if ctx.env.CC_NAME == 'msvc': 315 # force linking multi-threaded static IPP libraries on Windows with msvc 322 # force linking multi-threaded static IPP libraries on Windows 323 # with msvc 316 324 ctx.define('_IPP_SEQUENTIAL_STATIC', 1) 317 325 else: … … 362 370 if (ctx.options.enable_double): 363 371 if (ctx.options.enable_samplerate): 364 ctx.fatal("Could not compile aubio in double precision mode with libsamplerate") 372 ctx.fatal("Could not compile aubio in double precision mode' \ 373 ' with libsamplerate") 365 374 else: 366 375 ctx.options.enable_samplerate = False 367 ctx.msg('Checking if using samplerate', 'no (disabled in double precision mode)',368 color = 'YELLOW')376 ctx.msg('Checking if using samplerate', 377 'no (disabled in double precision mode)', color = 'YELLOW') 369 378 if (ctx.options.enable_samplerate != False): 370 379 ctx.check_cfg(package = 'samplerate', … … 409 418 elif 'HAVE_AVUTIL' not in ctx.env: 410 419 ctx.msg(msg_check, 'not found (missing avutil)', color = 'YELLOW') 411 elif 'HAVE_SWRESAMPLE' not in ctx.env and 'HAVE_AVRESAMPLE' not in ctx.env: 420 elif 'HAVE_SWRESAMPLE' not in ctx.env \ 421 and 'HAVE_AVRESAMPLE' not in ctx.env: 412 422 resample_missing = 'not found (avresample or swresample required)' 413 423 ctx.msg(msg_check, resample_missing, color = 'YELLOW') … … 422 432 if (ctx.options.enable_wavread != False): 423 433 ctx.define('HAVE_WAVREAD', 1) 424 ctx.msg('Checking if using source_wavread', ctx.options.enable_wavread and 'yes' or 'no') 434 ctx.msg('Checking if using source_wavread', 435 ctx.options.enable_wavread and 'yes' or 'no') 425 436 if (ctx.options.enable_wavwrite!= False): 426 437 ctx.define('HAVE_WAVWRITE', 1) 427 ctx.msg('Checking if using sink_wavwrite', ctx.options.enable_wavwrite and 'yes' or 'no') 438 ctx.msg('Checking if using sink_wavwrite', 439 ctx.options.enable_wavwrite and 'yes' or 'no') 428 440 429 441 # use BLAS/ATLAS … … 543 555 544 556 def sphinx(bld): 545 # build documentation from source files using sphinx-build 546 # note: build in../doc/_build/html, otherwise waf wont install unsigned files557 # build documentation from source files using sphinx-build note: build in 558 # ../doc/_build/html, otherwise waf wont install unsigned files 547 559 if bld.env['SPHINX']: 548 560 bld.env.VERSION = VERSION 549 561 bld( name = 'sphinx', 550 rule = '${SPHINX} -b html -D release=${VERSION} -D version=${VERSION} -a -q `dirname ${SRC}` `dirname ${TGT}`', 562 rule = '${SPHINX} -b html -D release=${VERSION}' \ 563 ' -D version=${VERSION} -a -q' \ 564 ' `dirname ${SRC}` `dirname ${TGT}`', 551 565 source = 'doc/conf.py', 552 566 target = '../doc/_build/html/index.html') … … 578 592 from waflib import Logs 579 593 if bld.options.target_platform in ['ios', 'iosimulator']: 580 msg ='building for %s, contact the author for a commercial license' % bld.options.target_platform 594 msg ='building for %s, contact the author for a commercial license' \ 595 % bld.options.target_platform 581 596 Logs.pprint('RED', msg) 582 597 msg =' Paul Brossier <piem@aubio.org>' … … 584 599 585 600 def dist(ctx): 586 ctx.excl = ' **/.waf* **/*~ **/*.pyc **/*.swp **/*.swo **/*.swn **/.lock-w* **/.git*' 601 ctx.excl = ' **/.waf*' 602 ctx.excl += ' **/.git*' 603 ctx.excl += ' **/*~ **/*.pyc **/*.swp **/*.swo **/*.swn **/.lock-w*' 587 604 ctx.excl += ' **/build/*' 588 605 ctx.excl += ' doc/_build'
Note: See TracChangeset
for help on using the changeset viewer.