Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 35 lines (26 sloc) 0.802 kb
ff588a4 @TTimo get the basics of a new scons build system together
authored
1 # -*- mode: python -*-
a6cd679 @TTimo misc
authored
2 # GtkRadiant build scripts
3 # TTimo <ttimo@ttimo.net>
4 # http://scons.org/
ff588a4 @TTimo get the basics of a new scons build system together
authored
5
6 import os
7
8 Import( [ 'utils', 'config', 'settings', 'project' ] )
9
10 ( libpath, libname ) = os.path.split( project )
11 libname = os.path.splitext( libname )[0]
12
13 env = Environment()
4189d27 @TTimo some updates to the Linux build system - obtained a core binary and a…
authored
14 settings.SetupEnvironment( env, config['name'] )
ff588a4 @TTimo get the basics of a new scons build system together
authored
15 proj = utils.vcproj( os.path.join( GetLaunchDir(), project ) )
16
17 # some filtering. may need to improve that
18 add_sources = []
19 ( drop, files ) = proj.filterSource( r'.*l_net_wins\.c' )
20 if ( len( drop ) != 0 ):
21 add_sources.append( 'l_net_berkeley.c' )
22
4189d27 @TTimo some updates to the Linux build system - obtained a core binary and a…
authored
23 emit_func = env.StaticObject
24 try:
25 if ( config['shared'] ):
26 emit_func = env.SharedObject
27 except:
28 pass
29
ff588a4 @TTimo get the basics of a new scons build system together
authored
30 objects = []
31 for i in files + add_sources:
4189d27 @TTimo some updates to the Linux build system - obtained a core binary and a…
authored
32 objects.append( emit_func( os.path.join( libpath, i ) ) )
ff588a4 @TTimo get the basics of a new scons build system together
authored
33
34 Return( 'objects' )
Something went wrong with that request. Please try again.