2 # ZeroRadiant build scripts
3 # TTimo <ttimo@idsoftware.com>
4 # http://scons.sourceforge.net
8 Import( [ 'utils', 'config', 'settings', 'project' ] )
10 ( libpath, libname ) = os.path.split( project )
11 libname = os.path.splitext( libname )[0]
14 settings.SetupEnvironment( env, config['name'] )
15 proj = utils.vcproj( os.path.join( GetLaunchDir(), project ) )
17 # some filtering. may need to improve that
19 ( drop, files ) = proj.filterSource( r'.*l_net_wins\.c' )
20 if ( len( drop ) != 0 ):
21 add_sources.append( 'l_net_berkeley.c' )
23 emit_func = env.StaticObject
25 if ( config['shared'] ):
26 emit_func = env.SharedObject
31 for i in files + add_sources:
32 objects.append( emit_func( os.path.join( libpath, i ) ) )