got it building

This commit is contained in:
Timothee 'TTimo' Besset 2012-05-27 22:26:10 -05:00
parent a87fcf9899
commit fd9836715c
2 changed files with 32 additions and 2 deletions

26
SConscript.q3map2.urt Normal file
View file

@ -0,0 +1,26 @@
# -*- 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/urt/tools/quake3/common', '#tools/urt/libs' ] )
env.Append( LIBS = [ 'm', 'pthread', 'png', 'jpeg' ] )
proj = utils.vcproj( os.path.join( GetLaunchDir(), 'tools/urt/tools/quake3/q3map2/q3map2.vcproj' ) )
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' )

View file

@ -164,8 +164,12 @@ class Config:
Export( 'project' ) Export( 'project' )
lib_objects += SConscript( os.path.join( build_dir, 'SConscript.lib' ) ) lib_objects += SConscript( os.path.join( build_dir, 'SConscript.lib' ) )
Export( 'lib_objects' ) Export( 'lib_objects' )
q3map2 = SConscript( os.path.join( build_dir, 'SConscript.q3map2' ) )
Default( InstallAs( os.path.join( self.install_directory, 'q3map2' ), q3map2 ) ) # q3map2 = SConscript( os.path.join( build_dir, 'SConscript.q3map2' ) )
# Default( InstallAs( os.path.join( self.install_directory, 'q3map2' ), q3map2 ) )
q3map2_urt = SConscript( os.path.join( build_dir, 'SConscript.q3map2.urt' ) )
Default( InstallAs( os.path.join( self.install_directory, 'q3map2.urt' ), q3map2_urt ) )
def emit( self ): def emit( self ):