From da8ccdc9c20131125501840f322d89b7ee274935 Mon Sep 17 00:00:00 2001 From: Edouard DUPIN Date: Thu, 15 Sep 2016 23:56:36 +0200 Subject: [PATCH] [DEV] try to build glew for windows --- glew | 2 +- lutin_glew.py | 40 ++++++++++++++++++---------------------- 2 files changed, 19 insertions(+), 23 deletions(-) diff --git a/glew b/glew index 1b28edd..4423e9f 160000 --- a/glew +++ b/glew @@ -1 +1 @@ -Subproject commit 1b28edd7b1b7e9864609cc77357bdc4a3cc1e719 +Subproject commit 4423e9fec2b665096f10c8b74020a9abf0f9f260 diff --git a/lutin_glew.py b/lutin_glew.py index 2e7fbfc..25e2bdd 100644 --- a/lutin_glew.py +++ b/lutin_glew.py @@ -5,7 +5,7 @@ import os def get_type(): - return "PREBUILD" + return "LIBRARY" def get_desc(): return "Glew generic glew interface (for windows only)" @@ -18,7 +18,7 @@ def get_maintainer(): "Marcelo E. Magallon "] def get_version(): - return [4,5] + return [1,13,0] def create(target, module_name): if "Windows" in target.get_type(): @@ -26,27 +26,23 @@ def create(target, module_name): 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") - - if target.config["bus-size"] == "32": - 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_flag('link-lib', [ - os.path.join(tools.get_current_path(__file__), "glew/lib/Release/x64/glew32s.lib") - ], - export=True) + 'glew/include/GL/glew.h', + 'glew/include/GL/glxew.h', + 'glew/include/GL/wglew.h' + ], + destination_path="GL") + my_module.add_src_file([ + 'glew/src/glew.c', + 'glew/src/glewinfo.c', + 'glew/src/visualinfo.c' + ]) + """ my_module.add_flag('link-lib', [ - "opengl32", - "gdi32" - ], - export=True) + "opengl32", + "gdi32" + ], + export=True) + """ return my_module else: return None