add windows .res

This commit is contained in:
Doug MacEachern 2008-05-12 05:28:07 +00:00
parent c81a4bf370
commit a7d05604b8
2 changed files with 58 additions and 1 deletions

View File

@ -18,6 +18,7 @@
<property name="jni.source.dir" location="../.."/>
<property name="jni.src.java" value="hyperic_jni/src"/>
<property name="jni.info.plist" location="build/src/Info.plist"/>
<property name="jni.info.res" location="build/src/sigar.res"/>
<property name="jni.libprefix" value=""/> <!-- drop "java" prefix -->
<property name="cpptasks.jar"
location="hyperic_jni/lib/cpptasks.jar"/>
@ -160,9 +161,25 @@
<param name="version.tofile"
value="${build}/src/Info.plist"/>
</antcall>
<antcall target="version-file">
<param name="version.file.srcdir"
value="../.."/>
<param name="version.file"
value="src/os/win32/sigar.rc"/>
<param name="version.tofile"
value="${build}/src/sigar.rc"/>
</antcall>
</target>
<target name="prepare-src" depends="sigar-version">
<target name="sigar.rc" if="win32">
<exec executable="rc" dir="${build}/src">
<arg value="/r"/>
<arg value="sigar.rc"/>
</exec>
</target>
<target name="prepare-src" depends="sigar-version,sigar.rc">
<mkdir dir="${build}/src"/>
<exec executable="${perl}" dir=".">

40
src/os/win32/sigar.rc.in Normal file
View File

@ -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