Changeset 202

Show
Ignore:
Timestamp:
03/04/08 11:01:45 (4 months ago)
Author:
mattn
Message:

* activate surface_ufoai and model plugins for compilation
* added useGtk = true for surface_ufoai and model plugins
* added picomodel to shared libs list (needed by the model plugin)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • GtkRadiant/branches/ZeroRadiant/SConscript.module

    r195 r202  
    1818if ( libname == 'surface' ): 
    1919        useGtk = True 
     20if ( libname == 'surface_ufoai' ): 
     21        useGtk = True 
    2022if ( libname == 'surface_quake2' ): 
    2123        useGtk = True 
     
    3335        useGtk = True 
    3436if ( libname == 'spritemodel' ): 
     37        useGtk = True 
     38if ( libname == 'model' ): 
    3539        useGtk = True 
    3640if ( libname == 'TexTool' ): 
  • GtkRadiant/branches/ZeroRadiant/config.py

    r200 r202  
    99# aliases are going to be very needed here 
    1010# we have dependency situations too 
    11 # target =  
     11# target = 
    1212 
    1313class Config: 
     
    2020        # 'all' -> for each choices 
    2121        # 'gamecode' for the targets, 'game' 'cgame' 'ui' 
    22          
     22 
    2323        def __init__( self ): 
    2424                # initialize defaults 
     
    9191                        # PIC versions of the libs for the modules 
    9292                        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' ]: 
    9494                                ( libpath, libname ) = os.path.split( project ) 
    9595                                libname = os.path.splitext( libname )[0] 
     
    106106                                         'plugins/entity/entity.vcproj', 
    107107                                         'plugins/image/image.vcproj', 
    108                                         # FIXME: Fix linker flags - xml2, z  
     108                                         'plugins/model/model.vcproj', 
     109                                        # FIXME: Fix linker flags - xml2, z 
    109110                                        # 'plugins/imagepng/imagepng.vcproj', 
    110111                                         'plugins/imagewal/imagewal.vcproj', 
     
    116117                                         'plugins/shaders/shaders.vcproj', 
    117118                                         'plugins/surface/surface.vcproj', 
     119                                         'plugins/surface_ufoai/surface_ufoai.vcproj', 
    118120                                         'plugins/surface_quake2/surface_quake2.vcproj', 
    119121                                         'plugins/surface_heretic2/surface_heretic2.vcproj', 
     
    123125                                        # FIXME What is this? Empty dir for me - remove me? 
    124126                                        # 'contrib/patches/patches.vcproj', 
    125                                         # 'contrib/archivewad/archivewad.vcproj', 
     127                                        # 'plugins/archivewad/archivewad.vcproj', 
    126128 
    127129                                        # FIXME Doesn't compile cleanly 
     
    137139                                if ( libname == 'entity' ): 
    138140                                        shlib_objects += shlib_objects_extra['mathlib'] 
     141                                elif ( libname == 'model' ): 
     142                                        shlib_objects += shlib_objects_extra['picomodel'] 
    139143#                               elif ( libname == 'spritemodel' ): 
    140144#                                       shlib_objects += shlib_objects_extra['mathlib'] 
     
    163167                        q3map2 = SConscript( os.path.join( build_dir, 'SConscript.q3map2' ) ) 
    164168                        self.InstallAs( 'install/q3map2', q3map2 ) 
    165                                          
     169 
    166170 
    167171        def emit( self ): 
     
    222226                if ( useJPEG ): 
    223227                        env.Append( LIBS = 'jpeg' ) 
    224                          
     228 
    225229                env.Append( CFLAGS = baseflags ) 
    226230                env.Append( CXXFLAGS = baseflags + [ '-fpermissive', '-fvisibility-inlines-hidden' ] ) 
     
    230234                        env.Append( CFLAGS = [ '-g' ] ) 
    231235                        env.Append( CXXFLAGS = [ '-g' ] ) 
    232                         env.Append( CPPDEFINES = [ '_DEBUG' ] )                                 
     236                        env.Append( CPPDEFINES = [ '_DEBUG' ] ) 
    233237                else: 
    234238                        env.Append( CFLAGS = [ '-O3', '-Winline', '-ffast-math', '-fno-unsafe-math-optimizations', '-fno-strict-aliasing' ] ) 
     
    239243 
    240244# 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 
    242246class ConfigParser: 
    243247        def __init__( self ): 
     
    283287                        while ( len( value_split ) != 0 ): 
    284288                                value_array.append( value_split.pop() ) 
    285                                 value_split.pop()                                       
     289                                value_split.pop() 
    286290                except: 
    287291                        print traceback.print_exception( sys.exc_type, sys.exc_value, sys.exc_traceback ) 
     
    289293                        return 
    290294 
    291                 return ( name, value_array )            
    292          
     295                return ( name, value_array ) 
     296 
    293297        def parseStatements( self, _configs, statements ): 
    294298                self.current_config = None 
     
    307311                                # NOTE: have that in self._processOp too 
    308312                                self._setupParser( self.current_config ) 
    309                          
     313 
    310314                        ret = self._parseStatement( s ) 
    311315                        if ( ret is None ):