diff options
| author | mniip <mniip@yandex.ru> | 2013-05-17 13:30:44 (GMT) |
|---|---|---|
| committer | mniip <mniip@yandex.ru> | 2013-05-17 13:30:44 (GMT) |
| commit | 32fe184351e7bc44fd8577739c14a0c422456dac (patch) | |
| tree | fa40386735fba2305e45d9115691f8a775ad9500 /SConscript | |
| parent | 77bf649fb4482c86ac1fd9b3233f062b53226007 (diff) | |
| download | powder-32fe184351e7bc44fd8577739c14a0c422456dac.zip powder-32fe184351e7bc44fd8577739c14a0c422456dac.tar.gz | |
sdl-dir scons parameter
Diffstat (limited to 'SConscript')
| -rwxr-xr-x | SConscript | 26 |
1 files changed, 13 insertions, 13 deletions
@@ -74,21 +74,21 @@ if GetOption("toolprefix"): #Check for headers and libraries if not GetOption("macosx"): conf = Configure(env) - - try: - env.ParseConfig('sdl-config --cflags') - env.ParseConfig('sdl-config --libs') - except: - if not conf.CheckLib("SDL"): - print "libSDL not found or not installed" + if(GetOption("sdl-dir")): + if not conf.CheckCHeader(GetOption("sdl-dir") + '/SDL.h'): + print "sdl headers not found or not installed" raise SystemExit(1) - - if(GetOption("sdl-dir")): - if not conf.CheckCHeader(GetOption("sdl-dir") + '/SDL.h'): - print "sdl headers not found or not installed" + else: + env.Append(CPPPATH=[GetOption("sdl-dir")]) + else: + try: + env.ParseConfig('sdl-config --cflags') + env.ParseConfig('sdl-config --libs') + except: + if not conf.CheckLib("SDL"): + print "libSDL not found or not installed" raise SystemExit(1) - else: - env.Append(CPPPATH=[GetOption("sdl-dir")]) + #Find correct lua include dir if not GetOption("nolua"): |
