glew-lutin/lutin_glew.py

35 lines
867 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-05-07 22:30:02 +02:00
def get_desc():
return "Glew generic glew interface (for windows only)"
def create(target):
if target.name=="Windows":
#http://glew.sourceforge.net/index.html
myModule = module.Module(__file__, 'glew', 'PREBUILD')
myModule.add_export_path(tools.get_current_path(__file__) + "/glew/include/")
if target.config["bus-size"] == "32":
2015-05-08 22:44:16 +02:00
myModule.add_export_flag('link', [
2015-05-07 22:30:02 +02:00
tools.get_current_path(__file__) + "/glew/lib/Release/Win32/glew32s.lib"
])
else:
2015-05-08 22:44:16 +02:00
myModule.add_export_flag('link', [
2015-05-07 22:30:02 +02:00
tools.get_current_path(__file__) + "/glew/lib/Release/x64/glew32s.lib",
])
2015-05-08 22:44:16 +02:00
myModule.add_export_flag('link', [
2015-05-07 22:30:02 +02:00
"-lopengl32",
"-lgdi32",
"-static-libgcc",
"-static-libstdc++"])
# add the currrent module at the
return myModule
else:
return None