Haxe macros useful for including version strings (version from haxelib.json
, git commit hash and Haxe version) to a target build.
To use it, just install it via haxelib install version
and use the -lib version
switch for haxe
.
Refer to Version.hx to see which macros are available and how to use them.
Credits for the idea go to Andy Li who presented a similar macro using git describe --tags
in Haxe, a language that compiles to JS.