[DEV] try to build glew for windows

This commit is contained in:
Edouard DUPIN 2016-09-15 23:56:36 +02:00
parent cfd6416b78
commit da8ccdc9c2
2 changed files with 19 additions and 23 deletions

2
glew

@ -1 +1 @@
Subproject commit 1b28edd7b1b7e9864609cc77357bdc4a3cc1e719 Subproject commit 4423e9fec2b665096f10c8b74020a9abf0f9f260

View File

@ -5,7 +5,7 @@ import os
def get_type(): def get_type():
return "PREBUILD" return "LIBRARY"
def get_desc(): def get_desc():
return "Glew generic glew interface (for windows only)" return "Glew generic glew interface (for windows only)"
@ -18,7 +18,7 @@ def get_maintainer():
"Marcelo E. Magallon <mmagallo@debian org>"] "Marcelo E. Magallon <mmagallo@debian org>"]
def get_version(): def get_version():
return [4,5] return [1,13,0]
def create(target, module_name): def create(target, module_name):
if "Windows" in target.get_type(): if "Windows" in target.get_type():
@ -26,27 +26,23 @@ def create(target, module_name):
my_module = module.Module(__file__, module_name, get_type()) my_module = module.Module(__file__, module_name, get_type())
my_module.add_header_file([ my_module.add_header_file([
'glew/include/GL/glew.h', 'glew/include/GL/glew.h',
'glew/include/GL/glxew.h', 'glew/include/GL/glxew.h',
'glew/include/GL/wglew.h' 'glew/include/GL/wglew.h'
], ],
destination_path="GL") destination_path="GL")
my_module.add_src_file([
if target.config["bus-size"] == "32": 'glew/src/glew.c',
my_module.add_flag('link-lib', [ 'glew/src/glewinfo.c',
os.path.join(tools.get_current_path(__file__), "glew/lib/Release/Win32/glew32s.lib") 'glew/src/visualinfo.c'
], ])
export=True) """
else:
my_module.add_flag('link-lib', [
os.path.join(tools.get_current_path(__file__), "glew/lib/Release/x64/glew32s.lib")
],
export=True)
my_module.add_flag('link-lib', [ my_module.add_flag('link-lib', [
"opengl32", "opengl32",
"gdi32" "gdi32"
], ],
export=True) export=True)
"""
return my_module return my_module
else: else:
return None return None