Skip to content

Commit 5c17f5a

Browse files
committed
Add dist target in build.xml
Signed-off-by: Umair Khan <[email protected]>
1 parent e1962af commit 5c17f5a

File tree

2 files changed

+52
-0
lines changed

2 files changed

+52
-0
lines changed

build.xml

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,4 +35,56 @@
3535
</javac>
3636
</target>
3737

38+
<target name="dist" depends="build" description="Creates distribution package">
39+
<mkdir dir="dist/tmp/video-android" />
40+
41+
<!-- copy library files (jar and gstreamer natives) -->
42+
<copy todir="dist/tmp/video-android/library">
43+
<fileset dir="library" />
44+
</copy>
45+
46+
<!-- copy examples -->
47+
<copy todir="dist/tmp/video-android/examples">
48+
<fileset dir="examples" />
49+
</copy>
50+
51+
<!-- copy source -->
52+
<copy todir="dist/tmp/video-android/src">
53+
<fileset dir="src" />
54+
</copy>
55+
56+
<!-- copy properties -->
57+
<copy file="library.properties" tofile="dist/tmp/video-android/library.properties" />
58+
59+
<!-- create the java reference of the library -->
60+
<!--
61+
<mkdir dir="dist/tmp/video-android/reference" />
62+
<javadoc bottom="Processing video library by The Processing Foundation. (c) 2011-14"
63+
classpath="../processing/core/library/core.jar;bin"
64+
destdir="dist/tmp/video-android/reference"
65+
verbose="false"
66+
stylesheetfile="resources/stylesheet.css"
67+
doctitle="Javadocs: Video library for Android"
68+
public="true" version="false"
69+
windowtitle="Javadocs: Video library for Android">
70+
<link href="http://java.sun.com/javase/6/docs/api/" />
71+
<link href="http://github.com/omerjerk" />
72+
<taglet name="ExampleTaglet" path="resources/code" />
73+
<fileset dir="dist/tmp/video/src" defaultexcludes="yes">
74+
<include name="**/*"/>
75+
</fileset>
76+
</javadoc> -->
77+
78+
<!-- create zip package -->
79+
<delete file="dist/video-android.zip"/>
80+
<zip destfile="dist/video-android.zip"
81+
basedir="dist/tmp"
82+
excludes="**/.DS_Store"
83+
/>
84+
85+
<!-- copy properties to use by download manager -->
86+
<copy file="library.properties" tofile="dist/video.txt" />
87+
88+
<delete dir="dist/tmp" />
89+
</target>
3890
</project>

library/video-android.jar

2.6 KB
Binary file not shown.

0 commit comments

Comments
 (0)