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_gtk' ):
34 if ( libname == 'camera' ):
36 if ( libname == 'PrtView' ):
38 if ( libname == 'spritemodel' ):
40 if ( libname == 'model' ):
42 if ( libname == 'TexTool' ):
44 if ( libname == 'imagepng' ):
48 settings.SetupEnvironment( env, config['name'], useGtk = useGtk, useJPEG = useJPEG, useZ = useZ, usePNG = usePNG )
49 proj = utils.vcproj( os.path.join( GetLaunchDir(), project ) )
51 # some filtering. may need to improve that
53 ( drop, files ) = proj.filterSource( r'.*l_net_wins\.c' )
54 if ( len( drop ) != 0 ):
55 add_sources.append( 'l_net_berkeley.c' )
57 module_base = env.SharedLibrary( os.path.join( 'modules', libname ), shlib_objects + [ os.path.join( libpath, i ) for i in files ] )
58 module = env.AddPostAction( module_base, utils.CheckUnresolved )