You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@royale.apache.org by pi...@apache.org on 2018/01/01 17:18:43 UTC

[royale-asjs] branch develop updated: Add output-targets to sdk-description file

This is an automated email from the ASF dual-hosted git repository.

piotrz pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/royale-asjs.git


The following commit(s) were added to refs/heads/develop by this push:
     new 4bbf63c  Add output-targets to sdk-description file
4bbf63c is described below

commit 4bbf63cdedf9c0a6d84b4bbd61729ba24e6e93ba
Author: Piotr Zarzycki <pi...@gmail.com>
AuthorDate: Mon Jan 1 18:18:37 2018 +0100

    Add output-targets to sdk-description file
    
    Add output-targets to sdk-description file which showing list of possible outputs provided by sdk.
---
 build.xml | 50 ++++++++++++++++++++++++++++++++++++++++++++++----
 1 file changed, 46 insertions(+), 4 deletions(-)

diff --git a/build.xml b/build.xml
index 2342632..8e7a01a 100644
--- a/build.xml
+++ b/build.xml
@@ -320,6 +320,44 @@
         unless="ROYALE_TYPEDEFS_HOME"/>
     </target>
 
+    <target name="swf-js-output-royale-description" if="env.PLAYERGLOBAL_HOME">
+        <echo file="${basedir}/royale-sdk-description.xml" append="true">
+&lt;output-targets&gt;
+    &lt;output-target name="js" version="Ecma5Strict" /&gt;
+    &lt;output-target name="swf" version="AS3" AIR="${air.version}" Flash="${playerglobal.version}" /&gt;
+&lt;/output-targets&gt;
+&lt;/royale-sdk-description&gt;
+        </echo>
+    </target>
+
+    <target name="js-output-royale-description" unless="env.PLAYERGLOBAL_HOME">
+        <echo file="${basedir}/royale-sdk-description.xml" append="true">
+&lt;output-targets&gt;
+    &lt;output-target name="js" version="Ecma5Strict" /&gt;
+&lt;/output-targets&gt;
+&lt;/royale-sdk-description&gt;
+        </echo>
+    </target>
+
+    <target name="swf-js-output-flex-description" if="env.PLAYERGLOBAL_HOME">
+       <echo file="${basedir}/flex-sdk-description.xml" append="true">
+&lt;output-targets&gt;
+    &lt;output-target name="js" version="Ecma5Strict" /&gt;
+    &lt;output-target name="swf" version="AS3" AIR="${air.version}" Flash="${playerglobal.version}" /&gt;
+&lt;/output-targets&gt;
+&lt;/flex-sdk-description&gt;
+       </echo>
+    </target>
+
+    <target name="js-output-flex-description" unless="env.PLAYERGLOBAL_HOME">
+        <echo file="${basedir}/flex-sdk-description.xml" append="true">
+&lt;output-targets&gt;
+    &lt;output-target name="js" version="Ecma5Strict" /&gt;
+&lt;/output-targets&gt;
+&lt;/flex-sdk-description&gt;
+        </echo>
+    </target>
+
     <target name="create-description" description="Generate flex-sdk-description.xml" unless="airsdk.found">
         <tstamp>
         	<format property="build.number.date" pattern="yyyyMMdd" />
@@ -345,11 +383,13 @@
 
 --&gt;
 &lt;flex-sdk-description&gt;
-&lt;name&gt;${release.name} ${release.version} FP${playerglobal.version} AIR${air.version} ${locale}&lt;/name&gt;
+&lt;name&gt;${release.name} ${release.version}&lt;/name&gt;
 &lt;version&gt;${fb.release.version}&lt;/version&gt;
 &lt;build&gt;${build.number.date}&lt;/build&gt;
-&lt;/flex-sdk-description&gt;
         </echo>
+        <antcall target="js-output-flex-description" />
+        <antcall target="swf-js-output-flex-description" />
+
         <echo file="${basedir}/royale-sdk-description.xml">&lt;?xml version="1.0"?&gt;
 &lt;!--
 
@@ -370,11 +410,13 @@
 
 --&gt;
 &lt;royale-sdk-description&gt;
-&lt;name&gt;${release.name} ${release.version} FP${playerglobal.version} AIR${air.version} ${locale}&lt;/name&gt;
+&lt;name&gt;${release.name} ${release.version}&lt;/name&gt;
 &lt;version&gt;${fb.release.version}&lt;/version&gt;
 &lt;build&gt;${build.number.date}&lt;/build&gt;
-&lt;/royale-sdk-description&gt;
         </echo>
+
+        <antcall target="js-output-royale-description" />
+        <antcall target="swf-js-output-royale-description" />
     </target>
 	
     <target name="create-config" description="Create config files" unless="airsdk.found">

-- 
To stop receiving notification emails like this one, please contact
['"commits@royale.apache.org" <co...@royale.apache.org>'].