2012-12-17 08:01:43 +00:00
|
|
|
#!/usr/bin/env python
|
|
|
|
#
|
|
|
|
# ***** BEGIN LGPL LICENSE BLOCK *****
|
|
|
|
#
|
|
|
|
# Copyright 2009 Jrg Hermann Mller
|
|
|
|
#
|
|
|
|
# This file is part of AudaSpace.
|
|
|
|
#
|
|
|
|
# AudaSpace is free software: you can redistribute it and/or modify
|
|
|
|
# it under the terms of the GNU Lesser General Public License as published by
|
|
|
|
# the Free Software Foundation, either version 3 of the License, or
|
|
|
|
# (at your option) any later version.
|
|
|
|
#
|
|
|
|
# AudaSpace is distributed in the hope that it will be useful,
|
|
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
# GNU Lesser General Public License for more details.
|
|
|
|
#
|
|
|
|
# You should have received a copy of the GNU Lesser General Public License
|
|
|
|
# along with AudaSpace. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
#
|
|
|
|
# ***** END LGPL LICENSE BLOCK *****
|
2009-08-09 21:16:39 +00:00
|
|
|
|
|
|
|
Import ('env')
|
|
|
|
|
2011-10-02 18:08:16 +00:00
|
|
|
sources = env.Glob('intern/*.cpp') + env.Glob('FX/*.cpp')
|
2012-11-05 14:24:35 +00:00
|
|
|
incs = '. intern FX ' + env['BF_PTHREADS_INC'] + ' ' + env['BF_BOOST_INC']
|
2009-08-09 21:16:39 +00:00
|
|
|
defs = []
|
|
|
|
|
|
|
|
if env['WITH_BF_FFMPEG']:
|
2010-08-29 20:52:05 +00:00
|
|
|
sources += env.Glob('ffmpeg/*.cpp')
|
2011-05-27 23:33:40 +00:00
|
|
|
incs += ' ffmpeg #/intern/ffmpeg ' + env['BF_FFMPEG_INC']
|
2010-08-29 20:52:05 +00:00
|
|
|
defs.append('WITH_FFMPEG')
|
2009-08-09 21:16:39 +00:00
|
|
|
|
|
|
|
if env['WITH_BF_SDL']:
|
2010-08-29 20:52:05 +00:00
|
|
|
sources += env.Glob('SDL/*.cpp')
|
|
|
|
incs += ' SDL ' + env['BF_SDL_INC']
|
|
|
|
defs.append('WITH_SDL')
|
2009-08-09 21:16:39 +00:00
|
|
|
|
|
|
|
if env['WITH_BF_OPENAL']:
|
2010-08-29 20:52:05 +00:00
|
|
|
sources += env.Glob('OpenAL/*.cpp')
|
|
|
|
incs += ' OpenAL ' + env['BF_OPENAL_INC']
|
|
|
|
defs.append('WITH_OPENAL')
|
2009-08-09 21:16:39 +00:00
|
|
|
|
2009-08-17 01:16:50 +00:00
|
|
|
if env['WITH_BF_JACK']:
|
2010-08-29 20:52:05 +00:00
|
|
|
sources += env.Glob('jack/*.cpp')
|
|
|
|
incs += ' jack ' + env['BF_JACK_INC']
|
|
|
|
defs.append('WITH_JACK')
|
2013-03-27 07:19:54 +00:00
|
|
|
if env['WITH_BF_JACK_DYNLOAD']:
|
|
|
|
defs.append('WITH_JACK_DYNLOAD')
|
2009-08-17 01:16:50 +00:00
|
|
|
|
2009-08-25 10:56:01 +00:00
|
|
|
if env['WITH_BF_SNDFILE']:
|
2010-08-29 20:52:05 +00:00
|
|
|
sources += env.Glob('sndfile/*.cpp')
|
|
|
|
incs += ' sndfile ' + env['BF_SNDFILE_INC']
|
|
|
|
defs.append('WITH_SNDFILE')
|
2009-08-25 10:56:01 +00:00
|
|
|
|
2010-08-16 12:27:51 +00:00
|
|
|
#if env['WITH_BF_FFTW3']:
|
2010-08-29 20:52:05 +00:00
|
|
|
# sources += env.Glob('fftw/*.cpp')
|
|
|
|
# incs += ' fftw ' + env['BF_FFTW3_INC']
|
|
|
|
# defs.append('WITH_FFTW3')
|
2009-12-28 10:15:35 +00:00
|
|
|
|
2010-07-09 12:35:40 +00:00
|
|
|
if env['WITH_BF_PYTHON']:
|
2010-08-29 20:52:05 +00:00
|
|
|
sources += env.Glob('Python/*.cpp')
|
|
|
|
incs += ' Python ' + env['BF_PYTHON_INC']
|
2010-10-31 04:11:39 +00:00
|
|
|
defs.append('WITH_PYTHON')
|
2010-07-09 12:35:40 +00:00
|
|
|
|
2012-04-24 12:57:58 +00:00
|
|
|
if env['OURPLATFORM'] in ('win32-vc', 'win32-mingw', 'linuxcross', 'win64-vc', 'win64-mingw'):
|
2010-01-07 03:13:26 +00:00
|
|
|
incs += ' ' + env['BF_PTHREADS_INC']
|
|
|
|
|
2010-08-25 04:30:47 +00:00
|
|
|
env.BlenderLib ('bf_intern_audaspace', sources, Split(incs), defs, libtype=['intern','player'], priority = [25,215] )
|