forked from artclarke/xuggle-xuggler
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
87 lines (77 loc) · 2.92 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
85
86
<?xml version="1.0"?>
<!--
Copyright (c) 2008, 2010 Xuggle Inc. All rights reserved.
This file is part of Xuggle-Xuggler-Main.
Xuggle-Xuggler-Main is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
Xuggle-Xuggler-Main is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License
along with Xuggle-Xuggler-Main. If not, see <http://www.gnu.org/licenses/>.
-->
<project
name="xuggle-xuggler"
default="dist"
basedir="."
xmlns:ivy="antlib:org.apache.ivy.ant"
>
<description>
Builder for the Xuggler Java Library
</description>
<!-- set global properties for this build -->
<!-- IMPRORTANT: If this Java build depends on a Native library
you must also make sure you update the major and minor
revisions in that library's "configure.ac" file, and
regenerate the build scripts -->
<property name="library.version.major" value="4"/>
<property name="library.version.minor" value="0"/>
<property name="license.key" value="LGPL License"/>
<property name="app.mainclass" value="com.xuggle.xuggler.Converter"/>
<property name="app.red5.mainclass" value="com.xuggle.xuggler.Global"/>
<property name="app.red5.mainmethod" value="init"/>
<!-- And bring in the standard build rules -->
<import file="mk/buildtools/buildhelper.xml"/>
<target name="install-java"
depends="xuggle-buildhelper.install-java, install-red5">
</target>
<target
name="install-red5"
depends="uninstall-red5"
description="Installed Red5 applications to $RED5_HOME">
<echo message="Installing ${app.name}.jar with native dependencies to: ${env.RED5_HOME}"/>
<if>
<available file="${env.RED5_HOME}"/>
<then>
<mkdir dir="${env.RED5_HOME}/plugins"/>
<copy todir="${env.RED5_HOME}/plugins">
<fileset dir="${dist.dir}/lib">
<include name="${app.name}.jar"/>
</fileset>
</copy>
</then>
</if>
</target>
<target name="uninstall-java"
depends="uninstall-red5, xuggle-buildhelper.uninstall-java"
>
</target>
<target
name="uninstall-red5"
description="Installed Red5 applications to $RED5_HOME">
<if>
<available file="${env.RED5_HOME}/plugins"/>
<then>
<echo message="Uninstalling ${app.name}.jar with native dependencies from: ${env.RED5_HOME}"/>
<delete>
<fileset dir="${env.RED5_HOME}/plugins"
includes="${app.name}.jar"
/>
</delete>
</then>
</if>
</target>
</project>