only try to compile jni/win32 on windows

This commit is contained in:
Doug MacEachern 2004-11-22 02:25:30 +00:00
parent 84ca523e7b
commit 8105d3c8f5
1 changed files with 6 additions and 2 deletions

View File

@ -107,14 +107,18 @@
<arg value="${build}/src"/> <arg value="${build}/src"/>
</exec> </exec>
<condition property="win32.jni" value="jni/win32">
<os family="windows"/>
</condition>
<!-- include sigar *.c files rather than link against libsigar --> <!-- include sigar *.c files rather than link against libsigar -->
<patternset id="jni.source.files"> <patternset id="jni.source.files">
<include name="src/*.c"/> <include name="src/*.c"/>
<include name="src/os/${jni.src}/*.c"/> <include name="src/os/${jni.src}/*.c"/>
<include name="bindings/java/src/jni/*.c"/> <include name="bindings/java/src/jni/*.c"/>
<exclude name="bindings/java/src/jni/javasigar_generated.c"/> <exclude name="bindings/java/src/jni/javasigar_generated.c"/>
<include name="bindings/java/src/jni/win32/*.cpp"/> <include name="bindings/java/src/${win32.jni}/*.cpp"/>
<include name="bindings/java/src/jni/win32/*.c"/> <include name="bindings/java/src/${win32.jni}/*.c"/>
</patternset> </patternset>
<path id="jni.include.dirs"> <path id="jni.include.dirs">