gtkradiant/SConscript.q3map2.urt
Timothee 'TTimo' Besset 503930527f convert to python 3
2021-04-25 15:30:41 -05:00

26 lines
918 B
Python

# -*- mode: python -*-
# GtkRadiant build scripts
# TTimo <ttimo@ttimo.net>
# http://scons.org/
import os
Import( [ 'utils', 'config', 'settings', 'lib_objects' ] )
env = Environment( ENV = os.environ )
settings.SetupEnvironment( env, config['name'] )
env.Prepend( CPPPATH = [ '#tools/quake3/common', ] )
env.Append( LIBS = [ 'm', 'pthread', 'png', 'jpeg' ] )
proj = utils.vcxproj( os.path.join( GetLaunchDir(), 'tools/urt/tools/quake3/q3map2/q3map2_urt.vcxproj' ) )
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 += list(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' )