diff options
Diffstat (limited to 'drivers/gl_context/SCsub')
-rw-r--r-- | drivers/gl_context/SCsub | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/drivers/gl_context/SCsub b/drivers/gl_context/SCsub index 7cf8629fe1..dac27c0125 100644 --- a/drivers/gl_context/SCsub +++ b/drivers/gl_context/SCsub @@ -1,5 +1,11 @@ Import('env') -Export('env'); env.add_source_files(env.drivers_sources,"*.cpp") -env.add_source_files(env.drivers_sources,"*.c") + +if (env.get('glew') == 'yes'): + env.add_source_files(env.drivers_sources,"glew.c") + env.Append(CPPFLAGS = ['-DGLEW_ENABLED']) + env.Append(CPPFLAGS = ['-DGLEW_STATIC']) + env.Append(CPPPATH = ['.']) + +Export('env') |