Define GLEW_BUILD on windows.

This commit is contained in:
Matthew Einhorn 2015-03-18 12:45:18 -04:00
parent 77232ebd47
commit a8bea76a89
1 changed files with 9 additions and 7 deletions

View File

@ -238,6 +238,8 @@ class KivyBuildExt(build_ext):
config_py += '{0} = {1}\n'.format(opt, value)
debug = bool(self.debug)
print(' * debug = {0}'.format(debug))
config_h += \
'#if __USE_GLEW && defined(_WIN32)\n# define GLEW_BUILD\n#endif'
config_pxi += 'DEF DEBUG = {0}\n'.format(debug)
config_py += 'DEBUG = {0}\n'.format(debug)