diff options
| author | Simon Robertshaw <simon@hardwired.org.uk> | 2012-09-25 16:52:43 (GMT) |
|---|---|---|
| committer | Simon Robertshaw <simon@hardwired.org.uk> | 2012-09-25 16:52:43 (GMT) |
| commit | 9ba08768a45176f828185281a09c831193fe968f (patch) | |
| tree | 6ebf46c3c3d05678dbd96be75e1543b0b8d1bca2 /SConscript | |
| parent | f30ef6004a2f21e7562f3c24e06b9cf816e32d55 (diff) | |
| download | powder-9ba08768a45176f828185281a09c831193fe968f.zip powder-9ba08768a45176f828185281a09c831193fe968f.tar.gz | |
Don't check for libs that are frameworks under OS X
Diffstat (limited to 'SConscript')
| -rw-r--r-- | SConscript | 49 |
1 files changed, 26 insertions, 23 deletions
@@ -68,33 +68,36 @@ if GetOption("toolprefix"): #Check for headers and libraries conf = Configure(env) -try: - env.ParseConfig('sdl-config --cflags') - env.ParseConfig('sdl-config --libs') -except: - conf.CheckLib("SDL") - if(GetOption("sdl-dir")): - if not conf.CheckCHeader(GetOption("sdl-dir") + '/SDL.h'): - print "sdl headers not found or not installed" - raise SystemExit(1) - else: - env.Append(CPPPATH=GetOption("sdl-dir")) +if not GetOption("macosx"): + try: + env.ParseConfig('sdl-config --cflags') + env.ParseConfig('sdl-config --libs') + except: + conf.CheckLib("SDL") + if(GetOption("sdl-dir")): + if not conf.CheckCHeader(GetOption("sdl-dir") + '/SDL.h'): + print "sdl headers not found or not installed" + raise SystemExit(1) + else: + env.Append(CPPPATH=GetOption("sdl-dir")) #Find correct lua include dir -try: - env.ParseConfig('pkg-config --cflags lua5.1') -except: - if(GetOption("lua-dir")): - if not conf.CheckCHeader(GetOption("lua-dir") + '/lua.h'): - print "lua5.1 headers not found or not installed" - raise SystemExit(1) - else: - env.Append(CPPPATH=GetOption("lua-dir")) +if not GetOption("macosx"): + try: + env.ParseConfig('pkg-config --cflags lua5.1') + except: + if(GetOption("lua-dir")): + if not conf.CheckCHeader(GetOption("lua-dir") + '/lua.h'): + print "lua5.1 headers not found or not installed" + raise SystemExit(1) + else: + env.Append(CPPPATH=GetOption("lua-dir")) #Check for FFT lib -if not conf.CheckLib('fftw3f') and not conf.CheckLib('fftw3f-3'): - print "libfftw3f not found or not installed" - raise SystemExit(1) +if not GetOption("macosx"): + if not conf.CheckLib('fftw3f') and not conf.CheckLib('fftw3f-3'): + print "libfftw3f not found or not installed" + raise SystemExit(1) #Check for Bzip lib if not conf.CheckLib('bz2'): |
