Skip to content

Commit 31bf2f2

Browse files
committed
Add ant build configuration
Signed-off-by: Umair Khan <[email protected]>
1 parent 2340a28 commit 31bf2f2

File tree

2 files changed

+40
-0
lines changed

2 files changed

+40
-0
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
bin
2+
/dist

build.xml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
<?xml version="1.0"?>
2+
<project name="Video Library for Processing Android" default="build">
3+
4+
<property name="processing.dir" value="../../processing" />
5+
6+
<target name="clean" description="Clean the build directories">
7+
<delete dir="bin" />
8+
<delete file="library/video-android.jar" />
9+
</target>
10+
11+
<target name="build" depends="sdk_chatter,compile" description="Build video library for Processing Android" >
12+
<jar basedir="bin" destfile="library/video-android.jar" />
13+
</target>
14+
15+
<target name="sdk_chatter" unless="env.ANDROID_SDK">
16+
<echo message="ANDROID_SDK not set, skipping build." />
17+
</target>
18+
19+
<target name="compile" description="Compile sources">
20+
<condition property="core-built">
21+
<available file="../processing/core/library/core.jar" />
22+
</condition>
23+
<fail unless="core-built" message="Please build the core library first and make sure it sits in ../processing/core/library/core.jar" />
24+
25+
<mkdir dir="bin" />
26+
<javac source="1.6"
27+
target="1.6"
28+
srcdir="src" destdir="bin"
29+
encoding="UTF-8"
30+
includeAntRuntime="false"
31+
classpath="../processing/core/library/core.jar;${env.ANDROID_SDK}/platforms/android-21/android.jar"
32+
nowarn="true"
33+
compiler="org.eclipse.jdt.core.JDTCompilerAdapter">
34+
<compilerclasspath path="../processing/java/mode/org.eclipse.jdt.core.jar;../processing/java/mode/jdtCompilerAdapter.jar" />
35+
</javac>
36+
</target>
37+
38+
</project>

0 commit comments

Comments
 (0)