You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flex.apache.org by jm...@apache.org on 2013/06/04 00:43:08 UTC

[4/8] git commit: [flex-sdk] [refs/heads/develop] - Changed build files to us zip of pixel bender files on Linux

Changed build files to us zip of pixel bender files on Linux


Project: http://git-wip-us.apache.org/repos/asf/flex-sdk/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-sdk/commit/a59ab44e
Tree: http://git-wip-us.apache.org/repos/asf/flex-sdk/tree/a59ab44e
Diff: http://git-wip-us.apache.org/repos/asf/flex-sdk/diff/a59ab44e

Branch: refs/heads/develop
Commit: a59ab44e26d84a84d05b7d06fb7d5c57236ed288
Parents: e306116
Author: Justin Mclean <jm...@apache.org>
Authored: Tue Jun 4 07:31:33 2013 +1000
Committer: Justin Mclean <jm...@apache.org>
Committed: Tue Jun 4 07:31:33 2013 +1000

----------------------------------------------------------------------
 frameworks/projects/spark/build.xml |   26 ++++++++++++++++++++++++--
 1 files changed, 24 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/a59ab44e/frameworks/projects/spark/build.xml
----------------------------------------------------------------------
diff --git a/frameworks/projects/spark/build.xml b/frameworks/projects/spark/build.xml
index 550f950..c526808 100644
--- a/frameworks/projects/spark/build.xml
+++ b/frameworks/projects/spark/build.xml
@@ -84,6 +84,21 @@
         </sequential>
     </macrodef>
         
+    <condition property="isMac" value="true">
+        <os family="mac"/>
+    </condition>
+    <condition property="isWindows">
+        <os family="windows" />
+    </condition>   
+    <condition property="isLinux">
+        <and>
+          <os family="unix"/>    
+          <not>
+            <os family="mac"/>    
+          </not>
+        </and>
+    </condition>  
+
     <target name="main" depends="clean,compile" description="Clean build of spark.swc and en_US">
         <bundle locale="${locale}"/>
     </target>
@@ -175,9 +190,16 @@
         </delete>
     </target>
 
-    <target name="compile" depends="pixelbender-compile, swc-compile" description="Compiles spark.swc"/>
+    <target name="compile" depends="pixelbender-compile, pixelbender-unzip, swc-compile" description="Compiles spark.swc"/>
+
+    <target name="pixelbender-unzip" unless="isWindows,isOSX">
+	<echo message="Unziping pixel bender files" />
+	<gunzip src="${env.PIXELBENDER_HOME}/pb.tar.gz" dest="${FLEX_HOME}" />
+	<untar src="${FLEX_HOME}/pb.tar" dest="${FLEX_HOME}" />
+	<delete file="${FLEX_HOME}/pb.tar" />
+    </target>
     
-    <target name="pixelbender-compile">
+    <target name="pixelbender-compile" unless="isLinux">
         <exec executable="${env.PIXELBENDER_HOME}/pbutil">
             <arg value="${FLEX_HOME}/frameworks/projects/spark/asdoc/en_US/spark/effects/examples/assets/twist.pbk" />
             <arg value="${FLEX_HOME}/frameworks/projects/spark/asdoc/en_US/spark/effects/examples/assets/twist.pbj" />