You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@royale.apache.org by jo...@apache.org on 2021/03/24 17:32:09 UTC
[royale-asjs] branch develop updated: Ant: if env.PLAYERGLOBAL_HOME
is not specified,
uses Apache playerglobal to build framework. If env.ANT_HOME is not
specified, uses Apache airglobal to build framework.
This is an automated email from the ASF dual-hosted git repository.
joshtynjala 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 128cfab Ant: if env.PLAYERGLOBAL_HOME is not specified, uses Apache playerglobal to build framework. If env.ANT_HOME is not specified, uses Apache airglobal to build framework.
128cfab is described below
commit 128cfabc5887c2dc0568db2f6f0705b09e223aea
Author: Josh Tynjala <jo...@apache.org>
AuthorDate: Wed Mar 24 10:31:53 2021 -0700
Ant: if env.PLAYERGLOBAL_HOME is not specified, uses Apache playerglobal to build framework. If env.ANT_HOME is not specified, uses Apache airglobal to build framework.
---
build.xml | 22 +++++++++++++++++++++-
1 file changed, 21 insertions(+), 1 deletion(-)
diff --git a/build.xml b/build.xml
index 99a48df..d2d6a12 100644
--- a/build.xml
+++ b/build.xml
@@ -203,7 +203,7 @@
<property name="no.thirdparty-downloads" value="set" />
</target>
- <target name="prebuild" depends="check-compile-env,thirdparty-downloads,create-description,copy-externs,copy-compiler,create-config"
+ <target name="prebuild" depends="check-compile-env,thirdparty-downloads,create-description,copy-externs,copy-playerglobal,copy-airglobal,copy-compiler,create-config"
description="Stuff that needs to be done before any builds." unless="airsdk.found"/>
<target name="check-compile-env" depends="check-playerglobal-home,check-air-home,check-compiler-home" unless="airsdk.found"
@@ -495,6 +495,24 @@ limitations under the License.
<antcall target="rename_jquery" />
</target>
+ <target name="copy-playerglobal" depends="check-typedefs-home" unless="env.PLAYERGLOBAL_HOME">
+ <copy todir="${basedir}/frameworks/libs/player/${playerglobal.version}" flatten="true" overwrite="true" failonerror="true">
+ <fileset dir="${ROYALE_TYPEDEFS_HOME}/playerglobal/target">
+ <include name="playerglobal.swc"/>
+ </fileset>
+ </copy>
+ <property name="env.PLAYERGLOBAL_HOME" value="${basedir}/frameworks/libs/player"/>
+ </target>
+
+ <target name="copy-airglobal" depends="check-typedefs-home" unless="env.AIR_HOME">
+ <copy todir="${basedir}/frameworks/libs/air" flatten="true" overwrite="true" failonerror="true">
+ <fileset dir="${ROYALE_TYPEDEFS_HOME}/airglobal/target">
+ <include name="airglobal.swc"/>
+ </fileset>
+ </copy>
+ <property name="env.AIR_HOME" value="${basedir}"/>
+ </target>
+
<target name="copy-compiler" depends="check-compiler-home" description="Copy compiler jars to where they are supposed to go">
<mkdir dir="${basedir}/lib" />
<echo>Copying Compiler from ${ROYALE_COMPILER_REPO}</echo>
@@ -668,6 +686,8 @@ limitations under the License.
<target name="frameworks" description="Full build of all Actionscript framework SWCs, including resource bundles and themes" unless="airsdk.found">
<ant dir="${basedir}/frameworks">
<property name="locale" value="${locale}"/>
+ <property name="env.PLAYERGLOBAL_HOME" value="${env.PLAYERGLOBAL_HOME}"/>
+ <property name="env.AIR_HOME" value="${env.AIR_HOME}"/>
</ant>
<antcall target="tweak-for-jsonly"/>
</target>