Changeset fb5838a for wscript


Ignore:
Timestamp:
Feb 16, 2016, 3:44:20 PM (8 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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.