-
Notifications
You must be signed in to change notification settings - Fork 155
/
SConscript.q3map2.urt
30 lines (24 loc) · 1.01 KB
/
SConscript.q3map2.urt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# -*- mode: python -*-
# GtkRadiant build scripts
# TTimo <ttimo@ttimo.net>
# http://scons.org/
import os
import platform
Import( [ 'utils', 'config', 'settings', 'lib_objects' ] )
env = Environment( ENV = os.environ )
settings.SetupEnvironment( env, config['name'] )
env.Prepend( CPPPATH = [ '#tools/quake3/common', ] )
if platform.system() == "NetBSD":
env.Append( LIBS = [ 'm', 'pthread', 'jpeg', 'png16' ] )
else:
env.Append( LIBS = [ 'm', 'pthread', 'jpeg', 'png' ] )
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' )