Changeset 46378b3
- Timestamp:
- Sep 26, 2011, 8:21:00 AM (13 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:
- 2a6e672
- Parents:
- 20ae690
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
examples/wscript_build
r20ae690 r46378b3 1 1 # build examples 2 sndfileio = bld.new_task_gen(features = 'c', 3 includes = '../src', 4 source = ['sndfileio.c'], 5 target = 'sndfileio') 6 7 utilsio = bld.new_task_gen(features = 'c', 8 includes = '../src', 9 add_objects = 'sndfileio', 10 source = ['utils.c', 'jackio.c'], 11 uselib = ['LASH', 'JACK', 'SNDFILE'], 12 target = 'utilsio') 2 13 3 14 # loop over all *.c filenames in examples to build them all 4 for target_name in bld.path.ant_glob('*.c').split(): 5 # ignore utils.c 6 if target_name in ['utils.c', 'jackio.c', 'sndfileio.c']: continue 7 bld.new_task_gen(features = 'cc cprogram', 15 for target_name in bld.path.ant_glob('*.c', excl = ['utils.c', 'jackio.c', 'sndfileio.c']): 16 bld.new_task_gen(features = 'c cprogram', 8 17 add_objects = 'utilsio', 9 18 includes = '../src', 10 19 uselib = ['LASH', 'JACK', 'SNDFILE'], 11 use lib_local= ['aubio'],20 use = ['aubio'], 12 21 source = target_name, 13 22 # program name is filename.c without the .c 14 target = target_name.split('.')[0])23 target = str(target_name).split('.')[0]) -
python/aubio/wscript_build
r20ae690 r46378b3 4 4 add_objects = 'sndfileio', 5 5 target = '_aubiowrapper', 6 use lib_local= ['aubio'],6 use = ['aubio'], 7 7 uselib = ['SNDFILE'], 8 8 swig_flags = '-python -Wall', -
src/wscript_build
r20ae690 r46378b3 1 1 # build libaubio 2 2 libaubio = bld.new_task_gen( 3 features = 'c ccshlib',3 features = 'c cshlib', 4 4 includes = ['.'], 5 5 source = bld.path.ant_glob('*.c **/*.c'), … … 9 9 10 10 # install headers, except _priv.h ones 11 for file in bld.path.ant_glob('**/*.h').split(): 12 if '_priv.h' in file or file == 'config.h': continue 13 bld.install_as('${PREFIX}/include/aubio/' + file, file) 11 bld.install_files('${PREFIX}/include/aubio/', 12 bld.path.ant_glob('**/*.h', 13 exclude = ['_priv.h', 'config.h']), 14 relative_trick=True) -
wscript
r20ae690 r46378b3 15 15 VERSION = '0.3.3' 16 16 LIB_VERSION = '2.1.1' 17 srcdir= '.'18 blddir= 'build'17 top = '.' 18 out = 'build' 19 19 20 20 def init(opt): 21 21 pass 22 22 23 def set_options(opt):23 def options(opt): 24 24 opt.add_option('--enable-double', action='store_true', default=False, 25 25 help='compile aubio in double precision mode') … … 28 28 opt.add_option('--enable-complex', action='store_true', default=False, 29 29 help='compile with C99 complex') 30 opt.add_option('-- disable-jack', action='store_true', default=False,30 opt.add_option('--enable-jack', action='store_true', default=False, 31 31 help='compile without jack support') 32 opt.add_option('-- disable-lash', action='store_true', default=False,32 opt.add_option('--enable-lash', action='store_true', default=False, 33 33 help='compile without lash support') 34 opt.add_option('-- disable-libsamplerate', action='store_true', default=False,34 opt.add_option('--enable-libsamplerate', action='store_true', default=False, 35 35 help='compile without libsamplerate support') 36 36 opt.add_option('--with-target-platform', type='string', 37 37 help='set target platform for cross-compilation', dest='target_platform') 38 opt. tool_options('compiler_cc')39 opt. tool_options('compiler_cxx')40 opt. tool_options('gnu_dirs')41 opt. tool_options('UnitTest')38 opt.load('compiler_cc') 39 opt.load('compiler_cxx') 40 opt.load('gnu_dirs') 41 opt.load('waf_unit_test') 42 42 43 43 def configure(conf): … … 47 47 conf.check_tool('gnu_dirs') # helpful for autotools transition and .pc generation 48 48 conf.check_tool('misc') # needed for subst 49 conf.load('waf_unit_test') 49 50 50 51 if Options.options.target_platform: … … 68 69 conf.check_cfg(package = 'sndfile', atleast_version = '1.0.4', 69 70 args = '--cflags --libs') 70 if (Options.options. disable_libsamplerate == False):71 conf.check_cfg(package = ' libsamplerate', atleast_version = '0.0.15',71 if (Options.options.enable_libsamplerate == True): 72 conf.check_cfg(package = 'samplerate', atleast_version = '0.0.15', 72 73 args = '--cflags --libs') 73 74 … … 92 93 93 94 # optional dependancies 94 if (Options.options. disable_jack == False):95 if (Options.options.enable_jack == True): 95 96 conf.check_cfg(package = 'jack', atleast_version = '0.15.0', 96 97 args = '--cflags --libs') 97 if (Options.options. disable_lash == False):98 if (Options.options.enable_lash == True): 98 99 conf.check_cfg(package = 'lash-1.0', atleast_version = '0.5.0', 99 100 args = '--cflags --libs', uselib_store = 'LASH') 100 101 101 102 # swig 102 if conf.find_program('swig', var='SWIG', mandatory = False):103 if 0: #conf.find_program('swig', var='SWIG', mandatory = False): 103 104 conf.check_tool('swig', tooldir='swig') 104 105 conf.check_swig_version('1.3.27') … … 116 117 ''' 117 118 if conf.check_cc(fragment = check_c99_varargs, 118 type='cst aticlib',119 type='cstlib', 119 120 msg = 'Checking for C99 __VA_ARGS__ macro'): 120 121 conf.define('HAVE_C99_VARARGS_MACROS', 1) … … 133 134 bld.env['VERSION'] = VERSION 134 135 bld.env['LIB_VERSION'] = LIB_VERSION 135 136 build_extras(bld)137 136 138 137 # add sub directories … … 168 167 # build and run the unit tests 169 168 build_tests(bld) 170 import UnitTest171 bld.add_post_fun(UnitTest.summary)172 169 173 170 def shutdown(bld): … … 177 174 # target name is filename.c without the .c 178 175 def build_tests(bld): 179 for target_name in bld.path.ant_glob('tests/src/**/*.c') .split():176 for target_name in bld.path.ant_glob('tests/src/**/*.c'): 180 177 this_target = bld.new_task_gen( 181 features = 'c ccprogram test',178 features = 'c cprogram test', 182 179 source = target_name, 183 target = target_name.split('.')[0],180 target = str(target_name).split('.')[0], 184 181 includes = 'src', 185 182 defines = 'AUBIO_UNSTABLE_API=1', 186 use lib_local= 'aubio')183 use = 'aubio') 187 184 # phasevoc-jack also needs jack 188 if target_name.endswith('test-phasevoc-jack.c'):185 if str(target_name).endswith('test-phasevoc-jack.c'): 189 186 this_target.includes = ['src', 'examples'] 190 this_target.use lib_local= ['aubio']187 this_target.use = ['aubio'] 191 188 this_target.uselib = ['JACK'] 192 this_target.source += ' examples/jackio.c' 193 194 def build_extras(bld): 195 # corner cases to build these ones only once 196 sndfileio = bld.new_task_gen(features = 'cc', 197 includes = 'examples src', 198 source = ['examples/sndfileio.c'], 199 target = 'sndfileio') 200 201 defines = ['AUBIO_PREFIX="' + bld.env['AUBIO_PREFIX'] + '"'] 202 defines += ['PACKAGE="' + bld.env['PACKAGE'] + '"'] 203 204 utilsio = bld.new_task_gen(features = 'cc', 205 includes = 'examples src', 206 add_objects = 'sndfileio', 207 source = ['examples/utils.c', 'examples/jackio.c'], 208 uselib = ['LASH', 'JACK', 'SNDFILE'], 209 defines = defines, 210 target = 'utilsio') 189 this_target.target += ' examples/jackio.c'
Note: See TracChangeset
for help on using the changeset viewer.