You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flex.apache.org by ah...@apache.org on 2016/04/22 19:25:16 UTC

[29/35] git commit: [flex-falcon] [refs/heads/feature/maven-migration-test] - google maps extern swc

google maps extern swc


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

Branch: refs/heads/feature/maven-migration-test
Commit: 4738daa4bfcaef9746950304e9c2b812a2fbec3c
Parents: 7482e8f
Author: Alex Harui <ah...@apache.org>
Authored: Thu Apr 21 21:01:14 2016 -0700
Committer: Alex Harui <ah...@apache.org>
Committed: Fri Apr 22 09:02:59 2016 -0700

----------------------------------------------------------------------
 externs/google_maps/build.xml                   | 54 +++++++++--
 externs/google_maps/compile-config.xml          | 97 --------------------
 .../google_maps/google_maps-compile-config.xml  | 39 --------
 3 files changed, 45 insertions(+), 145 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/4738daa4/externs/google_maps/build.xml
----------------------------------------------------------------------
diff --git a/externs/google_maps/build.xml b/externs/google_maps/build.xml
index 6cefc42..443b8af 100644
--- a/externs/google_maps/build.xml
+++ b/externs/google_maps/build.xml
@@ -23,14 +23,8 @@
     
     <property name="google_maps.version" value="3.11" />
     
-    <target name="main" depends="download, preprocess" />
+    <target name="main" depends="preprocess, externc, postprocess, compc" />
     
-    <target name="download" >
-        <!--mkdir dir="${basedir}/in" />
-        <get src="https://github.com/CreateJS/EaselJS/archive/${createjs.version}.zip"
-            dest="${basedir}/in/${createjs.version}.zip" /-->
-    </target>
-
     <!-- we need to insert a line near the beginning of the file to make the
          compiler happy. -->
     <target name="preprocess">
@@ -42,8 +36,8 @@
     <target name="preprocessfile" >
         <basename property="file.base" file="${file}" suffix=".js"/>
         <echo>file.base is ${file.base}</echo>
-        <replace file="${basedir}/externs/${file}" token="// Namespace" value="/** @const */" />
-        <replace file="${basedir}/externs/${file}">
+        <replace file="${basedir}/target/downloads/${file}" token="// Namespace" value="/** @const */" />
+        <replace file="${basedir}/target/downloads/${file}">
         	<replacetoken>google.maps = {};</replacetoken>
         	<replacevalue><![CDATA[
 /** @const */
@@ -54,4 +48,46 @@ google.maps = {};]]></replacevalue>
         </replace>
     </target>
     
+    <target name="externc" >
+        <java jar="${basedir}/../../compiler-jx/lib/externc.jar" fork="true"
+            failonerror="false">
+            <arg value="+flexlib=externs" />
+            <arg value="-debug" />
+            <arg value="-load-config=${basedir}/src/main/config/externc-config.xml" />
+        </java>
+    </target>
+    
+    <target name="postprocess" >
+    </target>
+    
+    <target name="compc" >
+        <copy file="${basedir}/src/main/config/compile-as-config.xml"
+        todir="${basedir}/target" />
+        <java jar="${basedir}/../../compiler/lib/falcon-compc.jar" fork="true"
+            failonerror="true">
+            <arg value="+flexlib=externs/frameworks" />
+            <arg value="-debug" />
+            <arg value="-external-library-path+=${basedir}/../js/target/js.swc" />
+            <arg value="-load-config=${basedir}/target/compile-as-config.xml" />
+            <arg value="-output=${basedir}/target/google_maps.swc" />
+        </java>
+    </target>
+    
+    <target name="clean">
+        <delete failonerror="false" includeEmptyDirs="true" >
+            <fileset dir="${basedir}/target">
+                <include name="**/**"/>
+                <exclude name="downloads/**"/>
+            </fileset>
+        </delete>
+    </target>
+    
+    <target name="wipe">
+        <delete failonerror="false" includeEmptyDirs="true" >
+            <fileset dir="${basedir}/target">
+                <include name="**/**"/>
+            </fileset>
+        </delete>
+    </target>
+
 </project>

http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/4738daa4/externs/google_maps/compile-config.xml
----------------------------------------------------------------------
diff --git a/externs/google_maps/compile-config.xml b/externs/google_maps/compile-config.xml
deleted file mode 100644
index ff0d4fc..0000000
--- a/externs/google_maps/compile-config.xml
+++ /dev/null
@@ -1,97 +0,0 @@
-<!--
-
-  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/mx/mx.swc</path-element>
-            <path-element>../../libs/osmf.swc</path-element>
-            <path-element>../../libs/textLayout.swc</path-element>
-        </external-library-path>
-        
-        <keep-as3-metadata>
-            <name>SkinPart</name>
-        </keep-as3-metadata>
-        
-        <mxml>
-            <minimum-supported-version>4.0.0</minimum-supported-version>
-        </mxml>
-        
-        <locale/>
-        
-        <library-path/>
-        
-        <namespaces>
-            <namespace>
-                <uri>library://ns.adobe.com/flex/spark</uri>
-                <manifest>manifest.xml</manifest>
-            </namespace>
-        </namespaces>
-        -->
-		
-        <external-library-path>
-            <path-element>../js/out/bin/js.swc</path-element>
-        </external-library-path>
-		
-        <source-path>
-            <path-element>out/as/classes</path-element>
-            <path-element>out/as/interfaces</path-element>
-        </source-path>
-        
-        <warn-no-constructor>false</warn-no-constructor>
-    </compiler>
-    
-    <include-sources>
-        <path-element>out/as/classes</path-element>
-        <path-element>out/as/interfaces</path-element>
-    </include-sources>
-
-    <include-file>
-        <name>externs/google_maps_api_v3_11.js</name>
-        <path>externs/google_maps_api_v3_11.js</path>
-    </include-file>
-
-    <!--
-    <include-file>
-        <name>defaults.css</name>
-        <path>defaults.css</path>
-    </include-file>
-    <include-file>
-        <name>assets/ErrorIndicator.png</name>
-        <path>assets/ErrorIndicator.png</path>
-    </include-file>
-    <include-file>
-        <name>assets/RequiredIndicator.png</name>
-        <path>assets/RequiredIndicator.png</path>
-    </include-file>
-    
-    <include-namespaces>
-        <uri>library://ns.adobe.com/flex/spark</uri>
-    </include-namespaces>  
-    
-    <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-falcon/blob/4738daa4/externs/google_maps/google_maps-compile-config.xml
----------------------------------------------------------------------
diff --git a/externs/google_maps/google_maps-compile-config.xml b/externs/google_maps/google_maps-compile-config.xml
deleted file mode 100644
index ef14738..0000000
--- a/externs/google_maps/google_maps-compile-config.xml
+++ /dev/null
@@ -1,39 +0,0 @@
-<!--
-
-  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</name></exclude> 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>
-        
-        <locale/>
-        
-        <source-path>
-            <path-element>src</path-element>
-        </source-path>
-        
-        <warn-no-constructor>false</warn-no-constructor>
-    </compiler>
-    
-    <external>
-        <path-element>externs/google_maps_api_v3_11.js</path-element>
-    </external>
-    
-    <as-root>out/as</as-root>
-
-</flex-config>