Changes in wscript [0cd3720:22e3ef1]
Legend:
- Unmodified
- Added
- Removed
-
wscript
r0cd3720 r22e3ef1 46 46 ' or without (--build-type=debug)' \ 47 47 ' compiler opimizations [default: release]') 48 ctx.add_option('--debug', action = 'store_const',49 dest = 'build_type', const = 'debug',50 help = 'build in debug mode (see --build-type)')51 ctx.add_option('--nodeps', action = 'store_const',52 dest = 'nodeps', const = 'debug',53 help = 'build with no external dependencies')54 48 add_option_enable_disable(ctx, 'fftw3f', default = False, 55 49 help_str = 'compile with fftw3f instead of ooura (recommended)', … … 130 124 target_platform = ctx.options.target_platform 131 125 132 if ctx.options.nodeps:133 external_deps = [134 'sndfile',135 'samplerate',136 'jack',137 'avcodec',138 'blas',139 'fftw3',140 'fftw3f',141 ]142 for d in external_deps:143 if not hasattr(ctx.options, 'enable_' + d):144 raise ctx.errors.ConfigurationError ('--enable-%s missing from options' % d)145 if getattr(ctx.options, 'enable_' + d) == True:146 msg = 'Option --nodeps can not be used along with --enable-%s' % d147 raise ctx.errors.ConfigurationError (msg)148 elif getattr(ctx.options, 'enable_' + d) is None:149 msg = 'Option --nodeps used but automatic detection with --enable-%s' % d150 ctx.msg('Warning', msg)151 setattr(ctx.options, 'enable_' + d, False)152 153 126 from waflib import Options 154 127
Note: See TracChangeset
for help on using the changeset viewer.