-
Notifications
You must be signed in to change notification settings - Fork 489
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding Ant build file to build SWF and SWC files.
- Loading branch information
Showing
6 changed files
with
71 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
test.html | ||
WebSocket.swc |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
build.properties |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# Point this to your Flex SDK directory. | ||
FLEX_HOME=/usr/local/share/flex_sdk_4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
<!-- | ||
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. | ||
--> | ||
|
||
<?xml version="1.0" encoding="utf-8"?> | ||
<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"> | ||
<delete file="../WebSocketMain.swf"/> | ||
<mxmlc file="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="."/> | ||
</mxmlc> | ||
</target> | ||
|
||
<target name="swfInsecure"> | ||
<delete file="../WebSocketMainInsecure.swf" /> | ||
<mxmlc file="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="."/> | ||
</mxmlc> | ||
</target> | ||
|
||
<target name="swc" ><!-- for pure .as --> | ||
<delete file="../WebSocket.swc" /> | ||
<compc output="../WebSocket.swc" | ||
incremental="false" | ||
strict="true" | ||
accessible="false" | ||
fork="true" | ||
static-link-runtime-shared-libraries="true"> | ||
<optimize>true</optimize> | ||
<raw-metadata></raw-metadata> | ||
<include-sources dir="." includes="**/*.as"/> | ||
<source-path path-element="."/> | ||
</compc> | ||
</target> | ||
|
||
</project> | ||
|