commit af50e6371c325e9344ad7fc737f8ae51c34deda4 Author: Edouard DUPIN Date: Thu May 7 22:30:02 2015 +0200 [DEV] create glew lutin wrapper diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..a476e74 --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "glew"] + path = glew + url = https://github.com/HeeroYui/glew-lib.git diff --git a/glew b/glew new file mode 160000 index 0000000..1b28edd --- /dev/null +++ b/glew @@ -0,0 +1 @@ +Subproject commit 1b28edd7b1b7e9864609cc77357bdc4a3cc1e719 diff --git a/info.txt b/info.txt new file mode 100644 index 0000000..07487d1 --- /dev/null +++ b/info.txt @@ -0,0 +1 @@ +find binary on http://glew.sourceforge.net/ diff --git a/lutin_glew.py b/lutin_glew.py new file mode 100644 index 0000000..d75136c --- /dev/null +++ b/lutin_glew.py @@ -0,0 +1,34 @@ +#!/usr/bin/python +import lutinModule as module +import lutinTools as tools + +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": + myModule.add_export_flag_LD([ + tools.get_current_path(__file__) + "/glew/lib/Release/Win32/glew32s.lib" + ]) + else: + myModule.add_export_flag_LD([ + tools.get_current_path(__file__) + "/glew/lib/Release/x64/glew32s.lib", + ]) + myModule.add_export_flag_LD([ + "-lopengl32", + "-lgdi32", + "-static-libgcc", + "-static-libstdc++"]) + + # add the currrent module at the + return myModule + else: + return None + +