| 1823 |
1823 |
description="Compile the native shared library (to be called via JNI)" >
|
| 1824 |
1824 |
|
| 1825 |
1825 |
<!-- make the sudo input appear on new line -->
|
| 1826 |
|
<echo message="${line.separator}"/>
|
|
1826 |
<echo message="SRCDIR=${src.home} and ${line.separator}"/>
|
|
1827 |
|
|
1828 |
<!-- Function to normalize path variables -->
|
|
1829 |
<macrodef name="normalize-path">
|
|
1830 |
<attribute name="input"/>
|
|
1831 |
<attribute name="output"/>
|
|
1832 |
<sequential>
|
|
1833 |
<pathconvert property="@{output}" targetos="unix">
|
|
1834 |
<path path="@{input}"/>
|
|
1835 |
</pathconvert>
|
|
1836 |
</sequential>
|
|
1837 |
</macrodef>
|
|
1838 |
|
| 1827 |
1839 |
<!-- setup include and library path -->
|
| 1828 |
1840 |
<condition property="native.jvm.incpath" value="${java.home}/../" else="${java.home}">
|
| 1829 |
1841 |
<isset property="old.java.home"/>
|
| ... | ... | |
| 1831 |
1843 |
<condition property="native.jvm.libpath" value="${java.home}/lib/${os.arch}/server/" else="${java.home}/lib/server/" >
|
| 1832 |
1844 |
<isset property="old.java.home"/>
|
| 1833 |
1845 |
</condition>
|
| 1834 |
|
<exec dir="${build.home}/native" executable="${native.build.tool}" failonerror="true">
|
|
1846 |
<!-- Normalize all path variables before invoking make -->
|
|
1847 |
<normalize-path input="${src.home}/native" output="SRCDIR_UNIX"/>
|
|
1848 |
<normalize-path input="${java.home}" output="JRE_HOME_UNIX"/>
|
|
1849 |
<normalize-path input="${native.jvm.incpath}" output="JVM_INCPATH_UNIX"/>
|
|
1850 |
<normalize-path input="${native.jvm.libpath}" output="JVM_LIBPATH_UNIX"/>
|
|
1851 |
<exec dir="${build.home}/native"
|
|
1852 |
executable="${native.build.tool}"
|
|
1853 |
failonerror="true"
|
|
1854 |
spawn="false"
|
|
1855 |
logError="true">
|
| 1835 |
1856 |
<env key="CFLAGS" value='-DFWD_VERSION="\"${fwdver}\""' />
|
| 1836 |
1857 |
<arg value="SONAME=${libname}" />
|
| 1837 |
|
<arg value="SRCDIR=${src.home}/native"/>
|
| 1838 |
|
<arg value="JRE_HOME=${java.home}"/>
|
| 1839 |
|
<arg value="JVM_INCPATH=${native.jvm.incpath}"/>
|
| 1840 |
|
<arg value="JVM_LIBPATH=${native.jvm.libpath}"/>
|
|
1858 |
<arg value="SRCDIR=${SRCDIR_UNIX}"/>
|
|
1859 |
<arg value="JRE_HOME=${JRE_HOME_UNIX}"/>
|
|
1860 |
<arg value="JVM_INCPATH=${JVM_INCPATH_UNIX}"/>
|
|
1861 |
<arg value="JVM_LIBPATH=${JVM_LIBPATH_UNIX}"/>
|
| 1841 |
1862 |
<arg value="PB=${post.build}"/>
|
| 1842 |
1863 |
<arg value="SPAWN_FOLDER=${spawn.install.folder}"/>
|
| 1843 |
1864 |
<arg value="SRV_CERTS_STORE=${srv.certs}"/>
|