pkulchenko / wxlua

wxlua: Lua bindings for wxWidgets cross-platform GUI toolkit; supports Lua 5.1, 5.2, 5.3, 5.4, LuaJIT and wxWidgets 3.x
306 stars 59 forks source link

[FR] store wx/STC/stedit/... lib versions during the build #33

Closed ildar closed 5 years ago

ildar commented 5 years ago

Justification: some libs that wxlua depends on have API changes difficult to guess/control. The idea is to get the version info during the build and store it in wxlua secret stash (RO table). Then any client can have this info available during runtime. Example:

$ egrep '^#define.*VERSION' /usr/include/wx/stedit/stedefs.h

define STE_MAJOR_VERSION 1

define STE_MINOR_VERSION 6

define STE_RELEASE_VERSION 0

define STE_SUBRELEASE_VERSION 0

pkulchenko commented 5 years ago

This has been added in 24b86d2c. Closing...