build libsigar_aixperfstat.so
This commit is contained in:
parent
9a00bf0c64
commit
d26c16affa
|
@ -132,6 +132,15 @@
|
||||||
depends="jni-init,prepare-src,jni-compile,jni-lib-copy,copy-includes"
|
depends="jni-init,prepare-src,jni-compile,jni-lib-copy,copy-includes"
|
||||||
if="jni.libarch"/>
|
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">
|
<target name="pack-jar">
|
||||||
<jar jarfile="${sigar-bin}/lib/sigar.jar"
|
<jar jarfile="${sigar-bin}/lib/sigar.jar"
|
||||||
basedir="${build}/classes">
|
basedir="${build}/classes">
|
||||||
|
@ -143,7 +152,7 @@
|
||||||
</jar>
|
</jar>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
<target name="build" depends="build-jni,compile,pack-jar"/>
|
<target name="build" depends="build-jni,build-perfstat,compile,pack-jar"/>
|
||||||
|
|
||||||
<target name="clean">
|
<target name="clean">
|
||||||
<delete dir="${build}"/>
|
<delete dir="${build}"/>
|
||||||
|
|
|
@ -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>
|
Loading…
Reference in New Issue