gtkradiant/SConscript.q3map2.urt

27 lines
892 B
Plaintext
Raw Normal View History

2012-05-28 03:26:10 +00:00
# -*- mode: python -*-
# GtkRadiant build scripts
# TTimo <ttimo@ttimo.net>
# http://scons.org/
import os
Import( [ 'utils', 'config', 'settings', 'lib_objects' ] )
env = Environment()
settings.SetupEnvironment( env, config['name'] )
env.Prepend( CPPPATH = [ '#tools/quake3/common', ] )
2012-05-28 03:26:10 +00:00
env.Append( LIBS = [ 'm', 'pthread', 'png', 'jpeg' ] )
2012-07-07 22:39:27 +00:00
proj = utils.vcproj( os.path.join( GetLaunchDir(), 'tools/urt/tools/quake3/q3map2/q3map2_urt.vcproj' ) )
2012-05-28 03:26:10 +00:00
objects = lib_objects
def keep_file( n ):
for skip in [ 'cmdlib.c', 'imagelib.c', 'inout.c', 'vfs.c', 'mutex.c', 'polylib.c', 'scriplib.c', 'threads.c', 'unzip.c' ]:
if ( n.find( skip ) != -1 ):
return False
return True
objects += filter( keep_file, [ os.path.join( 'tools/urt/tools/quake3/q3map2', i ) for i in proj.getSourceFiles() ] )
q3map2_urt = env.Program( 'q3map2_urt', objects )
Return( 'q3map2_urt' )