2013-04-23 22:52:06 +02:00
|
|
|
#!/usr/bin/python
|
2013-12-23 22:38:46 +01:00
|
|
|
import lutinModule as module
|
|
|
|
import lutinTools as tools
|
2013-04-23 22:52:06 +02:00
|
|
|
|
2013-12-23 22:38:46 +01:00
|
|
|
def get_desc():
|
|
|
|
return "Glew generic glew interface (for windows only)"
|
|
|
|
|
|
|
|
|
|
|
|
def create(target):
|
2013-04-23 22:52:06 +02:00
|
|
|
if target.name=="Windows":
|
|
|
|
#http://glew.sourceforge.net/index.html
|
2013-12-23 22:38:46 +01:00
|
|
|
myModule = module.Module(__file__, 'glew', 'PREBUILD')
|
2013-04-23 22:52:06 +02:00
|
|
|
|
2013-12-23 22:38:46 +01:00
|
|
|
myModule.add_export_path(tools.get_current_path(__file__) + "/glew/include/")
|
|
|
|
myModule.add_export_flag_LD([
|
|
|
|
tools.get_current_path(__file__) + "/glew/lib/glew32s.lib",
|
2013-04-23 22:52:06 +02:00
|
|
|
"-lopengl32",
|
2013-05-01 16:19:01 +02:00
|
|
|
"-lgdi32",
|
|
|
|
"-static-libgcc",
|
|
|
|
"-static-libstdc++"])
|
2013-04-23 22:52:06 +02:00
|
|
|
|
|
|
|
# add the currrent module at the
|
|
|
|
return myModule
|
|
|
|
else:
|
|
|
|
return None
|
|
|
|
|
|
|
|
|