mirror of
https://github.com/Perlmint/glew-cmake.git
synced 2024-11-11 09:33:49 +00:00
For github pull request #33 - GLEW version in glew.h
Allow for tools to extract the GLEW version from glew.h directly. No functional change for C API. See: https://github.com/nigels-com/glew/pull/33/files
This commit is contained in:
parent
06430b007b
commit
7c046e2307
@ -143,8 +143,12 @@ $(I.DEST)/glew.h: $(EXT)/.dummy
|
||||
$(BIN)/make_struct_var.pl GLEW_VAR_EXPORT $(GL_CORE_SPEC) $(GL_EXT_SPEC) >> $@
|
||||
echo -e "\n#ifdef GLEW_MX\n}; /* GLEWContextStruct */\n#endif /* GLEW_MX */\n" >> $@
|
||||
perl -e "s/GLEW_VAR_EXPORT GLboolean __GLEW_VERSION_1_2;/GLEW_VAR_EXPORT GLboolean __GLEW_VERSION_1_1;\nGLEW_VAR_EXPORT GLboolean __GLEW_VERSION_1_2;/" -pi $@
|
||||
rm -f $@.bak
|
||||
cat $(SRC)/glew_tail.h >> $@
|
||||
perl -e "s/GLEW_VERSION_STRING/$(GLEW_VERSION)/g" -pi $@
|
||||
perl -e "s/GLEW_VERSION_MAJOR_STRING/$(GLEW_MAJOR)/g" -pi $@
|
||||
perl -e "s/GLEW_VERSION_MINOR_STRING/$(GLEW_MINOR)/g" -pi $@
|
||||
perl -e "s/GLEW_VERSION_MICRO_STRING/$(GLEW_MICRO)/g" -pi $@
|
||||
rm -f $@.bak
|
||||
|
||||
$(I.DEST)/wglew.h: $(EXT)/.dummy
|
||||
@echo "--------------------------------------------------------------------"
|
||||
|
@ -13,6 +13,17 @@
|
||||
#define GLEW_VERSION_MINOR 3
|
||||
#define GLEW_VERSION_MICRO 4
|
||||
|
||||
/* ------------------------------------------------------------------------- */
|
||||
|
||||
/* GLEW version info */
|
||||
|
||||
/*
|
||||
VERSION GLEW_VERSION_STRING
|
||||
VERSION_MAJOR GLEW_VERSION_MAJOR_STRING
|
||||
VERSION_MINOR GLEW_VERSION_MINOR_STRING
|
||||
VERSION_MICRO GLEW_VERSION_MICRO_STRING
|
||||
*/
|
||||
|
||||
/* API */
|
||||
#ifdef GLEW_MX
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user