Changeset 202
- Timestamp:
- 03/04/08 11:01:45 (4 months ago)
- Files:
-
- GtkRadiant/branches/ZeroRadiant/SConscript.module (modified) (2 diffs)
- GtkRadiant/branches/ZeroRadiant/config.py (modified) (14 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
GtkRadiant/branches/ZeroRadiant/SConscript.module
r195 r202 18 18 if ( libname == 'surface' ): 19 19 useGtk = True 20 if ( libname == 'surface_ufoai' ): 21 useGtk = True 20 22 if ( libname == 'surface_quake2' ): 21 23 useGtk = True … … 33 35 useGtk = True 34 36 if ( libname == 'spritemodel' ): 37 useGtk = True 38 if ( libname == 'model' ): 35 39 useGtk = True 36 40 if ( libname == 'TexTool' ): GtkRadiant/branches/ZeroRadiant/config.py
r200 r202 9 9 # aliases are going to be very needed here 10 10 # we have dependency situations too 11 # target = 11 # target = 12 12 13 13 class Config: … … 20 20 # 'all' -> for each choices 21 21 # 'gamecode' for the targets, 'game' 'cgame' 'ui' 22 22 23 23 def __init__( self ): 24 24 # initialize defaults … … 91 91 # PIC versions of the libs for the modules 92 92 shlib_objects_extra = {} 93 for project in [ 'libs/synapse/synapse.vcproj', 'libs/mathlib/mathlib.vcproj', 'libs/ cmdlib/cmdlib.vcproj' ]:93 for project in [ 'libs/synapse/synapse.vcproj', 'libs/mathlib/mathlib.vcproj', 'libs/picomodel/picomodel.vcproj', 'libs/cmdlib/cmdlib.vcproj' ]: 94 94 ( libpath, libname ) = os.path.split( project ) 95 95 libname = os.path.splitext( libname )[0] … … 106 106 'plugins/entity/entity.vcproj', 107 107 'plugins/image/image.vcproj', 108 # FIXME: Fix linker flags - xml2, z 108 'plugins/model/model.vcproj', 109 # FIXME: Fix linker flags - xml2, z 109 110 # 'plugins/imagepng/imagepng.vcproj', 110 111 'plugins/imagewal/imagewal.vcproj', … … 116 117 'plugins/shaders/shaders.vcproj', 117 118 'plugins/surface/surface.vcproj', 119 'plugins/surface_ufoai/surface_ufoai.vcproj', 118 120 'plugins/surface_quake2/surface_quake2.vcproj', 119 121 'plugins/surface_heretic2/surface_heretic2.vcproj', … … 123 125 # FIXME What is this? Empty dir for me - remove me? 124 126 # 'contrib/patches/patches.vcproj', 125 # ' contrib/archivewad/archivewad.vcproj',127 # 'plugins/archivewad/archivewad.vcproj', 126 128 127 129 # FIXME Doesn't compile cleanly … … 137 139 if ( libname == 'entity' ): 138 140 shlib_objects += shlib_objects_extra['mathlib'] 141 elif ( libname == 'model' ): 142 shlib_objects += shlib_objects_extra['picomodel'] 139 143 # elif ( libname == 'spritemodel' ): 140 144 # shlib_objects += shlib_objects_extra['mathlib'] … … 163 167 q3map2 = SConscript( os.path.join( build_dir, 'SConscript.q3map2' ) ) 164 168 self.InstallAs( 'install/q3map2', q3map2 ) 165 169 166 170 167 171 def emit( self ): … … 222 226 if ( useJPEG ): 223 227 env.Append( LIBS = 'jpeg' ) 224 228 225 229 env.Append( CFLAGS = baseflags ) 226 230 env.Append( CXXFLAGS = baseflags + [ '-fpermissive', '-fvisibility-inlines-hidden' ] ) … … 230 234 env.Append( CFLAGS = [ '-g' ] ) 231 235 env.Append( CXXFLAGS = [ '-g' ] ) 232 env.Append( CPPDEFINES = [ '_DEBUG' ] ) 236 env.Append( CPPDEFINES = [ '_DEBUG' ] ) 233 237 else: 234 238 env.Append( CFLAGS = [ '-O3', '-Winline', '-ffast-math', '-fno-unsafe-math-optimizations', '-fno-strict-aliasing' ] ) … … 239 243 240 244 # parse the config statement line to produce/update an existing config list 241 # the configs expose a list of keywords and accepted values, which the engine parses out 245 # the configs expose a list of keywords and accepted values, which the engine parses out 242 246 class ConfigParser: 243 247 def __init__( self ): … … 283 287 while ( len( value_split ) != 0 ): 284 288 value_array.append( value_split.pop() ) 285 value_split.pop() 289 value_split.pop() 286 290 except: 287 291 print traceback.print_exception( sys.exc_type, sys.exc_value, sys.exc_traceback ) … … 289 293 return 290 294 291 return ( name, value_array ) 292 295 return ( name, value_array ) 296 293 297 def parseStatements( self, _configs, statements ): 294 298 self.current_config = None … … 307 311 # NOTE: have that in self._processOp too 308 312 self._setupParser( self.current_config ) 309 313 310 314 ret = self._parseStatement( s ) 311 315 if ( ret is None ):
