2009-08-09 21:16:39 +00:00
|
|
|
#!/usr/bin/python
|
|
|
|
|
|
|
|
Import ('env')
|
|
|
|
|
|
|
|
sources = env.Glob('intern/*.cpp') + env.Glob('FX/*.cpp') + env.Glob('SRC/*.cpp')
|
|
|
|
incs = '. intern FX SRC ' + env['BF_PTHREADS_INC'] + ' ' + env['BF_LIBSAMPLERATE_INC']
|
|
|
|
defs = []
|
|
|
|
|
|
|
|
if env['WITH_BF_FFMPEG']:
|
|
|
|
sources += env.Glob('ffmpeg/*.cpp')
|
|
|
|
incs += ' ffmpeg ' + env['BF_FFMPEG_INC']
|
|
|
|
defs.append('WITH_FFMPEG')
|
|
|
|
|
|
|
|
if env['WITH_BF_SDL']:
|
|
|
|
sources += env.Glob('SDL/*.cpp')
|
|
|
|
incs += ' SDL ' + env['BF_SDL_INC']
|
|
|
|
defs.append('WITH_SDL')
|
|
|
|
|
|
|
|
if env['WITH_BF_OPENAL']:
|
|
|
|
sources += env.Glob('OpenAL/*.cpp')
|
|
|
|
incs += ' OpenAL ' + env['BF_OPENAL_INC']
|
|
|
|
defs.append('WITH_OPENAL')
|
|
|
|
|
2009-08-17 01:16:50 +00:00
|
|
|
if env['WITH_BF_JACK']:
|
|
|
|
sources += env.Glob('jack/*.cpp')
|
|
|
|
incs += ' jack ' + env['BF_JACK_INC']
|
|
|
|
defs.append('WITH_JACK')
|
|
|
|
|
2009-08-25 10:56:01 +00:00
|
|
|
if env['WITH_BF_SNDFILE']:
|
|
|
|
sources += env.Glob('sndfile/*.cpp')
|
|
|
|
incs += ' sndfile ' + env['BF_SNDFILE_INC']
|
|
|
|
defs.append('WITH_SNDFILE')
|
|
|
|
|
2009-12-28 10:15:35 +00:00
|
|
|
if env['WITH_BF_FFTW3']:
|
|
|
|
sources += env.Glob('fftw/*.cpp')
|
|
|
|
incs += ' fftw ' + env['BF_FFTW3_INC']
|
|
|
|
defs.append('WITH_FFTW3')
|
|
|
|
|
2010-01-07 03:13:26 +00:00
|
|
|
if env['OURPLATFORM'] in ('win32-vc', 'win32-mingw', 'linuxcross', 'win64-vc'):
|
|
|
|
incs += ' ' + env['BF_PTHREADS_INC']
|
|
|
|
|
2009-09-05 01:58:02 +00:00
|
|
|
env.BlenderLib ('bf_audaspace', sources, Split(incs), defs, libtype=['intern','player'], priority = [25,215] )
|