forked from processing/processing-video
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.xml
executable file
·84 lines (71 loc) · 2.83 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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
<?xml version="1.0"?>
<project name="Processing Video Library" default="build">
<target name="clean" description="Clean the build directories">
<delete dir="bin" />
<delete file="library/video.jar" />
</target>
<target name="compile" description="Compile sources">
<condition property="core-built">
<available file="../processing/core/library/core.jar" />
</condition>
<fail unless="core-built" message="Please build the core library first and make sure it sits in ../processing/core/library/core.jar" />
<mkdir dir="bin" />
<javac source="1.6"
target="1.6"
srcdir="src" destdir="bin"
encoding="UTF-8"
includeAntRuntime="false"
classpath="../processing/core/library/core.jar; library/gstreamer-java.jar; library/jna.jar"
nowarn="true"
compiler="org.eclipse.jdt.core.JDTCompilerAdapter">
<compilerclasspath path="../processing/java/mode/ecj.jar" />
</javac>
</target>
<target name="build" depends="compile" description="Build video library">
<jar basedir="bin" destfile="library/video.jar" />
</target>
<target name="dist" depends="build" description="Creates distribution package">
<mkdir dir="dist/tmp/video" />
<!-- copy library files (jar and gstreamer natives) -->
<copy todir="dist/tmp/video/library">
<fileset dir="library" />
</copy>
<!-- copy examples -->
<copy todir="dist/tmp/video/examples">
<fileset dir="examples" />
</copy>
<!-- copy source -->
<copy todir="dist/tmp/video/src">
<fileset dir="src" />
</copy>
<!-- copy properties -->
<copy file="library.properties" tofile="dist/tmp/video/library.properties" />
<!-- create the java reference of the library -->
<mkdir dir="dist/tmp/video/reference" />
<javadoc bottom="Processing video library by The Processing Foundation. (c) 2011-14"
classpath="../processing/core/library/core.jar;library/gstreamer-java.jar;library/jna.jar;bin"
destdir="dist/tmp/video/reference"
verbose="false"
stylesheetfile="resources/stylesheet.css"
doctitle="Javadocs: Video"
public="true" version="false"
windowtitle="Javadocs: Video">
<link href="http://java.sun.com/javase/6/docs/api/" />
<link href="http://processing.googlecode.com/svn/trunk/processing/build/javadoc/core/" />
<taglet name="ExampleTaglet" path="resources/code" />
<fileset dir="dist/tmp/video/src" defaultexcludes="yes">
<!-- add packages to be added to reference. -->
<include name="**/*"/>
</fileset>
</javadoc>
<!-- create zip package -->
<delete file="dist/video.zip"/>
<zip destfile="dist/video.zip"
basedir="dist/tmp"
excludes="**/.DS_Store"
/>
<!-- copy properties to use by download manager -->
<copy file="library.properties" tofile="dist/video.txt" />
<delete dir="dist/tmp" />
</target>
</project>