forked from neolao/flv-player
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.xml
102 lines (88 loc) · 3.97 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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
<?xml version="1.0"?>
<project name="FLV Player" basedir=".">
<property name="mtasc.dir" value="${basedir}/mtasc" />
<property name="mxmlc" value="/home/neolao/Resources/flex/flex_sdk_3/bin/mxmlc"/>
<target name="html5" description="Build html5">
<exec executable="${mxmlc}" failonerror="false">
<arg line="-benchmark -compiler.strict
-output html5/bin/player_flv_html5.swf
-compiler.source-path=html5/src
html5/src/FLVPlayer.as"/>
</exec>
</target>
<target name="template_default" depends="setup" description="Build template_default">
<property name="template.dir" value="${basedir}/template_default" />
<exec executable="cp" failonerror="true">
<arg line="${basedir}/base/player.swf ${template.dir}/player_flv.swf"/>
</exec>
<exec executable="${mtasc.dir}/${mtasc.exe}" failonerror="false">
<arg line="-version 7 -v -keep -strict -main
-cp ${basedir}/classes
-swf ${template.dir}/player_flv.swf
${template.dir}/TemplateDefault.as"/>
</exec>
</target>
<target name="template_mini" depends="setup" description="Build template_mini">
<property name="template.dir" value="${basedir}/template_mini" />
<exec executable="cp" failonerror="true">
<arg line="${basedir}/base/player.swf ${template.dir}/player_flv_mini.swf"/>
</exec>
<exec executable="${mtasc.dir}/${mtasc.exe}" failonerror="false">
<arg line="-version 7 -v -keep -strict -main
-cp ${basedir}/classes
-swf ${template.dir}/player_flv_mini.swf
${template.dir}/TemplateMini.as"/>
</exec>
</target>
<target name="template_maxi" depends="setup" description="Build template_maxi">
<property name="template.dir" value="${basedir}/template_maxi" />
<exec executable="cp" failonerror="true">
<arg line="${basedir}/base/player.swf ${template.dir}/player_flv_maxi.swf"/>
</exec>
<exec executable="${mtasc.dir}/${mtasc.exe}" failonerror="false">
<arg line="-version 8 -v -keep -main
-cp ${basedir}/classes
-cp ${template.dir}
-swf ${template.dir}/player_flv_maxi.swf
${template.dir}/TemplateMaxi.as"/>
</exec>
</target>
<target name="template_js" depends="setup" description="Build template_js">
<property name="template.dir" value="${basedir}/template_js" />
<exec executable="cp" failonerror="true">
<arg line="${basedir}/base/player.swf ${template.dir}/player_flv_js.swf"/>
</exec>
<exec executable="${mtasc.dir}/${mtasc.exe}" failonerror="false">
<arg line="-version 8 -v -keep -strict -main
-cp ${basedir}/classes
-swf ${template.dir}/player_flv_js.swf
${template.dir}/TemplateJS.as"/>
</exec>
</target>
<target name="template_multi" depends="setup" description="Build template_multi">
<property name="template.dir" value="${basedir}/template_multi" />
<exec executable="cp" failonerror="true">
<arg line="${basedir}/base/player.swf ${template.dir}/player_flv_multi.swf"/>
</exec>
<exec executable="${mtasc.dir}/${mtasc.exe}" failonerror="false">
<arg line="-version 8 -v -keep -strict -main
-cp ${basedir}/classes
-cp ${template.dir}
-swf ${template.dir}/player_flv_multi.swf
${template.dir}/TemplateMulti.as"/>
</exec>
</target>
<!-- Configuration -->
<target name="setup" depends="os-props,win,not-win" />
<target name="os-props">
<condition property="windows">
<os family="windows" />
</condition>
</target>
<target name="win" if="windows">
<property name="mtasc.exe" value="mtasc.exe" />
</target>
<target name="not-win" unless="windows">
<property name="mtasc.exe" value="mtasc" />
</target>
</project>