Commit 75046ed3 authored by Ivo Anjo's avatar Ivo Anjo

Add correct extra include paths for JNI compilation on linux

Needed in some linux distro configurations. May also be needed for other OS's in the future.
parent 07ac0b7f
......@@ -30,6 +30,11 @@
<classpath><pathelement location="${ant-cpptasks.file}"/></classpath>
</taskdef>
<!-- platform conditions, used for conditional includes -->
<condition property="isLinux">
<os name="Linux"/>
</condition>
<path id="jars-classpath">
<fileset dir="${jars.dir}" >
<include name="*.jar"/>
......@@ -73,6 +78,9 @@
<path path="${java.home}/../include"/>
<path path="${jni.dir}"/>
</includepath>
<includepath if="isLinux">
<path path="${java.home}/../include/linux"/>
</includepath>
</cc>
</target>
......@@ -87,6 +95,9 @@
<path path="${java.home}/../include"/>
<path path="${jni.dir}"/>
</includepath>
<includepath if="isLinux">
<path path="${java.home}/../include/linux"/>
</includepath>
</cc>
</target>
......@@ -109,6 +120,9 @@
<path path="${java.home}/../include"/>
<path path="${jni.dir}"/>
</includepath>
<includepath if="isLinux">
<path path="${java.home}/../include/linux"/>
</includepath>
</cc>
</try>
<catch>
......@@ -132,6 +146,9 @@
<path path="${java.home}/../include"/>
<path path="${jni.dir}"/>
</includepath>
<includepath if="isLinux">
<path path="${java.home}/../include/linux"/>
</includepath>
</cc>
</try>
<catch>
......@@ -148,6 +165,9 @@
<path path="${java.home}/../include"/>
<path path="${jni.dir}"/>
</includepath>
<includepath if="isLinux">
<path path="${java.home}/../include/linux"/>
</includepath>
</cc>
</catch>
</trycatch>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment