env = Environment()
useJPEG = False
useGtk = False
+useZ = False
if ( libname == 'image' ):
useJPEG = True
if ( libname == 'surface' ):
useGtk = True
if ( libname == 'TexTool' ):
useGtk = True
+#if ( libname == 'imagepng' ):
+# useZ = True
-settings.SetupEnvironment( env, config['name'], useGtk = useGtk, useJPEG = useJPEG )
+settings.SetupEnvironment( env, config['name'], useGtk = useGtk, useJPEG = useJPEG, useZ = useZ )
proj = utils.vcproj( os.path.join( GetLaunchDir(), project ) )
# some filtering. may need to improve that
else:
self.emit_q3map2()
- def SetupEnvironment( self, env, config, useGtk = False, useGtkGL = False, useJPEG = False ):
+ def SetupEnvironment( self, env, config, useGtk = False, useGtkGL = False, useJPEG = False, useZ = False ):
env['CC'] = self.cc
env['CXX'] = self.cxx
( ret, xml2 ) = commands.getstatusoutput( 'xml2-config --cflags' )
env.Append( LINKFLAGS = gtkgllibs.split( ' ' ) )
if ( useJPEG ):
env.Append( LIBS = 'jpeg' )
+ if ( useZ ):
+ env.Append( LIBS = 'z' )
env.Append( CFLAGS = baseflags )
env.Append( CXXFLAGS = baseflags + [ '-fpermissive', '-fvisibility-inlines-hidden' ] )