flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jmcl...@apache.org
Subject [5/8] git commit: [flex-sdk] [refs/heads/develop] - Changed build files to us zip of pixel bender files on Linux
Date Mon, 03 Jun 2013 22:43:09 GMT
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/9a4e7cbc
Tree: http://git-wip-us.apache.org/repos/asf/flex-sdk/tree/9a4e7cbc
Diff: http://git-wip-us.apache.org/repos/asf/flex-sdk/diff/9a4e7cbc

Branch: refs/heads/develop
Commit: 9a4e7cbca2026a7b5386ffdb31b46fb5827a9ddf
Parents: a59ab44
Author: Justin Mclean <jmclean@apache.org>
Authored: Tue Jun 4 07:43:46 2013 +1000
Committer: Justin Mclean <jmclean@apache.org>
Committed: Tue Jun 4 07:43:46 2013 +1000

----------------------------------------------------------------------
 frameworks/projects/framework/build.xml            |   26 +++++-
 .../projects/mobiletheme/compile-configAIR2.xml    |   63 +++++++++++++
 .../mobiletheme/src/MobileThemeClassesAIR2.as      |   73 +++++++++++++++
 3 files changed, 160 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/9a4e7cbc/frameworks/projects/framework/build.xml
----------------------------------------------------------------------
diff --git a/frameworks/projects/framework/build.xml b/frameworks/projects/framework/build.xml
index bbaaa54..a22ee88 100644
--- a/frameworks/projects/framework/build.xml
+++ b/frameworks/projects/framework/build.xml
@@ -83,6 +83,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 framework.swc
and en_US">
         <bundle locale="${locale}"/>
     </target>
@@ -175,7 +190,14 @@
         </delete>
     </target>
 
-    <target name="pixelbender-compile">
+    <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" unless="isLinux">
         <exec executable="${env.PIXELBENDER_HOME}/pbutil">
             <arg value="${FLEX_HOME}/frameworks/projects/framework/src/mx/graphics/shaderClasses/Color.pbk"
/>
             <arg value="${FLEX_HOME}/frameworks/projects/framework/src/mx/graphics/shaderClasses/Color.pbj"
/>
@@ -231,7 +253,7 @@
         </mxmlc>
     </target>
         
-    <target name="compile" depends="assets-compile,pixelbender-compile" description="Compiles
framework.swc">
+    <target name="compile" depends="assets-compile,pixelbender-compile,pixelbender-unzip"
description="Compiles framework.swc">
         <echo message="Compiling frameworks/libs/framework.swc"/>
         <!-- Load the <compc> task. We can't do this at the <project> level
-->
         <!-- because targets that run before flexTasks.jar gets built would fail. -->

http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/9a4e7cbc/frameworks/projects/mobiletheme/compile-configAIR2.xml
----------------------------------------------------------------------
diff --git a/frameworks/projects/mobiletheme/compile-configAIR2.xml b/frameworks/projects/mobiletheme/compile-configAIR2.xml
new file mode 100644
index 0000000..341147b
--- /dev/null
+++ b/frameworks/projects/mobiletheme/compile-configAIR2.xml
@@ -0,0 +1,63 @@
+<!--
+
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+
+-->
+<flex-config>
+
+    <compiler>
+
+        <accessible>true</accessible>
+        
+        <external-library-path>
+            <path-element>${env.PLAYERGLOBAL_HOME}/${playerglobal.version}/playerglobal.swc</path-element>
+            <path-element>../../libs/framework.swc</path-element>
+            <path-element>../../libs/spark.swc</path-element>
+            <path-element>../../libs/textLayout.swc</path-element>
+            <path-element>../../libs/mobile/mobilecomponents.swc</path-element>
+        </external-library-path>
+
+        <library-path/>
+
+        <namespaces>
+            <namespace>
+                <uri>library://ns.adobe.com/flex/spark</uri>
+                <manifest>../../spark-manifest.xml</manifest>
+            </namespace>
+        </namespaces>
+        
+        <source-path>
+            <path-element>src</path-element>
+        </source-path>
+        
+        <warn-no-constructor>false</warn-no-constructor>
+
+    </compiler>
+    
+    <include-classes>
+        <class>MobileThemeClassesAIR2</class>
+    </include-classes>
+    
+    <include-file>
+        <name>defaults.css</name>
+        <path>defaults.css</path>
+    </include-file>
+    
+    <resource-bundle-list>bundles.properties</resource-bundle-list>
+    
+    <target-player>${playerglobal.version}</target-player>
+
+</flex-config>

http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/9a4e7cbc/frameworks/projects/mobiletheme/src/MobileThemeClassesAIR2.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/mobiletheme/src/MobileThemeClassesAIR2.as b/frameworks/projects/mobiletheme/src/MobileThemeClassesAIR2.as
new file mode 100644
index 0000000..9e79108
--- /dev/null
+++ b/frameworks/projects/mobiletheme/src/MobileThemeClassesAIR2.as
@@ -0,0 +1,73 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  Licensed to the Apache Software Foundation (ASF) under one or more
+//  contributor license agreements.  See the NOTICE file distributed with
+//  this work for additional information regarding copyright ownership.
+//  The ASF licenses this file to You under the Apache License, Version 2.0
+//  (the "License"); you may not use this file except in compliance with
+//  the License.  You may obtain a copy of the License at
+//
+//      http://www.apache.org/licenses/LICENSE-2.0
+//
+//  Unless required by applicable law or agreed to in writing, software
+//  distributed under the License is distributed on an "AS IS" BASIS,
+//  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//  See the License for the specific language governing permissions and
+//  limitations under the License.
+//
+////////////////////////////////////////////////////////////////////////////////
+
+package
+{
+
+internal class MobileThemeClassesAIR2
+{
+
+/**
+ *  @private
+ *  This class is used to link additional classes into mobile.swc
+ *  beyond those that are found by dependecy analysis starting
+ *  from the classes specified in manifest.xml.
+ */
+import spark.skins.mobile.ActionBarSkin; ActionBarSkin;
+import spark.skins.mobile.BeveledActionButtonSkin; BeveledActionButtonSkin;
+import spark.skins.mobile.BeveledBackButtonSkin; BeveledBackButtonSkin;
+import spark.skins.mobile.ButtonBarSkin; spark.skins.mobile.ButtonBarSkin;
+import spark.skins.mobile.ButtonSkin; spark.skins.mobile.ButtonSkin;
+import spark.skins.mobile.CalloutSkin; spark.skins.mobile.CalloutSkin;
+import spark.skins.mobile.CalloutActionBarSkin; spark.skins.mobile.CalloutActionBarSkin;
+import spark.skins.mobile.CalloutViewNavigatorSkin; spark.skins.mobile.CalloutViewNavigatorSkin;
+import spark.skins.mobile.CheckBoxSkin; spark.skins.mobile.CheckBoxSkin;
+import spark.skins.mobile.DefaultBeveledActionButtonSkin; spark.skins.mobile.DefaultBeveledActionButtonSkin;
+import spark.skins.mobile.DefaultBeveledBackButtonSkin; spark.skins.mobile.DefaultBeveledBackButtonSkin;
+import spark.skins.mobile.DefaultButtonSkin; spark.skins.mobile.DefaultButtonSkin;
+import spark.skins.mobile.DefaultTransparentActionButtonSkin; spark.skins.mobile.DefaultTransparentActionButtonSkin;
+import spark.skins.mobile.DefaultTransparentNavigationButtonSkin; spark.skins.mobile.DefaultTransparentNavigationButtonSkin;
+import spark.skins.mobile.DateSpinnerSkin; spark.skins.mobile.DateSpinnerSkin;
+import spark.skins.mobile.HScrollBarSkin; spark.skins.mobile.HScrollBarSkin;
+import spark.skins.mobile.HSliderSkin; spark.skins.mobile.HSliderSkin;
+import spark.skins.mobile.ImageSkin; spark.skins.mobile.ImageSkin;
+import spark.skins.mobile.ListSkin; spark.skins.mobile.ListSkin;
+import spark.skins.mobile.RadioButtonSkin; spark.skins.mobile.RadioButtonSkin;
+import spark.skins.mobile.SpinnerListContainerSkin; SpinnerListContainerSkin;
+import spark.skins.mobile.SpinnerListScrollerSkin; SpinnerListScrollerSkin;
+import spark.skins.mobile.SpinnerListSkin; SpinnerListSkin;
+import spark.skins.mobile.SkinnableContainerSkin; SkinnableContainerSkin;
+import spark.skins.mobile.SplitViewNavigatorSkin; SplitViewNavigatorSkin;
+import spark.skins.mobile.TabbedViewNavigatorApplicationSkin; TabbedViewNavigatorApplicationSkin;
+import spark.skins.mobile.TabbedViewNavigatorSkin; TabbedViewNavigatorSkin;
+import spark.skins.mobile.TabbedViewNavigatorTabBarSkin; TabbedViewNavigatorTabBarSkin;
+import spark.skins.mobile.TextAreaSkin; TextAreaSkin;
+import spark.skins.mobile.TextAreaHScrollBarSkin; TextAreaHScrollBarSkin;
+import spark.skins.mobile.TextAreaVScrollBarSkin; TextAreaVScrollBarSkin;
+import spark.skins.mobile.TextInputSkin; TextInputSkin;
+import spark.skins.mobile.ToggleSwitchSkin; ToggleSwitchSkin;
+import spark.skins.mobile.TransparentActionButtonSkin; TransparentActionButtonSkin;
+import spark.skins.mobile.TransparentNavigationButtonSkin; TransparentNavigationButtonSkin;
+import spark.skins.mobile.ViewMenuItemSkin; ViewMenuItemSkin;
+import spark.skins.mobile.ViewMenuSkin; ViewMenuSkin;
+import spark.skins.mobile.ViewNavigatorApplicationSkin; ViewNavigatorApplicationSkin;
+import spark.skins.mobile.ViewNavigatorSkin; ViewNavigatorSkin;
+import spark.skins.mobile.VScrollBarSkin; spark.skins.mobile.VScrollBarSkin;
+}
+}


Mime
View raw message