This is an automated email from the ASF dual-hosted git repository. erikdebruin pushed a commit to branch feature/wast in repository https://gitbox.apache.org/repos/asf/royale-asjs.git
commit 2ab742d30eca4ea7a62962ac3416bdc4560c95a0 Author: Erik de Bruin <[email protected]> AuthorDate: Wed Nov 15 11:11:40 2017 +0100 Prep and build compiler-jx from the ‘wast’ root Signed-off-by: Erik de Bruin <[email protected]> --- build.xml | 22 ++++++++++++++++++++++ wast/dev-build.xml | 38 ++++++++++++++++++++++++++++++++++++++ 2 files changed, 60 insertions(+) diff --git a/build.xml b/build.xml index 0a9573b..c38c142 100644 --- a/build.xml +++ b/build.xml @@ -427,6 +427,24 @@ <copy file="${ROYALE_COMPILER_REPO}/compiler/lib/compiler-mxmlc.jar" tofile="${basedir}/lib/adt.jar" /> </target> + <target name="copy-wast" depends="copy-compiler" description="Copy relevant jars for WAST to where they are supposed to go"> + <mkdir dir="${basedir}/wast/lib" /> + <echo>Copying WAST Transpiler and related jars from 'js/lib'</echo> + <copy file="${basedir}/js/lib/wastc.jar" tofile="${basedir}/wast/lib/wastc.jar" /> + <copy file="${basedir}/lib/compiler.jar" tofile="${basedir}/wast/lib/compiler.jar" /> + <mkdir dir="${basedir}/wast/lib/external" /> + <copy todir="${basedir}/wast/lib/external"> + <fileset dir="${basedir}/lib/external"> + <include name="antlr*" /> + <include name="commons-cli*" /> + <include name="commons-io*" /> + <include name="flex-tool-api*" /> + <include name="guava*" /> + <include name="lzma-sdk*" /> + </fileset> + </copy> + </target> + <target name="check_jquery" > <condition property="jquery_exists"> <available file="${basedir}/js/libs/jquery.swc" /> @@ -530,6 +548,10 @@ <delete dir="${basedir}/in/player" failonerror="false" includeEmptyDirs="true"/> </target> + <target name="wast-clean"> + <delete dir="${basedir}/wast/lib" failonerror="false" includeEmptyDirs="true"/> + </target> + <!-- Build Examples --> diff --git a/wast/dev-build.xml b/wast/dev-build.xml new file mode 100644 index 0000000..b1ef9b3 --- /dev/null +++ b/wast/dev-build.xml @@ -0,0 +1,38 @@ +<?xml version="1.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. + +--> +<project name="royale" default="main" basedir="."> + + <target name="main" depends="compiler.jx,wast.jars" description="Full build"/> + + <target name="compiler.jx" description="Builds Royale JS Transpiler jars"> + <ant dir="../../royale-compiler/compiler-jx"> + <target name="clean" /> + <target name="main" /> + </ant> + </target> + + <target name="wast.jars" description="Copies Royale JS Transpiler jars for WAST"> + <ant dir="../"> + <target name="wast-clean" /> + <target name="copy-wast" /> + </ant> + </target> + +</project> -- To stop receiving notification emails like this one, please contact "[email protected]" <[email protected]>.
