build libsigar_aixperfstat.so

This commit is contained in:
Doug MacEachern 2004-07-09 00:52:14 +00:00
parent 9a00bf0c64
commit d26c16affa
2 changed files with 50 additions and 1 deletions

View File

@ -132,6 +132,15 @@
depends="jni-init,prepare-src,jni-compile,jni-lib-copy,copy-includes"
if="jni.libarch"/>
<target name="build-perfstat" depends="jni-init" if="aix">
<ant dir="../../src/os/aix/perfstat"/>
<copy toDir="${sigar-bin}/lib" overwrite="true">
<fileset dir="${build}">
<include name="libsigar_aixperfstat.so"/>
</fileset>
</copy>
</target>
<target name="pack-jar">
<jar jarfile="${sigar-bin}/lib/sigar.jar"
basedir="${build}/classes">
@ -143,7 +152,7 @@
</jar>
</target>
<target name="build" depends="build-jni,compile,pack-jar"/>
<target name="build" depends="build-jni,build-perfstat,compile,pack-jar"/>
<target name="clean">
<delete dir="${build}"/>

View File

@ -0,0 +1,40 @@
<project name="sigar-perflib" default="build" basedir=".">
<property name="build" location="build"/>
<property name="cpptasks.jar"
location="../../../../bindings/java/hyperic_jni/lib/cpptasks.jar"/>
<taskdef name="cc" classname="net.sf.antcontrib.cpptasks.CCTask">
<classpath location="${cpptasks.jar}"/>
</taskdef>
<target name="build">
<mkdir dir="${build}"/>
<cc outtype="shared"
outfile="${build}/sigar_aixperfstat.so"
objdir="${build}"
link="shared"
relentless="false">
<compiler name="xlc_r">
<defineset>
</defineset>
</compiler>
<linker name="xlc_r">
<libset dir="." libs="perfstat"/>
</linker>
<includepath location="../"/>
<fileset dir=".">
<include name="sigar_perfstat.c"/>
</fileset>
</cc>
</target>
<target name="clean">
<delete dir="${build}"/>
</target>
</project>