1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-26 16:52:41 +01:00
phorge-phorge/support/aphlict/client/build_aphlict_client.sh
Joshua Spence b01f57bfdb Explicitly enable strict compilation for the Aphlict client SWF.
Summary:
Strict mode is enabled by default, but it would be best to explicitly enable it... just in case.

Strict mode prints undefined property and function calls; also performs compile-time type checking on assignments and options supplied to method calls. See http://help.adobe.com/en_US/flex/using/WS2db454920e96a9e51e63e3d11c0bf69084-7a92.html

Test Plan: N/A

Reviewers: epriestley, #blessed_reviewers

Reviewed By: epriestley, #blessed_reviewers

Subscribers: epriestley, Korvin

Differential Revision: https://secure.phabricator.com/D9354
2014-06-03 06:10:28 -07:00

19 lines
413 B
Bash
Executable file

#!/bin/sh
BASEDIR=`dirname $0`
ROOT=`cd $BASEDIR/../../../ && pwd`;
if [ -z "$MXMLC" ]; then
echo "ERROR: Define environmental variable MXMLC to point to 'mxmlc' binary.";
exit 1;
fi;
set -e
$MXMLC \
-output=$ROOT/webroot/rsrc/swf/aphlict.swf \
-strict=true \
-warnings=true \
-source-path=$ROOT/externals/vegas/src \
-static-link-runtime-shared-libraries=true \
$BASEDIR/src/AphlictClient.as