Changeset fb5838a


Ignore:
Timestamp:
Feb 16, 2016, 3:44:20 PM (9 years ago)
Author:
Paul Brossier <piem@piem.org>
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:
d21a4b1
Parents:
d897aae
Message:

wscript, src/wscript_build: new build platform emscripten

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • src/wscript_build

    rd897aae rfb5838a  
    2525elif ctx.env['DEST_OS'] in ['win32', 'win64']:
    2626    build_features = ['cshlib']
     27elif ctx.env['DEST_OS'] in ['emscripten']:
     28    build_features = ['cstlib']
    2729else: #linux, darwin, android, mingw, ...
    2830    build_features = ['cshlib', 'cstlib']
  • wscript

    rd897aae rfb5838a  
    164164        ctx.env.LINKFLAGS += [ '-isysroot' , SDKROOT]
    165165
     166    if target_platform == 'emscripten':
     167        import os.path
     168        ctx.env.CFLAGS += [ '-I' + os.path.join(os.environ['EMSCRIPTEN'], 'system', 'include') ]
     169        ctx.env.CFLAGS += ['-Oz']
     170        ctx.env.cprogram_PATTERN = "%s.js"
     171        if (ctx.options.enable_atlas != True):
     172            ctx.options.enable_atlas = False
     173
    166174    # check for required headers
    167175    ctx.check(header_name='stdlib.h')
Note: See TracChangeset for help on using the changeset viewer.