-
Notifications
You must be signed in to change notification settings - Fork 3
/
build_flash.xml
101 lines (90 loc) · 3.52 KB
/
build_flash.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
<?xml version="1.0" encoding="utf-8"?>
<project name="HDSPlayer" default="main">
<property environment="env"/>
<property file="build.properties"/>
<!-- do not change next 2 lines, it adds flex tasks to ant -->
<property name="FLEX_HOME" value="/opt/flex_sdk_4.6.0"/>
<property name="FLEXTASKS" value="${FLEX_HOME}/ant/lib/flexTasks.jar"/>
<taskdef resource="flexTasks.tasks" classpath="${FLEXTASKS}"/>
<!-- create the html and js files -->
<target name="wrapper">
<html-wrapper
application="${ant.project.name}"
bgcolor="#000000"
swf="${ant.project.name}"
history="false"
express-install="true"
version-detection="true"
output="${basedir}/build"/>
</target>
<!-- Build closed caption swc -->
<target name="build-CC-osmf">
<compc output="${basedir}/src/osmf/lib/closedCaption.swc" >
<source-path path-element="${basedir}/utils/ClosedCaption/"/>
<include-sources dir="${basedir}/utils/ClosedCaption/" includes="*.as"/>
<library-path dir="${basedir}/src/osmf/lib" append="true">
<include name="*.swc"/>
</library-path>
</compc>
</target>
<target name="build-CC-akamai">
<compc output="${basedir}/src/akamai/lib/closedCaption.swc" >
<source-path path-element="${basedir}/utils/ClosedCaption/"/>
<include-sources dir="${basedir}/utils/ClosedCaption/" includes="*.as"/>
<library-path dir="${basedir}/src/akamai/lib" append="true">
<include name="*.swc"/>
</library-path>
</compc>
</target>
<!-- Release build for latest OSMF release and Flash Player 11.1 -->
<target name="build-osmf" >
<mxmlc
file="${basedir}/src/osmf/lib/HDSPlayer.as"
output="${basedir}/build/osmf_flash.swf"
debug="false"
incremental="false"
strict="true"
accessible="false"
link-report="link_report.xml"
static-link-runtime-shared-libraries="true">
<optimize>true</optimize>
<target-player>11.1</target-player>
<source-path path-element="${basedir}/src/osmf/lib" />
<library-path dir="${basedir}/src/osmf/lib" append="true">
<include name="*.swc"/>
</library-path>
</mxmlc>
</target>
<target name="build-akamai" >
<mxmlc
file="${basedir}/src/akamai/lib/AkamaiHDPlayer.as"
output="${basedir}/build/akamaiHD_flash.swf"
debug="false"
incremental="false"
strict="true"
accessible="false"
link-report="link_report.xml"
static-link-runtime-shared-libraries="true">
<optimize>true</optimize>
<target-player>11.1</target-player>
<source-path path-element="${basedir}/src/akamai/lib" />
<library-path dir="${basedir}/src/akamai/lib" append="true">
<include name="*.swc"/>
</library-path>
</mxmlc>
</target>
<!-- Delete files which are not required that are generated by default html-wrapper -->
<target name="clean-osmf">
<delete file="${basedir}/build/index.html"/>
<delete file="${basedir}/build/swfobject.js"/>
<delete file="${basedir}/link_report.xml"/>
<delete file="${basedir}/src/osmf/lib/closedCaption.swc"/>
</target>
<target name="clean-akamai">
<delete file="${basedir}/build/index.html"/>
<delete file="${basedir}/build/swfobject.js"/>
<delete file="${basedir}/link_report.xml"/>
<delete file="${basedir}/src/akamai/lib/closedCaption.swc"/>
</target>
<target name="main" depends="build-CC-osmf,build-CC-akamai,build-osmf,build-akamai,wrapper,clean-osmf,clean-akamai"/>
</project>