2007-09-30 19:39:29 +00:00
|
|
|
# -*- mode: python -*-
|
2012-05-28 00:06:21 +00:00
|
|
|
# GtkRadiant build scripts
|
|
|
|
# TTimo <ttimo@ttimo.net>
|
|
|
|
# http://scons.org/
|
2007-09-30 19:39:29 +00:00
|
|
|
|
|
|
|
import os
|
2017-08-30 14:08:45 +00:00
|
|
|
import platform
|
2007-09-30 19:39:29 +00:00
|
|
|
|
|
|
|
Import( [ 'utils', 'config', 'settings', 'lib_objects' ] )
|
|
|
|
|
2013-03-30 14:24:40 +00:00
|
|
|
env = Environment( ENV = os.environ )
|
2008-01-02 04:47:59 +00:00
|
|
|
settings.SetupEnvironment( env, config[ 'name' ], useGtk = True, useGtkGL = True )
|
2017-08-30 14:08:45 +00:00
|
|
|
|
|
|
|
if ( platform.system() != 'FreeBSD' ):
|
|
|
|
env.Append( LIBS = [ 'dl' ] )
|
|
|
|
|
2017-01-01 15:07:33 +00:00
|
|
|
proj = utils.vcxproj( os.path.join( GetLaunchDir(), 'radiant/radiant.vcxproj' ) )
|
2007-09-30 19:39:29 +00:00
|
|
|
|
2007-10-24 04:00:48 +00:00
|
|
|
radiant = env.Program( 'radiant.bin', lib_objects + [ os.path.join( 'radiant', i ) for i in proj.getSourceFiles() ] )
|
|
|
|
|
|
|
|
Return( 'radiant' )
|
|
|
|
|
2007-09-30 19:39:29 +00:00
|
|
|
|