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