Changeset 06dba46


Ignore:
Timestamp:
Dec 10, 2013, 2:39:47 PM (7 years ago)
Author:
Paul Brossier <piem@piem.org>
Branches:
feature/autosink, feature/constantq, feature/pitchshift, feature/pydocstrings, feature/timestretch, master, pitchshift, sampler, timestretch, yinfft+
Children:
df5eab4
Parents:
a7343ffe
Message:

wscript: small tweaks to with mingw32

Signed-off-by: Paul Brossier <piem@piem.org>

Files:
3 edited

Legend:

Unmodified
Added
Removed
  • src/wscript_build

    ra7343ffe r06dba46  
    2222if ctx.env['DEST_OS'] in ['ios', 'iosimulator']:
    2323    build_features = ['cstlib']
     24elif ctx.env['DEST_OS'] in ['win32', 'win64']:
     25    build_features = ['cshlib']
    2426else: #linux, darwin, android, mingw, ...
    2527    build_features = ['cshlib', 'cstlib']
  • tests/utils_tests.h

    ra7343ffe r06dba46  
    44#include <math.h>
    55#include <assert.h>
     6#include "config.h"
    67
    78#define PRINT_ERR(format, args...)   fprintf(stderr, "AUBIO-TESTS ERROR: " format , ##args)
     
    910#define PRINT_DBG(format, args...)   fprintf(stderr, format , ##args)
    1011#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
     17uint_t srandom_seed = 1029;
     18
     19void srandom(uint_t new_seed) {
     20    srandom_seed = new_seed;
     21}
     22
     23uint_t random(void) {
     24    srandom_seed = 1664525 * srandom_seed + 1013904223;
     25    return srandom_seed;
     26}
     27#endif
    1128
    1229void utils_init_random () {
  • wscript

    ra7343ffe r06dba46  
    8585    ctx.load('waf_unit_test')
    8686    ctx.load('gnu_dirs')
    87     ctx.env.CFLAGS += ['-g', '-Wall', '-Wextra', '-fPIC']
     87
     88    ctx.env.CFLAGS += ['-g', '-Wall', '-Wextra']
    8889
    8990    target_platform = Options.platform
     
    9293    ctx.env['DEST_OS'] = target_platform
    9394
    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'
    96100
    97101    if target_platform == 'darwin':
Note: See TracChangeset for help on using the changeset viewer.