mirror of
https://github.com/TTimo/GtkRadiant.git
synced 2025-02-10 18:31:11 +00:00
58a263dbe4
TODO: - Handle the case "Model not found". - Add relevant console prints. - Fix glitchy-looking selected box. Alignments in code. More texture suffix checks for DarkPlaces effect texture names. PicoModel Backport: Fixed compilation. Update .gitignore Added more exclusions, most of them Windows/Visual Studio related. Aligment. Fix compilation on OS X. How is this working elsewhere? This generates a different warning now, and is just wrong anyway. Fix a handful of compiler warnings. Fix for potentially using uninitialized variable Fix gcc warning shdr may be used uninitialized Fix gcc warning i may be used uninitialized tweak previous pull with an assert remove unused tex_palette Fix gcc warning item may be used uninitialized in this function read source file lists from .vcxproj files for SCons build remove the old .vcproj m4_submat modification Fix gcc warning sizeof on array function parameter src will return size of float (*)[3] Rollback on alignments.
34 lines
821 B
Python
34 lines
821 B
Python
# -*- mode: python -*-
|
|
# GtkRadiant build scripts
|
|
# TTimo <ttimo@ttimo.net>
|
|
# http://scons.org/
|
|
|
|
import os
|
|
|
|
Import( [ 'utils', 'config', 'settings', 'project' ] )
|
|
|
|
( libpath, libname ) = os.path.split( project )
|
|
libname = os.path.splitext( libname )[0]
|
|
|
|
env = Environment( ENV = os.environ )
|
|
settings.SetupEnvironment( env, config['name'] )
|
|
proj = utils.vcxproj( os.path.join( GetLaunchDir(), project ) )
|
|
|
|
# some filtering. may need to improve that
|
|
add_sources = []
|
|
( drop, files ) = proj.filterSource( r'.*l_net_wins\.c' )
|
|
if ( len( drop ) != 0 ):
|
|
add_sources.append( 'l_net_berkeley.c' )
|
|
|
|
emit_func = env.StaticObject
|
|
try:
|
|
if ( config['shared'] ):
|
|
emit_func = env.SharedObject
|
|
except:
|
|
pass
|
|
|
|
objects = []
|
|
for i in files + add_sources:
|
|
objects.append( emit_func( os.path.join( libpath, i ) ) )
|
|
|
|
Return( 'objects' )
|