From a7d05604b8bb46de873dea3c0b24b3b7fddc4a93 Mon Sep 17 00:00:00 2001 From: Doug MacEachern Date: Mon, 12 May 2008 05:28:07 +0000 Subject: [PATCH] add windows .res --- bindings/java/build.xml | 19 ++++++++++++++++++- src/os/win32/sigar.rc.in | 40 ++++++++++++++++++++++++++++++++++++++++ 2 files changed, 58 insertions(+), 1 deletion(-) create mode 100644 src/os/win32/sigar.rc.in diff --git a/bindings/java/build.xml b/bindings/java/build.xml index 7fdd19ce..e08fcb7b 100644 --- a/bindings/java/build.xml +++ b/bindings/java/build.xml @@ -18,6 +18,7 @@ + @@ -160,9 +161,25 @@ + + + + + + - + + + + + + + + diff --git a/src/os/win32/sigar.rc.in b/src/os/win32/sigar.rc.in new file mode 100644 index 00000000..40784f7a --- /dev/null +++ b/src/os/win32/sigar.rc.in @@ -0,0 +1,40 @@ +#define SIGAR_VERSION_CSV \ + @@VERSION_MAJOR@@,@@VERSION_MINOR@@,@@VERSION_MAINT@@,@@VERSION_BUILD@@ +#define SIGAR_VERSION_STR \ + "@@VERSION_MAJOR@@.@@VERSION_MINOR@@.@@VERSION_MAINT@@.@@VERSION_BUILD@@" + +#define SIGAR_ARCHLIB "@@ARCHLIB@@" + +1 VERSIONINFO + FILEVERSION SIGAR_VERSION_CSV + PRODUCTVERSION SIGAR_VERSION_CSV + FILEFLAGSMASK 0x3fL + FILEFLAGS 0x00L +#if defined(WINNT) || defined(WIN64) + FILEOS 0x40004L +#else + FILEOS 0x4L +#endif + FILETYPE 0x2L + FILESUBTYPE 0x0L +BEGIN + BLOCK "StringFileInfo" + BEGIN + BLOCK "040904b0" + BEGIN + VALUE "Comments", "http://sigar.hyperic.com/\0" + VALUE "CompanyName", "Hyperic, Inc.\0" + VALUE "FileDescription", "SIGAR\0" + VALUE "FileVersion", SIGAR_VERSION_STR "\0" + VALUE "InternalName", "sigar.dll\0" + VALUE "LegalCopyright", "Copyright [@@COPYRIGHT_YEAR@@], Hyperic, Inc.\0" + VALUE "OriginalFilename", SIGAR_ARCHLIB "\0" + VALUE "ProductName", "Hyperic SIGAR\0" + VALUE "ProductVersion", SIGAR_VERSION_STR "\0" + END + END + BLOCK "VarFileInfo" + BEGIN + VALUE "Translation", 0x409, 1200 + END +END