From 5685756bebc243a74d038e810dae4f2f34b7592a Mon Sep 17 00:00:00 2001 From: mattn Date: Wed, 19 Mar 2008 07:15:04 +0000 Subject: [PATCH] * fixed linkage of imagepng lib * fixed prtview compilation (missing header) git-svn-id: svn://svn.icculus.org/gtkradiant/GtkRadiant/branches/ZeroRadiant@230 8a3a26a2-13c4-0310-b231-cf6edde360e5 --- SConscript.module | 5 ++++- config.py | 4 +++- contrib/prtview/AboutDialog.cpp | 1 - 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/SConscript.module b/SConscript.module index ba7665b5..06ac5385 100644 --- a/SConscript.module +++ b/SConscript.module @@ -13,6 +13,7 @@ libname = os.path.splitext( libname )[0] env = Environment() useJPEG = False useGtk = False +useZ = False if ( libname == 'image' ): useJPEG = True if ( libname == 'surface' ): @@ -39,8 +40,10 @@ if ( libname == 'model' ): 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 diff --git a/config.py b/config.py index 77dd34bc..0006de3b 100644 --- a/config.py +++ b/config.py @@ -183,7 +183,7 @@ class Config: 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' ) @@ -226,6 +226,8 @@ class Config: 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' ] ) diff --git a/contrib/prtview/AboutDialog.cpp b/contrib/prtview/AboutDialog.cpp index 1bf834d2..1bf0b99e 100644 --- a/contrib/prtview/AboutDialog.cpp +++ b/contrib/prtview/AboutDialog.cpp @@ -21,7 +21,6 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA // #include "stdafx.h" -#include "AboutDialog.h" #ifdef _DEBUG #define new DEBUG_NEW -- 2.39.2