Changeset 231

Show
Ignore:
Timestamp:
03/19/08 02:20:06 (4 months ago)
Author:
mattn
Message:

* fixed libpng linkage (2nd try)

Files:

Legend:

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

    r230 r231  
    1515useGtk = False 
    1616useZ = False 
     17usePNG = False 
    1718if ( libname == 'image' ): 
    1819        useJPEG = True 
     
    4142if ( libname == 'TexTool' ): 
    4243        useGtk = True 
    43 #if ( libname == 'imagepng' ): 
    44 #      useZ = True 
     44if ( libname == 'imagepng' ): 
     45       usePNG = True 
    4546 
    46 settings.SetupEnvironment( env, config['name'], useGtk = useGtk, useJPEG = useJPEG, useZ = useZ ) 
     47 
     48settings.SetupEnvironment( env, config['name'], useGtk = useGtk, useJPEG = useJPEG, useZ = useZ, usePNG = usePNG ) 
    4749proj = utils.vcproj( os.path.join( GetLaunchDir(), project ) ) 
    4850 
  • GtkRadiant/branches/ZeroRadiant/config.py

    r230 r231  
    107107                                         'plugins/image/image.vcproj', 
    108108                                         'plugins/model/model.vcproj', 
    109                                         # FIXME: Fix linker flags - xml2, z 
    110                                         # 'plugins/imagepng/imagepng.vcproj', 
     109                                         'plugins/imagepng/imagepng.vcproj', 
    111110                                         'plugins/imagewal/imagewal.vcproj', 
    112111                                         'plugins/imagem8/imagem8.vcproj', 
     
    184183                        self.emit_q3map2() 
    185184 
    186         def SetupEnvironment( self, env, config, useGtk = False, useGtkGL = False, useJPEG = False, useZ = False ): 
     185        def SetupEnvironment( self, env, config, useGtk = False, useGtkGL = False, useJPEG = False, useZ = False, usePNG = False ): 
    187186                env['CC'] = self.cc 
    188187                env['CXX'] = self.cxx 
     
    227226                if ( useJPEG ): 
    228227                        env.Append( LIBS = 'jpeg' ) 
     228                if ( usePNG ): 
     229                        pnglibs = 'png z' 
     230                        env.Append( LIBS = pnglibs.split( ' ' ) ) 
    229231                if ( useZ ): 
    230232                        env.Append( LIBS = 'z' )