| Revision 1904,
1.2 KB
checked in by jeroen, 2 years ago
(diff) |
|
ensured player classes are not compiled into plugin
|
| Line | |
|---|
| 1 | <project name="Plugin" default="buildJS"> |
|---|
| 2 | |
|---|
| 3 | <target name="buildAS"> |
|---|
| 4 | <exec executable="/Developer/SDKs/flex_sdk_4/bin/mxmlc" dir="../"> |
|---|
| 5 | <arg line="src/as/LiveStream.as" /> |
|---|
| 6 | <arg line="-o livestream.swf" /> |
|---|
| 7 | <arg line="-sp src/as" /> |
|---|
| 8 | <arg line="-library-path+=src/assets" /> |
|---|
| 9 | <arg line="-static-link-runtime-shared-libraries=true" /> |
|---|
| 10 | <arg line="-load-externs=libs/jwplayer-5-classes.xml" /> |
|---|
| 11 | <arg line="-use-network=false" /> |
|---|
| 12 | <arg line="-optimize=true" /> |
|---|
| 13 | <arg line="-incremental=false" /> |
|---|
| 14 | </exec> |
|---|
| 15 | <echo message="Compiled SWF plugin." /> |
|---|
| 16 | </target> |
|---|
| 17 | |
|---|
| 18 | <target name="buildJS" depends="buildAS"> |
|---|
| 19 | <java jar="yuicompressor.jar" fork="true"> |
|---|
| 20 | <arg line="'../src/js/livestream.js'"/> |
|---|
| 21 | <arg line="-o '../livestream.js'"/> |
|---|
| 22 | </java> |
|---|
| 23 | <echo message="Minified javascript." /> |
|---|
| 24 | <exec executable="python"> |
|---|
| 25 | <arg file="encode-images.py" /> |
|---|
| 26 | <arg file="../livestream.js" /> |
|---|
| 27 | <arg file="../src/assets/" /> |
|---|
| 28 | </exec> |
|---|
| 29 | <echo message="Encoded images to base64." /> |
|---|
| 30 | </target> |
|---|
| 31 | |
|---|
| 32 | </project> |
|---|
Note: See
TracBrowser
for help on using the repository browser.