diff options
author | Joerg Mueller <nexyon@gmail.com> | 2010-02-18 18:59:20 +0300 |
---|---|---|
committer | Joerg Mueller <nexyon@gmail.com> | 2010-02-18 18:59:20 +0300 |
commit | b896a007ea2475e0b81985d996c75e1204d70137 (patch) | |
tree | 55634c085b01f3991c10f48c3cd27bcd35309ebe /SConstruct | |
parent | 007374170b46c3f677b3c39d1af9736f497d5811 (diff) |
Scons fixes:
- Removing alut
- Minor changes in linux ffmpeg default config.
Diffstat (limited to 'SConstruct')
-rw-r--r-- | SConstruct | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/SConstruct b/SConstruct index aa151e4e04c..6c404784ab0 100644 --- a/SConstruct +++ b/SConstruct @@ -244,40 +244,6 @@ if env.has_key('BF_DEBUG_LIBS'): printdebug = B.arguments.get('BF_LISTDEBUG', 0) -# see if this linux distro has libalut - -if env['OURPLATFORM'] == 'linux2' : - if env['WITH_BF_OPENAL']: - mylib_test_source_file = """ - #include "AL/alut.h" - int main(int argc, char **argv) - { - alutGetMajorVersion(); - return 0; - } - """ - - def CheckFreeAlut(context,env): - context.Message( B.bc.OKGREEN + "Linux platform detected:\n checking for FreeAlut... " + B.bc.ENDC ) - env['LIBS'] = 'alut' - result = context.TryLink(mylib_test_source_file, '.c') - context.Result(result) - return result - - env2 = env.Clone( LIBPATH = env['BF_OPENAL'] ) - sconf_temp = mkdtemp() - conf = Configure( env2, {'CheckFreeAlut' : CheckFreeAlut}, sconf_temp, '/dev/null' ) - if conf.CheckFreeAlut( env2 ): - env['BF_OPENAL_LIB'] += ' alut' - del env2 - root = '' - for root, dirs, files in os.walk(sconf_temp, topdown=False): - for name in files: - os.remove(os.path.join(root, name)) - for name in dirs: - os.rmdir(os.path.join(root, name)) - if root: os.rmdir(root) - if len(B.quickdebug) > 0 and printdebug != 0: print B.bc.OKGREEN + "Buildings these libs with debug symbols:" + B.bc.ENDC for l in B.quickdebug: |