add more version fields
This commit is contained in:
parent
56b9152e93
commit
c4d439f609
|
@ -101,7 +101,9 @@
|
|||
<replace file="${version.tofile}">
|
||||
<replacefilter token="@@BUILD_DATE@@" value="${BUILD_DATE}"/>
|
||||
<replacefilter token="@@VERSION_STRING@@" value="${sigar.version}"/>
|
||||
<replacefilter token="@@ARCHNAME@@" value="${jni.project.archname}"/>
|
||||
<replacefilter token="@@ARCHNAME@@" value="${jni.libarch}"/>
|
||||
<replacefilter token="@@ARCHLIB@@" value="${jni.libname}"/>
|
||||
<replacefilter token="@@BINNAME@@" value="${jni.project.archname}"/>
|
||||
<replacefilter token="@@VERSION_MAJOR@@" value="${version.major}"/>
|
||||
<replacefilter token="@@VERSION_MINOR@@" value="${version.minor}"/>
|
||||
<replacefilter token="@@VERSION_MAINT@@" value="${version.maint}"/>
|
||||
|
|
|
@ -598,6 +598,8 @@ typedef struct {
|
|||
const char *build_date;
|
||||
const char *version;
|
||||
const char *archname;
|
||||
const char *archlib;
|
||||
const char *binname;
|
||||
int major, minor, maint;
|
||||
} sigar_version_t;
|
||||
|
||||
|
|
|
@ -4,6 +4,8 @@ static sigar_version_t sigar_version = {
|
|||
"@@BUILD_DATE@@",
|
||||
"@@VERSION_STRING@@",
|
||||
"@@ARCHNAME@@",
|
||||
"@@ARCHLIB@@",
|
||||
"@@BINNAME@@",
|
||||
@@VERSION_MAJOR@@,
|
||||
@@VERSION_MINOR@@,
|
||||
@@VERSION_MAINT@@
|
||||
|
|
Loading…
Reference in New Issue