bigbluebutton-Github/bigbluebutton-client/build.xml

158 lines
5.6 KiB
XML
Raw Normal View History

<?xml version="1.0" encoding="utf-8"?>
<!-- BigBlueButton Client build.xml for use by Hudson builds. -->
<project name="BigBlueButton Client" basedir="." default="cleanandmake" >
<property environment="env" />
<property name="FLEX_HOME" value="${env.FLEX_HOME}" />
<property name="APP_ROOT" value="./src" />
<property name="ROOT_DIR" value="." />
<property name="OUTPUT_DIR" value="./bin" />
<taskdef resource="flexTasks.tasks" classpath="${FLEX_HOME}/ant/lib/flexTasks.jar" />
<target name="mxmlc-component" depends="copy-config-xml" description="Compiling the BBB mxml files">
<mxmlc-compile target="${APP_ROOT}/BigBlueButton" />
<mxmlc-compile target="${APP_ROOT}/ChatModule" />
<mxmlc-compile target="${APP_ROOT}/ViewersModule" />
<mxmlc-compile target="${APP_ROOT}/ListenersModule" />
<mxmlc-compile target="${APP_ROOT}/PresentModule" />
<mxmlc-compile target="${APP_ROOT}/DeskShareModule" />
<mxmlc-compile target="${APP_ROOT}/PhoneModule" />
<mxmlc-compile target="${APP_ROOT}/VideoconfModule" />
<mxmlc-compile target="${APP_ROOT}/HighlighterModule" />
<copy todir="${OUTPUT_DIR}/conf" >
<fileset dir="./src/conf" />
</copy>
<copy todir="${OUTPUT_DIR}/swfobject/" >
<fileset dir="./src/swfobject/" />
</copy>
<copy todir="${OUTPUT_DIR}/org/bigbluebutton/common/assets/images" >
<fileset dir="./src/org/bigbluebutton/common/assets/images/" />
</copy>
<copy todir="${OUTPUT_DIR}/org/bigbluebutton/modules/listeners/view/assets/images/" >
<fileset dir="./src/org/bigbluebutton/modules/listeners/view/assets/images/" />
</copy>
<copy todir="${OUTPUT_DIR}/org/bigbluebutton/modules/phone/views/assets/images/" >
<fileset dir="./src/org/bigbluebutton/modules/phone/views/assets/images/" />
</copy>
<copy file="./html-template/bbb-deskshare-applet-0.64.jar" todir="${OUTPUT_DIR}"/>
<move todir="${OUTPUT_DIR}" >
<fileset dir="${OUTPUT_DIR}/src" />
</move>
</target>
<target name="check-config-xml">
<available file="/var/www/bigbluebutton/client/conf/config.xml" property="config-xml.present"/>
</target>
<target name="copy-config-xml" depends="check-config-xml" if="config-xml.present">
<echo message="Updating config.xml from /var/www/bigbluebutton/client/conf/config.xml" />
<copy file="/var/www/bigbluebutton/client/conf/config.xml" todir="${OUTPUT_DIR}/conf" />
</target>
<target name="generate-wrapper" depends="mxmlc-component">
<html-wrapper
title="BigBlueButton"
file="BigBlueButton.html"
height="100%"
width="100%"
bgcolor="grey"
application="BBB"
swf="BigBlueButton"
version-major="9"
version-minor="0"
version-revision="0"
history="true"
template="express-installation"
output="${OUTPUT_DIR}"
/>
<copy file="./html-template/BigBlueButton.html" todir="${OUTPUT_DIR}" overwrite="true"/>
</target>
<target name="clean">
<delete dir="${OUTPUT_DIR}" />
</target>
<target name="cleanandmake" depends="clean, localization, generate-wrapper"></target>
<macrodef name="mxmlc-compile">
<attribute name="target" description="Path to the file being compiled." />
<attribute name="flex" default="${env.FLEX_HOME}" description="Location of the Flex install." />
<attribute name="app" default="."/>
<attribute name="output" default="./output" description="" />
<sequential>
<mxmlc
file="@{target}.mxml"
output="${OUTPUT_DIR}/@{target}.swf"
debug="false"
>
<load-config filename="@{flex}/frameworks/flex-config.xml" />
<source-path path-element="@{flex}/frameworks" />
<compiler.library-path dir="@{flex}/frameworks" append="true">
<include name="libs" />
<include name="../bundles/{locale}" />
</compiler.library-path>
<compiler.library-path dir="@{app}" append="true">
<include name="libs" />
<include name="libs/generated" />
</compiler.library-path>
<default-size width="500" height="600" />
</mxmlc>
</sequential>
</macrodef>
<target name="setuplocale" depends="" description="Checking to see if need to copylocale">
<exec dir="." vmlauncher="true" executable="/bin/bash">
<arg value="setuplocale.sh"/>
</exec>
</target>
<target name="localization" depends="setuplocale" description="Builds BigBlueButton localization files">
<echo>Building Localization .swf's</echo>
<compileLocale locale="en_US" />
<compileLocale locale="zh_CN" />
<compileLocale locale="zh_TW" />
<compileLocale locale="fr_FR" />
<compileLocale locale="nl_NL" />
<compileLocale locale="es_ES" />
<compileLocale locale="vi_VN" />
<compileLocale locale="az_AZ" />
<compileLocale locale="lt_LT" />
<compileLocale locale="el_GR" />
<compileLocale locale="tr_TR" />
<compileLocale locale="pl_PL" />
<compileLocale locale="es_LA" />
<compileLocale locale="it_IT" />
<compileLocale locale="de_DE" />
<compileLocale locale="ru_RU" />
</target>
<!-- Compiles Localization Resource Bundle. -->
<macrodef name="compileLocale" description="Compiles the Resource package for the given locale">
<attribute name="locale" default="en_US"/>
<sequential>
<!--
Create the Flex Home directory for the language in question.
This is necessary to compensate for a bug in pre-3.2 releases of
mxmlc.
<mkdir dir="${FLEX_HOME}/frameworks/locale/@{locale}"/>-->
<!-- Invoke MXMLC -->
<mxmlc output="${OUTPUT_DIR}/locale/@{locale}_resources.swf">
<locale>@{locale}</locale>
<source-path path-element="locale/{locale}"/>
<include-resource-bundles>bbbResources</include-resource-bundles>
<source-path path-element="${FLEX_HOME}/frameworks"/>
</mxmlc>
</sequential>
</macrodef>
</project>