- Timestamp:
- Feb 10, 2013, 1:03:21 AM (12 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, pitchshift, sampler, timestretch, yinfft+
- Children:
- c57ecd9
- Parents:
- cbc9765
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
wscript
rcbc9765 r6ed0f4e 53 53 help='set target platform for cross-compilation', dest='target_platform') 54 54 ctx.load('compiler_c') 55 ctx.load('gnu_dirs')56 55 ctx.load('waf_unit_test') 57 56 58 57 def configure(ctx): 59 import Options 60 ctx.check_tool('compiler_c') 61 ctx.check_tool('gnu_dirs') # helpful for autotools transition and .pc generation 58 from waflib import Options 59 ctx.load('compiler_c') 62 60 ctx.load('waf_unit_test') 63 61 ctx.env.CFLAGS = ['-g', '-Wall', '-Wextra'] … … 180 178 ctx.to_log('docbook-to-man was not found (ignoring)') 181 179 182 def build( ctx):183 ctx.env['VERSION'] = VERSION184 ctx.env['LIB_VERSION'] = LIB_VERSION180 def build(bld): 181 bld.env['VERSION'] = VERSION 182 bld.env['LIB_VERSION'] = LIB_VERSION 185 183 186 184 # add sub directories 187 ctx.add_subdirs(['src','examples']) 188 if ctx.env['SWIG']: 189 if ctx.env['PYTHON']: 190 ctx.add_subdirs('python') 191 185 bld.recurse('src examples tests') 186 187 """ 192 188 # create the aubio.pc file for pkg-config 193 189 if ctx.env['TARGET_PLATFORM'] == 'linux': … … 212 208 213 209 # install woodblock sound 214 ctx.install_files('${PREFIX}/share/sounds/aubio/',210 bld.install_files('${PREFIX}/share/sounds/aubio/', 215 211 'sounds/woodblock.aiff') 216 217 # build and run the unit tests 218 build_tests(ctx) 219 220 def shutdown(ctx): 221 pass 222 223 # loop over all *.c filenames in tests/src to build them all 224 # target name is filename.c without the .c 225 def build_tests(ctx): 226 for target_name in ctx.path.ant_glob('tests/src/**/*.c'): 227 uselib = [] 228 includes = ['src'] 229 extra_source = [] 230 if str(target_name).endswith('-jack.c') and ctx.env['JACK']: 231 uselib += ['JACK'] 232 includes += ['examples'] 233 extra_source += ['examples/jackio.c'] 234 235 this_target = ctx.new_task_gen( 236 features = 'c cprogram test', 237 uselib = uselib, 238 source = [target_name] + extra_source, 239 target = str(target_name).split('.')[0], 240 includes = includes, 241 defines = 'AUBIO_UNSTABLE_API=1', 242 cflags = ['-g'], 243 use = 'aubio') 212 """
Note: See TracChangeset
for help on using the changeset viewer.