glew-lutin/lutin_glew.py

52 lines
1.1 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():
return "PREBUILD"
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():
2016-03-14 23:41:21 +01:00
return "GPL"
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():
return [4,5]
def create(target, module_name):
2015-05-07 22:30:02 +02:00
if target.name=="Windows":
#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([
'glew/include/GL/glew.h',
'glew/include/GL/glxew.h',
'glew/include/GL/wglew.h'
],
destination_path="GL")
2015-05-07 22:30:02 +02:00
if target.config["bus-size"] == "32":
2016-03-14 23:41:21 +01:00
my_module.add_export_flag('link-lib', [
2015-10-14 21:21:03 +02:00
os.path.join(tools.get_current_path(__file__), "glew/lib/Release/Win32/glew32s.lib")
2015-05-07 22:30:02 +02:00
])
else:
2016-03-14 23:41:21 +01:00
my_module.add_export_flag('link-lib', [
2015-10-14 21:21:03 +02:00
os.path.join(tools.get_current_path(__file__), "glew/lib/Release/x64/glew32s.lib")
2015-05-07 22:30:02 +02:00
])
2016-03-14 23:41:21 +01:00
my_module.add_export_flag('link-lib', [
"opengl32",
"gdi32"
])
2015-09-24 21:44:04 +02:00
return my_module
2015-05-07 22:30:02 +02:00
else:
return None