[DEV] update to future lutin 2.0

This commit is contained in:
Edouard DUPIN 2016-09-08 21:35:02 +02:00
parent a1d2a5fe49
commit 2c6ebea5c1

View File

@ -21,7 +21,7 @@ def get_version():
return [4,5]
def create(target, module_name):
if target.name=="Windows":
if "Windows" in target.get_type():
#http://glew.sourceforge.net/index.html
my_module = module.Module(__file__, module_name, get_type())
@ -33,17 +33,20 @@ def create(target, module_name):
destination_path="GL")
if target.config["bus-size"] == "32":
my_module.add_export_flag('link-lib', [
my_module.add_flag('link-lib', [
os.path.join(tools.get_current_path(__file__), "glew/lib/Release/Win32/glew32s.lib")
])
],
export=True)
else:
my_module.add_export_flag('link-lib', [
my_module.add_flag('link-lib', [
os.path.join(tools.get_current_path(__file__), "glew/lib/Release/x64/glew32s.lib")
])
my_module.add_export_flag('link-lib', [
],
export=True)
my_module.add_flag('link-lib', [
"opengl32",
"gdi32"
])
],
export=True)
return my_module
else:
return None