-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathbuild.xml
37 lines (32 loc) · 1.47 KB
/
build.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<?xml version="1.0" encoding="UTF-8"?>
<project name="ecos" basedir="." default="jar">
<description>
This is the build script to compile and deploy the ecos project.
</description>
<!-- Define directories -->
<property name="version" value="0.0.1-SNAPSHOT" />
<property name="src" value="${basedir}/src/main/java" />
<property name="test" value="${basedir}/src/test/java" />
<property name="bin" value="${basedir}/target/classes" />
<property name="native-libs" value="${basedir}/src/main/resources/lib" />
<property name="jar" value="${basedir}/target/ecos-${version}.jar" />
<property name="include" value="${basedir}/src/main/native" />
<property name="native" value="${basedir}/src/" />
<property name="external" value="${basedir}/external" />
<property name="pkgbase" value="com.github.ecos" />
<target name="prepare" description="create directories needed for compilation">
<mkdir dir="${bin}" />
</target>
<target name="javah" depends="prepare" description="run javah">
<javac destdir="${bin}" encoding="utf-8" source="1.6" debug="on" compiler="javac1.7" target="1.7" fork="yes" nowarn="yes">
<src path="${src}" />
<include name="**/NativeECOS.java" />
</javac>
<javah destdir="${include}" force="yes">
<class name="${pkgbase}.NativeECOS" />
<classpath>
<pathelement path="${bin}" />
</classpath>
</javah>
</target>
</project>