diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 18:45:59 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 18:45:59 +0000 |
commit | 19fcec84d8d7d21e796c7624e521b60d28ee21ed (patch) | |
tree | 42d26aa27d1e3f7c0b8bd3fd14e7d7082f5008dc /src/jaegertracing/thrift/tutorial/as3/build.xml | |
parent | Initial commit. (diff) | |
download | ceph-19fcec84d8d7d21e796c7624e521b60d28ee21ed.tar.xz ceph-19fcec84d8d7d21e796c7624e521b60d28ee21ed.zip |
Adding upstream version 16.2.11+ds.upstream/16.2.11+dsupstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/jaegertracing/thrift/tutorial/as3/build.xml')
-rw-r--r-- | src/jaegertracing/thrift/tutorial/as3/build.xml | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/src/jaegertracing/thrift/tutorial/as3/build.xml b/src/jaegertracing/thrift/tutorial/as3/build.xml new file mode 100644 index 000000000..f7ed32d04 --- /dev/null +++ b/src/jaegertracing/thrift/tutorial/as3/build.xml @@ -0,0 +1,50 @@ +<project name="tutorial" default="dist" basedir="."> + + <description>Thrift actionscript 3.0 tutorial.</description> + + <property name="gen" location="gen-as3" /> + <property name="src" location="src" /> + <property name="thrift.src" location="../../lib/as3/src/" /> + <property name="dist" location="dist" /> + + <property name="final.name" value="as3-tutorial" /> + <property name="swf.name" value="${dist}/${final.name}.swf" /> + + <target name="flex.check" unless="FLEX_HOME"> + <fail message='You must set the FLEX_HOME property pointing to your flex SDK, eg. ant -DFLEX_HOME="/Applications/Adobe Flex Builder 3/sdks/3.2.0"'/> + </target> + + <target name="flex.init" depends="flex.check" unless="flex.finished"> + <taskdef resource="flexTasks.tasks" classpath="${FLEX_HOME}/ant/lib/flexTasks.jar" /> + <property name="flex.finished" value="true"/> + </target> + + <target name="init"> + <tstamp /> + <mkdir dir="${dist}"/> + </target> + + <target name="dist" depends="generate, flex.init, init"> + <mxmlc output="${swf.name}" file="${src}/CalculatorUI.as"> + <source-path path-element="${gen}" /> + <source-path path-element="${src}" /> + <source-path path-element="${thrift.src}" /> + </mxmlc> + </target> + + <target name="generate"> + <!-- Generate the thrift gen-java source --> + <exec executable="../../compiler/cpp/thrift" failonerror="true"> + <arg line="--gen as3 ../shared.thrift"/> + </exec> + <exec executable="../../compiler/cpp/thrift" failonerror="true"> + <arg line="--gen as3 ../tutorial.thrift"/> + </exec> + </target> + + <target name="clean"> + <delete dir="${gen}"/> + <delete dir="${dist}" /> + </target> + +</project> |