glew-lutin/lutin_glew.py

51 lines
1005 B
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-15 23:56:36 +02:00
return "LIBRARY"
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-15 23:56:36 +02:00
return [1,13,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',
'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'
])
"""
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)
"""
2015-09-24 21:44:04 +02:00
return my_module
2015-05-07 22:30:02 +02:00
else:
return None