mirror of
https://github.com/QuasarApp/LIEF.git
synced 2025-04-27 12:54:32 +00:00
Add commit attribute
This commit is contained in:
parent
9d1635ef72
commit
01c33053ab
@ -54,6 +54,7 @@ PYBIND11_MODULE(lief, LIEF_module) {
|
||||
|
||||
LIEF_module.attr("__version__") = py::str(LIEF_VERSION);
|
||||
LIEF_module.attr("__tag__") = py::str(LIEF_TAG);
|
||||
LIEF_module.attr("__commit__") = py::str(LIEF_COMMIT);
|
||||
LIEF_module.attr("__is_tagged__") = py::bool_(LIEF_TAGGED);
|
||||
LIEF_module.doc() = "Python API for LIEF";
|
||||
|
||||
|
@ -25,6 +25,7 @@
|
||||
#define LIEF_VERSION "@LIEF_VERSION_MAJOR@.@LIEF_VERSION_MINOR@.@LIEF_VERSION_PATCH@-@LIEF_COMMIT_HASH@"
|
||||
#define LIEF_TAGGED @LIEF_IS_TAGGED@
|
||||
#define LIEF_TAG "@LIEF_GIT_TAG@"
|
||||
#define LIEF_COMMIT "@LIEF_COMMIT_HASH@"
|
||||
|
||||
#define HUMAN_VERSION " v" LIEF_VERSION
|
||||
#define HUMAN_NAME NAME HUMAN_VERSION
|
||||
|
Loading…
x
Reference in New Issue
Block a user