From 72a01d1f9139760630e5ea62aaaf4c57b9be711d Mon Sep 17 00:00:00 2001 From: rofl0r Date: Fri, 2 Aug 2013 12:24:33 +0200 Subject: [PATCH] scons: make building of GL stuff optional --- g_src/SConscript | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/g_src/SConscript b/g_src/SConscript index 12ad526..9f1f35b 100644 --- a/g_src/SConscript +++ b/g_src/SConscript @@ -79,7 +79,11 @@ except OSError,e: env.ParseConfig('pkg-config openal --cflags') env.ParseConfig('pkg-config sndfile --cflags') env.ParseConfig('pkg-config sdl --cflags --libs') -env.ParseConfig('pkg-config glu --cflags --libs') +try: + env.ParseConfig('pkg-config glu --cflags --libs') + env.Append(CPPFLAGS = '-DWANT_GL') +except OSError,e: + print 'glu not found, disabling GL' if profile: -- 2.11.4.GIT