2008-01-02 04:47:59 +00:00
|
|
|
# -*- mode: python -*-
|
2012-05-28 00:06:21 +00:00
|
|
|
# GtkRadiant build scripts
|
|
|
|
# TTimo <ttimo@ttimo.net>
|
|
|
|
# http://scons.org/
|
2008-01-02 04:47:59 +00:00
|
|
|
|
|
|
|
import os
|
2023-04-17 16:13:50 +00:00
|
|
|
import platform
|
2008-01-02 04:47:59 +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'] )
|
|
|
|
env.Prepend( CPPPATH = [ '#tools/quake3/common' ] )
|
2023-04-17 16:13:50 +00:00
|
|
|
if platform.system() == "NetBSD":
|
|
|
|
env.Append( LIBS = [ 'm', 'pthread', 'jpeg', 'png16' ] )
|
|
|
|
else:
|
|
|
|
env.Append( LIBS = [ 'm', 'pthread', 'jpeg', 'png' ] )
|
2017-01-01 15:07:33 +00:00
|
|
|
proj = utils.vcxproj( os.path.join( GetLaunchDir(), 'tools/quake3/q3map2/q3map2.vcxproj' ) )
|
2008-01-02 04:47:59 +00:00
|
|
|
objects = lib_objects
|
|
|
|
objects += [ os.path.join( 'tools/quake3/q3map2', i ) for i in proj.getSourceFiles() ]
|
2008-03-02 23:36:20 +00:00
|
|
|
q3map2 = env.Program( 'q3map2', objects )
|
2008-01-02 04:47:59 +00:00
|
|
|
|
|
|
|
Return( 'q3map2' )
|