2 # ZeroRadiant build scripts
3 # TTimo <ttimo@idsoftware.com>
4 # http://scons.sourceforge.net
8 Import( [ 'utils', 'config', 'settings', 'project', 'shlib_objects' ] )
10 ( libpath, libname ) = os.path.split( project )
11 libname = os.path.splitext( libname )[0]
18 # if ( libname == 'image' ):
20 # if ( libname == 'surface' ):
22 # if ( libname == 'surface_ufoai' ):
24 # if ( libname == 'surface_quake2' ):
26 # if ( libname == 'surface_heretic2' ):
28 # if ( libname == 'bkgrnd2d' ):
30 # if ( libname == 'gtkgensurf' ):
32 # if ( libname == 'bobtoolz' ):
34 # if ( libname == 'camera' ):
36 # if ( libname == 'prtview' ):
38 # if ( libname == 'spritemodel' ):
40 # if ( libname == 'model' ):
42 # if ( libname == 'textool' ):
44 # if ( libname == 'imagepng' ):
52 settings.SetupEnvironment( env, config['name'], useGtk = useGtk, useJPEG = useJPEG, useZ = useZ, usePNG = usePNG )
53 proj = utils.vcproj( os.path.join( GetLaunchDir(), project ) )
55 # some filtering. may need to improve that
57 ( drop, files ) = proj.filterSource( r'.*l_net_wins\.c' )
58 if ( len( drop ) != 0 ):
59 add_sources.append( 'l_net_berkeley.c' )
61 module_base = env.SharedLibrary( os.path.join( 'modules', libname ), shlib_objects + [ os.path.join( libpath, i ) for i in files ] )
62 module = env.AddPostAction( module_base, utils.CheckUnresolved )