glew-lutin/lutin_glew.py

72 lines
1.7 KiB
Python
Raw Normal View History

2015-05-07 22:30:02 +02:00
#!/usr/bin/python
2015-05-08 22:44:16 +02:00
import lutin.module as module
import lutin.tools as tools
2015-10-14 21:21:03 +02:00
import os
def get_type():
2016-09-16 00:13:12 +02:00
return "LIBRARY_STATIC"
2015-05-07 22:30:02 +02:00
def get_desc():
return "Glew generic glew interface (for windows only)"
2015-10-14 21:21:03 +02:00
def get_licence():
return "BSD-3"
2015-10-14 21:21:03 +02:00
def get_maintainer():
return ["Milan Ikits <milan ikits@ieee org>",
"Marcelo E. Magallon <mmagallo@debian org>"]
2015-05-07 22:30:02 +02:00
2015-10-14 21:21:03 +02:00
def get_version():
2016-09-16 00:13:12 +02:00
return [2,0,0]
2015-10-14 21:21:03 +02:00
def create(target, module_name):
2016-09-08 21:35:02 +02:00
if "Windows" in target.get_type():
2015-05-07 22:30:02 +02:00
#http://glew.sourceforge.net/index.html
2015-10-14 21:21:03 +02:00
my_module = module.Module(__file__, module_name, get_type())
my_module.add_header_file([
2016-09-15 23:56:36 +02:00
'glew/include/GL/glew.h',
'glew/include/GL/glxew.h',
2016-09-16 00:13:12 +02:00
'glew/include/GL/wglew.h',
'glew/include/GL/eglew.h'
2016-09-15 23:56:36 +02:00
],
destination_path="GL")
my_module.add_src_file([
'glew/src/glew.c',
'glew/src/glewinfo.c',
'glew/src/visualinfo.c'
])
"""
2016-09-16 00:13:12 +02:00
my_module.add_src_file([
'glew/auto/src/glewinfo_gl.c',
'glew/auto/src/glew_init_tail.c',
'glew/auto/src/glew_head.c',
'glew/auto/src/glew_init_egl.c',
'glew/auto/src/glew_init_gl.c',
'glew/auto/src/glew_init_glx.c',
'glew/auto/src/glew_str_glx.c',
'glew/auto/src/glewinfo_wgl.c',
'glew/auto/src/glewinfo_tail.c',
'glew/auto/src/glew_str_wgl.c',
'glew/auto/src/glew_str_egl.c',
'glew/auto/src/glew_str_tail.c',
'glew/auto/src/glewinfo_head.c',
'glew/auto/src/glew_str_head.c',
'glew/auto/src/glew_init_wgl.c',
'glew/auto/src/glewinfo_egl.c',
'glew/auto/src/glewinfo_glx.c',
])
"""
2016-09-08 21:35:02 +02:00
my_module.add_flag('link-lib', [
2016-09-15 23:56:36 +02:00
"opengl32",
"gdi32"
],
export=True)
2016-09-16 00:13:12 +02:00
my_module.add_path("glew/auto/src/")
2015-09-24 21:44:04 +02:00
return my_module
2015-05-07 22:30:02 +02:00
else:
return None