|
|
<!-- Set a meaningful default value for when it is not. --> | <!-- Set a meaningful default value for when it is not. --> |
<property name="eclipse-home" value="${basedir}/../.."/> | <property name="eclipse-home" value="${basedir}/../.."/> |
<property name="jdk-path" value="${java.home}"/> | <property name="jdk-path" value="${java.home}"/> |
<property name="destination" value="${eclipse-home}/org.eclipse.update.core.linux/os/linux/x86/"/> |
<property name="destination" value="${eclipse-home}/org.eclipse.update.core.linux/os/linux/${arch}/"/> |
<property name="obj-path" value="${eclipse-home}/org.eclipse.update.core.linux/src/"/> | <property name="obj-path" value="${eclipse-home}/org.eclipse.update.core.linux/src/"/> |
<property name="src-path" value="${eclipse-home}/org.eclipse.update.core.linux/src/"/> | <property name="src-path" value="${eclipse-home}/org.eclipse.update.core.linux/src/"/> |
| |
|
|
<property name="header-path" value="${jdk-path}/../include"/> | <property name="header-path" value="${jdk-path}/../include"/> |
<property name="header-linux-path" value="${header-path}/linux" /> | <property name="header-linux-path" value="${header-path}/linux" /> |
| |
<echo message="gcc -o ${library-file} -shared -I${src-path} -I${header-linux-path} ${library-file} -static -lc"/> |
<echo message="gcc -o ${library-file} -shared -fPIC -I${src-path} -I${header-linux-path} ${library-file} -lc"/> |
| |
<apply executable="gcc" dest="${eclipse-home}/" parallel="false"> | <apply executable="gcc" dest="${eclipse-home}/" parallel="false"> |
<arg value="-o"/> | <arg value="-o"/> |
<arg value="${library-file}"/> | <arg value="${library-file}"/> |
<arg value="-shared"/> | <arg value="-shared"/> |
|
<arg value="-fPIC"/> |
<arg value="-I${src-path}"/> | <arg value="-I${src-path}"/> |
<arg value="-I${header-path}"/> | <arg value="-I${header-path}"/> |
<arg value="-I${header-linux-path}"/> | <arg value="-I${header-linux-path}"/> |
<srcfile/> | <srcfile/> |
<arg value="-static"/> |
|
<arg value="-lc"/> | <arg value="-lc"/> |
<fileset dir="${src-path}" includes="*.c"/> | <fileset dir="${src-path}" includes="*.c"/> |
<mapper type="glob" from="*.c" to="*.o"/> | <mapper type="glob" from="*.c" to="*.o"/> |