Changeset 06dba46
- Timestamp:
- Dec 10, 2013, 2:39:47 PM (11 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:
- df5eab4
- Parents:
- a7343ffe
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
src/wscript_build
ra7343ffe r06dba46 22 22 if ctx.env['DEST_OS'] in ['ios', 'iosimulator']: 23 23 build_features = ['cstlib'] 24 elif ctx.env['DEST_OS'] in ['win32', 'win64']: 25 build_features = ['cshlib'] 24 26 else: #linux, darwin, android, mingw, ... 25 27 build_features = ['cshlib', 'cstlib'] -
tests/utils_tests.h
ra7343ffe r06dba46 4 4 #include <math.h> 5 5 #include <assert.h> 6 #include "config.h" 6 7 7 8 #define PRINT_ERR(format, args...) fprintf(stderr, "AUBIO-TESTS ERROR: " format , ##args) … … 9 10 #define PRINT_DBG(format, args...) fprintf(stderr, format , ##args) 10 11 #define PRINT_WRN(format, args...) fprintf(stderr, "AUBIO-TESTS WARNING: " format, ##args) 12 13 #ifdef HAVE_WIN_HACKS 14 // http://en.wikipedia.org/wiki/Linear_congruential_generator 15 // no srandom/random on win32 16 17 uint_t srandom_seed = 1029; 18 19 void srandom(uint_t new_seed) { 20 srandom_seed = new_seed; 21 } 22 23 uint_t random(void) { 24 srandom_seed = 1664525 * srandom_seed + 1013904223; 25 return srandom_seed; 26 } 27 #endif 11 28 12 29 void utils_init_random () { -
wscript
ra7343ffe r06dba46 85 85 ctx.load('waf_unit_test') 86 86 ctx.load('gnu_dirs') 87 ctx.env.CFLAGS += ['-g', '-Wall', '-Wextra', '-fPIC'] 87 88 ctx.env.CFLAGS += ['-g', '-Wall', '-Wextra'] 88 89 89 90 target_platform = Options.platform … … 92 93 ctx.env['DEST_OS'] = target_platform 93 94 94 if target_platform == 'win32': 95 ctx.env['shlib_PATTERN'] = 'lib%s.dll' 95 if target_platform not in ['win32', 'win64']: 96 ctx.env.CFLAGS += ['-fPIC'] 97 else: 98 ctx.define('HAVE_WIN_HACKS', 1) 99 ctx.env['cshlib_PATTERN'] = 'lib%s.dll' 96 100 97 101 if target_platform == 'darwin':
Note: See TracChangeset
for help on using the changeset viewer.