blob: 178f719660bba4bca8f91ee2a8ff877c036de12a (
plain)
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
|
<?xml version="1.0" encoding="utf-8"?>
<!--
Ant build file which provides yet another way (other than build.sh) to build SWF files.
You need to copy build.properties.sample to build.properties and change FLEX_HOME
for your environment.
-->
<project name="ant" basedir="." default="swf">
<property file="build.properties"/><!-- set sdk -->
<echo message="Using SDK version: ${FLEX_HOME}"/>
<!-- do not change next 2 lines, it adds needed task to ant -->
<property name="FLEXTASKS" value="${FLEX_HOME}/ant/lib/flexTasks.jar"/>
<taskdef resource="flexTasks.tasks" classpath="${FLEXTASKS}"/>
<target name="swf">
<mxmlc file="src/net/gimite/websocket/WebSocketMain.as"
output="../WebSocketMain.swf"
incremental="false"
strict="true"
accessible="false"
fork="true"
static-link-runtime-shared-libraries="true">
<optimize>true</optimize>
<target-player>10</target-player>
<raw-metadata></raw-metadata>
<source-path path-element="src"/>
<source-path path-element="third-party"/>
</mxmlc>
</target>
<target name="swfInsecure">
<mxmlc file="src/net/gimite/websocket/WebSocketMainInsecure.as"
output="../WebSocketMainInsecure.swf"
incremental="false"
strict="true"
accessible="false"
fork="true"
static-link-runtime-shared-libraries="true">
<optimize>true</optimize>
<target-player>10</target-player>
<raw-metadata></raw-metadata>
<source-path path-element="src"/>
<source-path path-element="third-party"/>
</mxmlc>
</target>
<!-- for pure .as -->
<target name="swc" depends="swcWithoutDependencies,dependencies">
<compc output="../WebSocket.swc"
incremental="false"
strict="true"
accessible="false"
fork="true"
static-link-runtime-shared-libraries="false">
<optimize>true</optimize>
<raw-metadata></raw-metadata>
<include-libraries dir=".." append="true" >
<include name="WebSocketWithoutDependencies.swc"/>
<include name="WebSocketDependencies.swc"/>
</include-libraries>
</compc>
</target>
<!-- for pure .as where you want to link your own version of third-party libraries -->
<target name="swcWithoutDependencies" depends="dependencies">
<compc output="../WebSocketWithoutDependencies.swc"
incremental="false"
strict="true"
accessible="false"
fork="true"
static-link-runtime-shared-libraries="false">
<optimize>true</optimize>
<raw-metadata></raw-metadata>
<source-path path-element="src"/>
<include-sources dir="." includes="**/*.as"/>
<external-library-path file="../WebSocketDependencies.swc" append="true"/>
</compc>
</target>
<target name="dependencies">
<compc output="../WebSocketDependencies.swc"
incremental="false"
strict="true"
accessible="false"
fork="true"
static-link-runtime-shared-libraries="false">
<optimize>true</optimize>
<raw-metadata></raw-metadata>
<source-path path-element="third-party"/>
<include-sources dir="." includes="**/*.as"/>
</compc>
</target>
</project>
|