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 )
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 #env.StaticLibrary( libname, [ os.path.join( libpath, i ) for i in files ] )
25 for i in files + add_sources:
26 objects.append( env.StaticObject( os.path.join( libpath, i ) ) )