diff options
author | Hiroshi Ichikawa <gimite@gmail.com> | 2011-08-07 11:00:36 +0900 |
---|---|---|
committer | Hiroshi Ichikawa <gimite@gmail.com> | 2011-08-07 11:00:36 +0900 |
commit | 734625062581438b019967330028848c1b8b531f (patch) | |
tree | fe87641622f29598ea7097ff9df1b6386c7e5423 | |
parent | cf1ad5327834853b753f3206bfbfddc743f5b26c (diff) | |
download | web-socket-js-734625062581438b019967330028848c1b8b531f.tar.gz |
Adding Ant build file to build SWF and SWC files.
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | WebSocketMain.swf | bin | 175933 -> 175928 bytes | |||
-rw-r--r-- | flash-src/.gitignore | 1 | ||||
-rw-r--r-- | flash-src/build.properties.sample | 2 | ||||
-rwxr-xr-x | flash-src/build.sh | 2 | ||||
-rw-r--r-- | flash-src/build.xml | 65 |
6 files changed, 71 insertions, 0 deletions
@@ -1 +1,2 @@ test.html +WebSocket.swc diff --git a/WebSocketMain.swf b/WebSocketMain.swf Binary files differindex 423980c..657c762 100644 --- a/WebSocketMain.swf +++ b/WebSocketMain.swf diff --git a/flash-src/.gitignore b/flash-src/.gitignore new file mode 100644 index 0000000..56fb545 --- /dev/null +++ b/flash-src/.gitignore @@ -0,0 +1 @@ +build.properties diff --git a/flash-src/build.properties.sample b/flash-src/build.properties.sample new file mode 100644 index 0000000..6ae8786 --- /dev/null +++ b/flash-src/build.properties.sample @@ -0,0 +1,2 @@ +# Point this to your Flex SDK directory. +FLEX_HOME=/usr/local/share/flex_sdk_4 diff --git a/flash-src/build.sh b/flash-src/build.sh index 4d33853..0fb02a5 100755 --- a/flash-src/build.sh +++ b/flash-src/build.sh @@ -1,5 +1,7 @@ #!/bin/sh +# A script to build WebSocketMain.swf and WebSocketMainInsecure.zip. + # You need Flex 4 SDK: # http://opensource.adobe.com/wiki/display/flexsdk/Download+Flex+4 diff --git a/flash-src/build.xml b/flash-src/build.xml new file mode 100644 index 0000000..967ff89 --- /dev/null +++ b/flash-src/build.xml @@ -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> +
\ No newline at end of file |