2009-06-03 06:23:56 +08:00
<?xml version="1.0" encoding="utf-8"?>
2009-12-20 02:01:09 +08:00
<!-- BigBlueButton Client build.xml for use by Hudson builds. -->
2017-05-29 20:53:07 +08:00
<project name= "BigBlueButton Client" basedir= "." default= "clean-build-all" >
<property environment= "env" />
<property name= "STATIC_RSL" value= "true" />
<property name= "DEBUG" value= "true" />
<property name= "BUILD_ENV" value= "DEV" />
<property name= "FLEX_HOME" value= "${env.FLEX_HOME}" />
<property name= "LOCALE_DIR" value= "${FLEX_HOME}/frameworks/locale" />
<property name= "BASE_DIR" value= "${basedir}" />
2017-07-18 07:14:53 +08:00
<property name= "V2_THEME" value= "V2Theme.css" />
2017-05-29 20:53:07 +08:00
<property name= "LOCALE" value= "en_US" />
<property name= "RESOURCES_DIR" value= "${BASE_DIR}/resources" />
2015-10-14 03:00:50 +08:00
<property name= "PROD_RESOURCES_DIR" value= "${RESOURCES_DIR}/prod" />
2010-06-10 05:41:30 +08:00
<property name= "SRC_DIR" value= "${BASE_DIR}/src" />
2015-10-14 03:00:50 +08:00
2013-04-28 04:18:54 +08:00
<property name= "OUTPUT_DIR" value= "${BASE_DIR}/client" />
2009-06-03 06:23:56 +08:00
<taskdef resource= "flexTasks.tasks" classpath= "${FLEX_HOME}/ant/lib/flexTasks.jar" />
2010-05-13 11:53:39 +08:00
2010-06-10 05:41:30 +08:00
<!-- Declare module names here -->
<property name= "BBB_MAIN" value= "BigBlueButton" />
2012-12-20 00:08:17 +08:00
<property name= "BROADCAST" value= "BroadcastModule" />
2010-06-10 05:41:30 +08:00
<property name= "CHAT" value= "ChatModule" />
<property name= "PRESENT" value= "PresentModule" />
2016-02-11 03:43:38 +08:00
<property name= "SCREENSHARE" value= "ScreenshareModule" />
<property name= "SCREENSHARE_SA" value= "ScreenshareStandalone" />
2012-12-07 04:23:03 +08:00
<property name= "CAM_PREVIEW_SA" value= "WebcamPreviewStandalone" />
2013-04-16 23:42:31 +08:00
<property name= "MICROPHONE_CHECK" value= "MicrophoneCheck" />
2013-04-17 05:17:00 +08:00
<property name= "CAMERA_CHECK" value= "CameraCheck" />
2013-04-18 05:47:12 +08:00
<property name= "CONNECTION_CHECK" value= "RTMPConnCheck" />
2012-12-14 05:02:44 +08:00
<property name= "CAM_VIEW_SA" value= "WebcamViewStandalone" />
2010-06-10 05:41:30 +08:00
<property name= "PHONE" value= "PhoneModule" />
2013-01-01 02:51:29 +08:00
<property name= "NOTES" value= "NotesModule" />
2010-06-10 05:41:30 +08:00
<property name= "VIDEO" value= "VideoconfModule" />
2010-07-18 04:05:57 +08:00
<property name= "WHITEBOARD" value= "WhiteboardModule" />
2012-08-23 00:23:18 +08:00
<property name= "POLLING" value= "PollingModule" />
2012-05-23 10:13:12 +08:00
<property name= "LAYOUT" value= "LayoutModule" />
2013-03-16 06:53:39 +08:00
<property name= "USERS" value= "UsersModule" />
2015-09-30 04:16:45 +08:00
<property name= "CAPTION" value= "CaptionModule" />
2011-02-01 03:47:04 +08:00
<property name= "SHAREDNOTES" value= "SharedNotesModule" />
2017-05-29 20:53:07 +08:00
<xmlproperty file= "${SRC_DIR}/conf/locales.xml" collapseAttributes= "true" />
2015-10-14 03:00:50 +08:00
2010-06-10 05:41:30 +08:00
<target name= "init-ant-contrib" >
2017-05-29 20:53:07 +08:00
<property name= "ant-contrib.jar" location= "${BASE_DIR}/build/lib/ant-contrib-0.6.jar" />
<taskdef resource= "net/sf/antcontrib/antcontrib.properties" classpath= "${ant-contrib.jar}" />
2010-06-04 02:31:37 +08:00
</target>
2015-10-14 03:00:50 +08:00
2011-09-21 22:11:20 +08:00
<target name= "locales" depends= "init-ant-contrib" >
2017-05-29 20:53:07 +08:00
<echo message= "Checking if locale output dir exists" />
<available file= "${OUTPUT_DIR}/locale" type= "file" property= "locale.dir.present" />
2015-10-14 03:00:50 +08:00
<if >
2017-05-29 20:53:07 +08:00
<equals arg1= "${locale.dir.present}" arg2= "true" />
<then >
<echo message= "Locale output dir exists. Deleting contents of ${OUTPUT_DIR}/locale" />
2011-09-21 22:11:20 +08:00
<delete >
<fileset dir= "${OUTPUT_DIR}/locale" >
2017-06-13 19:57:16 +08:00
<exclude name= "**/*.swf.cache" />
2017-05-29 20:53:07 +08:00
<include name= "**/*" />
2011-09-21 22:11:20 +08:00
</fileset>
</delete>
2017-05-29 20:53:07 +08:00
</then>
<else >
<echo message= "Locale output dir does not exists. Creating ${OUTPUT_DIR}/locale" />
<mkdir dir= "${OUTPUT_DIR}/locale" />
</else>
</if>
<echo message= "Determining supported locales." />
2011-09-21 06:28:22 +08:00
<foreach target= "build-locale" param= "supportedlocale" >
2011-09-21 22:11:20 +08:00
<path id= "locales.path.ref" >
2017-05-29 20:53:07 +08:00
<dirset dir= "${BASE_DIR}/locale" >
<!-- ignore transifex folder -->
<exclude name= ".tx" />
</dirset>
</path>
2011-09-21 06:28:22 +08:00
</foreach>
2011-09-20 04:40:18 +08:00
</target>
2015-10-14 03:00:50 +08:00
2017-07-04 01:36:53 +08:00
<target name= "branding-v2" depends= "init-ant-contrib" >
<sequential >
2017-07-18 07:14:53 +08:00
<mxmlc file= "${BASE_DIR}/branding/default/style/css/${V2_THEME}" output= "${OUTPUT_DIR}/branding/css/${V2_THEME}.swf" debug= "${DEBUG}" show-unused-type-selector-warnings= "false" incremental= "true" swf-version= "13" optimize= "true" >
2017-07-04 01:36:53 +08:00
<compiler.library-path dir= "." append= "true" >
<include name= "libs" />
</compiler.library-path>
</mxmlc>
</sequential>
</target>
2015-10-14 03:00:50 +08:00
2011-07-22 01:21:52 +08:00
<target name= "build-bbb-main-test" description= "Compile BigBlueButton Main Test" >
2017-05-29 20:53:07 +08:00
<build-main src= "${SRC_DIR}" target= "${BBB_MAIN_TEST}" />
2011-07-22 01:21:52 +08:00
</target>
2011-09-20 04:40:18 +08:00
<target name= "build-locale" >
2011-09-21 22:11:20 +08:00
<echo message= "Locale dir is ${supportedlocale}. Extract locale name." />
2017-05-29 20:53:07 +08:00
<basename property= "locale.name" file= "${supportedlocale}" />
<echo message= "Locale name is ${locale.name}" />
2011-09-21 06:28:22 +08:00
<sequential >
2017-05-29 20:53:07 +08:00
<echo message= "Building ${locale.name}" />
<available file= "${LOCALE_DIR}/${locale.name}" type= "dir" property= "locale.dir.present" />
2011-09-21 22:11:20 +08:00
<if >
2017-05-29 20:53:07 +08:00
<equals arg1= "${locale.name}" arg2= "locale" />
<then >
<echo message= "Somehow, the dirset for locales is passing the parent (${locale.name}) dir." />
<echo message= "We don't want it, so we need to skip it." />
</then>
<else >
2015-10-14 03:00:50 +08:00
<if >
2017-05-29 20:53:07 +08:00
<equals arg1= "${locale.dir.present}" arg2= "true" />
<then >
<echo message= "We already have a copy of the framework locale. No need to copy ${LOCALE_DIR}/${locale.name}" />
</then>
<else >
<echo message= "No copy of the framework locale. Copying ${LOCALE_DIR}/${locale.name}" />
<exec vmlauncher= "true" executable= "copylocale" >
<arg value= "en_US" />
<arg value= "${locale.name}" />
2015-10-14 03:00:50 +08:00
</exec>
2017-05-29 20:53:07 +08:00
</else>
2015-10-14 03:00:50 +08:00
</if>
2017-05-29 20:53:07 +08:00
<echo message= "Compiling locale ${locale.name}" />
2015-10-14 03:00:50 +08:00
<compileLocale locale= "${locale.name}" />
2017-05-29 20:53:07 +08:00
</else>
</if>
</sequential>
2011-09-20 04:40:18 +08:00
</target>
2017-05-29 20:53:07 +08:00
2017-10-10 05:48:29 +08:00
<target name= "locale" >
<compileLocale locale= "${LOCALE}" />
</target>
2013-10-22 03:37:11 +08:00
<target name= "localize" >
2017-05-29 20:53:07 +08:00
<compileLocale locale= "${LOCALE}" />
2013-10-22 03:37:11 +08:00
</target>
2015-10-14 03:00:50 +08:00
2011-09-20 04:40:18 +08:00
<macrodef name= "compileLocale" description= "Compiles the Resource package for the given locale" >
2017-05-29 20:53:07 +08:00
<attribute name= "locale" default= "en_US" />
2011-09-20 04:40:18 +08:00
<sequential >
2017-05-29 20:53:07 +08:00
<echo message= "Start building @{locale}" />
<echo message= "**********************************************" />
<echo message= "* Did you check bundles.txt and made *" />
<echo message= "* all resources listed here? *" />
<echo message= "**********************************************" />
2011-09-20 04:40:18 +08:00
<!-- Invoke MXMLC -->
2017-05-29 20:53:07 +08:00
<mxmlc output= "${OUTPUT_DIR}/locale/@{locale}_resources.swf" actionscript-file-encoding= "UTF-8" incremental= "true" >
2011-09-20 04:40:18 +08:00
<locale > @{locale}</locale>
2018-04-24 06:49:07 +08:00
<target-player > 29.0.0</target-player>
2017-05-29 20:53:07 +08:00
<source-path path-element= "locale/{locale}" />
2015-10-14 03:00:50 +08:00
2011-09-21 02:50:41 +08:00
<!--
Look into bundles.txt to find out what resources to include here.
http://forums.adobe.com/thread/758619
ralam - sept 20, 2011
-->
2013-04-28 05:53:14 +08:00
<include-resource-bundles > SharedResources</include-resource-bundles>
2011-09-20 04:40:18 +08:00
<include-resource-bundles > bbbResources</include-resource-bundles>
2015-10-14 03:00:50 +08:00
<include-resource-bundles > collections</include-resource-bundles>
<include-resource-bundles > containers</include-resource-bundles>
<include-resource-bundles > controls</include-resource-bundles>
<include-resource-bundles > core</include-resource-bundles>
<include-resource-bundles > effects</include-resource-bundles>
<include-resource-bundles > logging</include-resource-bundles>
<include-resource-bundles > messaging</include-resource-bundles>
<include-resource-bundles > modules</include-resource-bundles>
<include-resource-bundles > rpc</include-resource-bundles>
<include-resource-bundles > skins</include-resource-bundles>
2011-09-21 02:50:41 +08:00
<include-resource-bundles > styles</include-resource-bundles>
2017-05-29 20:53:07 +08:00
<source-path path-element= "${FLEX_HOME}/frameworks" />
2013-12-24 21:45:45 +08:00
<default-background-color > 0xFFFFFF</default-background-color>
2011-09-20 04:40:18 +08:00
</mxmlc>
</sequential>
</macrodef>
2015-10-14 03:00:50 +08:00
2010-06-10 05:41:30 +08:00
<target name= "build-bbb-main" description= "Compile BigBlueButton Main" >
2010-06-24 16:58:52 +08:00
<build-main src= "${SRC_DIR}" target= "${BBB_MAIN}" />
2010-06-10 05:41:30 +08:00
</target>
2012-12-20 00:08:17 +08:00
2017-05-29 20:53:07 +08:00
<target name= "build-broadcast" description= "Compile Broadcast Module" >
<build-module src= "${SRC_DIR}" target= "${BROADCAST}" />
</target>
2015-10-14 03:00:50 +08:00
2010-06-10 05:41:30 +08:00
<target name= "build-chat" description= "Compile Chat Module" >
<build-module src= "${SRC_DIR}" target= "${CHAT}" />
</target>
2015-10-14 03:00:50 +08:00
2017-05-29 20:53:07 +08:00
<target name= "build-notes" description= "Compile Notes Module" >
<build-module src= "${SRC_DIR}" target= "${NOTES}" />
</target>
2015-10-14 03:00:50 +08:00
2012-08-23 00:23:18 +08:00
<target name= "build-polling" description= "Compile Polling Module" >
<build-module src= "${SRC_DIR}" target= "${POLLING}" />
</target>
2015-10-14 03:00:50 +08:00
2010-06-10 05:41:30 +08:00
<target name= "build-present" description= "Compile Present Module" >
<build-module src= "${SRC_DIR}" target= "${PRESENT}" />
</target>
2009-12-10 04:57:45 +08:00
2017-05-29 20:53:07 +08:00
<target name= "build-screenshare-standalone" depends= "build-screenshare-no-linker" description= "Compile Screenshare Standalone Application" >
<echo message= "Compiling screenshare standalone without optimization." />
<build-module-no-link src= "${SRC_DIR}" target= "${SCREENSHARE_SA}" />
</target>
<target name= "build-screenshare-no-linker" description= "Compile Screenshare Module without the linker" >
<echo message= "Compiling screenshare without optimization." />
<build-module-no-link src= "${SRC_DIR}" target= "${SCREENSHARE}" />
</target>
<target name= "build-webcam-preview-standalone" description= "Compile Webcam Preview Standalone Application" >
<echo message= "Compiling webcam preview standalone without optimization." />
<build-module-no-link src= "${SRC_DIR}" target= "${CAM_PREVIEW_SA}" />
</target>
<target name= "build-webcam-view-standalone" description= "Compile Webcam View Standalone Application" >
<echo message= "Compiling webcam view standalone without optimization." />
<build-module-no-link src= "${SRC_DIR}" target= "${CAM_VIEW_SA}" />
</target>
<target name= "build-mic-check" description= "Compile Microphone Check Application" >
<echo message= "Compiling Microphone Check Application." />
<build-module-no-link src= "${SRC_DIR}" target= "${MICROPHONE_CHECK}" />
</target>
<target name= "build-cam-check" description= "Compile Camera Check Application" >
<echo message= "Compiling Camera Check Application." />
<build-module-no-link src= "${SRC_DIR}" target= "${CAMERA_CHECK}" />
</target>
<target name= "build-conn-check" description= "Compile Connection Check Application" >
<echo message= "Compiling Connection Check Application." />
<build-module-no-link src= "${SRC_DIR}" target= "${CONNECTION_CHECK}" />
</target>
<target name= "build-screenshare" description= "Compile Screenshare Module" >
<build-module src= "${SRC_DIR}" target= "${SCREENSHARE}" />
<echo message= "Copying deskshare applet for Screenshare Module" />
</target>
2010-06-10 05:41:30 +08:00
<target name= "build-phone" description= "Compile Phone Module" >
<build-module src= "${SRC_DIR}" target= "${PHONE}" />
</target>
2015-10-14 03:00:50 +08:00
2010-06-10 05:41:30 +08:00
<target name= "build-video" description= "Compile Video Module" >
<build-module src= "${SRC_DIR}" target= "${VIDEO}" />
</target>
2011-09-20 04:40:18 +08:00
2010-07-18 04:05:57 +08:00
<target name= "build-whiteboard" description= "Compile Whiteboard Module" >
<build-module src= "${SRC_DIR}" target= "${WHITEBOARD}" />
2010-06-10 05:41:30 +08:00
</target>
2015-10-14 03:00:50 +08:00
2012-05-23 10:13:12 +08:00
<target name= "build-layout" description= "Compile Layout Module" >
<build-module src= "${SRC_DIR}" target= "${LAYOUT}" />
</target>
2015-10-14 03:00:50 +08:00
2013-03-16 06:53:39 +08:00
<target name= "build-users" description= "Compile Users Module" >
2017-05-29 20:53:07 +08:00
<build-module src= "${SRC_DIR}" target= "${USERS}" />
2013-01-19 07:00:03 +08:00
</target>
2017-05-29 20:53:07 +08:00
2015-09-30 04:16:45 +08:00
<target name= "build-caption" description= "Compile Caption Module" >
2017-05-29 20:53:07 +08:00
<build-module src= "${SRC_DIR}" target= "${CAPTION}" />
2015-09-30 04:16:45 +08:00
</target>
2017-05-29 20:53:07 +08:00
2017-03-11 02:09:23 +08:00
<target name= "build-sharednotes" description= "Compile SharedNotes Module" >
<build-module src= "${SRC_DIR}" target= "${SHAREDNOTES}" />
2013-03-26 23:30:10 +08:00
<copy file= "${BASE_DIR}/src/org/bigbluebutton/modules/sharednotes/util/shared_notes.js" todir= "${OUTPUT_DIR}/lib/" >
</copy>
2017-03-11 02:09:23 +08:00
</target>
2011-02-01 03:47:04 +08:00
2012-08-01 06:49:09 +08:00
<!-- just a grouping of modules to compile -->
2017-05-29 20:53:07 +08:00
<target name= "build-main-chat-present" depends= "build-bbb-main, build-chat, build-present, build-layout, build-broadcast, build-users, build-caption, build-sharednotes" description= "Compile main, chat, present modules" >
2010-06-10 05:41:30 +08:00
</target>
2015-10-14 03:00:50 +08:00
2012-08-01 06:49:09 +08:00
<!-- just a grouping of modules to compile -->
2017-05-29 20:53:07 +08:00
<target name= "build-screenshare-phone-video-whiteboard-dyn" depends= "build-screenshare, build-phone, build-video, build-whiteboard, build-notes, build-polling" description= "Compile screenshare, phone, video, whiteboard modules" >
2010-06-10 05:41:30 +08:00
</target>
2015-10-14 03:00:50 +08:00
2010-06-24 16:58:52 +08:00
<macrodef name= "build-main" >
2017-05-29 20:53:07 +08:00
<attribute name= "target" description= "Module to compile" />
<attribute name= "flex" default= "${FLEX_HOME}" description= "Location of the Flex install." />
<attribute name= "app" default= "." />
2017-07-04 01:36:53 +08:00
<attribute name= "themeDir" default= "${BASE_DIR}/branding/default/style/css" />
2017-05-29 20:53:07 +08:00
<attribute name= "src" default= "${SRC_DIR}" description= "Path to the module to compile" />
<sequential >
<mxmlc file= "@{src}/@{target}.mxml" output= "${OUTPUT_DIR}/@{target}.swf" debug= "${DEBUG}" incremental= "true" swf-version= "13" optimize= "true" link-report= "linker-report.xml" >
2018-04-24 06:49:07 +08:00
<target-player > 29.0.0</target-player>
2017-05-29 20:53:07 +08:00
<load-config filename= "@{flex}/frameworks/flex-config.xml" />
<default-background-color > 0xFFFFFF</default-background-color>
2017-07-04 01:36:53 +08:00
<source-path path-element= "@{themeDir}" />
2017-05-29 20:53:07 +08:00
<source-path path-element= "@{flex}/frameworks" />
2017-11-05 22:36:02 +08:00
<source-path path-element= "@{app}/locale/{locale}" />
2017-06-13 19:34:51 +08:00
<show-unused-type-selector-warnings > false</show-unused-type-selector-warnings>
2017-11-05 22:36:02 +08:00
<allow-source-path-overlap > true</allow-source-path-overlap>
2017-05-29 20:53:07 +08:00
<theme dir= "@{flex}/frameworks/themes/Halo" >
<include name= "halo.swc" />
</theme>
<!--
2011-09-21 02:50:41 +08:00
Dump out resources to find out what resources to include building the locales.
http://forums.adobe.com/thread/758619
ralam - sept 20, 2011
-->
2017-05-29 20:53:07 +08:00
<resource-bundle-list > bundles.txt</resource-bundle-list>
<static-link-runtime-shared-libraries > ${STATIC_RSL}</static-link-runtime-shared-libraries>
<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>
<echo message= "**********************************************" />
<echo message= "* Generated bundles.txt *" />
<echo message= "* Make sure you include all resources listed *" />
<echo message= "* in the file when building the locales. *" />
<echo message= "**********************************************" />
</sequential>
</macrodef>
2015-10-14 03:00:50 +08:00
2010-06-30 09:17:12 +08:00
<macrodef name= "build-module-no-link" >
<attribute name= "target" description= "Module to compile" />
<attribute name= "flex" default= "${FLEX_HOME}" description= "Location of the Flex install." />
2017-05-29 20:53:07 +08:00
<attribute name= "app" default= "." />
2010-06-30 09:17:12 +08:00
<attribute name= "src" default= "${SRC_DIR}" description= "Path to the module to compile" />
<sequential >
2017-05-29 20:53:07 +08:00
<mxmlc file= "@{src}/@{target}.mxml" output= "${OUTPUT_DIR}/@{target}.swf" debug= "${DEBUG}" incremental= "true" swf-version= "13" >
2018-04-24 06:49:07 +08:00
<target-player > 29.0.0</target-player>
2010-06-30 09:17:12 +08:00
<load-config filename= "@{flex}/frameworks/flex-config.xml" />
<source-path path-element= "@{flex}/frameworks" />
2011-10-07 10:16:40 +08:00
<static-link-runtime-shared-libraries > ${STATIC_RSL}</static-link-runtime-shared-libraries>
2017-05-29 20:53:07 +08:00
<theme dir= "@{flex}/frameworks/themes/Halo" >
<include name= "halo.swc" />
</theme>
2010-06-30 09:17:12 +08:00
<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>
2015-10-14 03:00:50 +08:00
2010-06-10 05:41:30 +08:00
<macrodef name= "build-module" >
<attribute name= "target" description= "Module to compile" />
<attribute name= "flex" default= "${FLEX_HOME}" description= "Location of the Flex install." />
2017-05-29 20:53:07 +08:00
<attribute name= "app" default= "." />
2010-06-10 05:41:30 +08:00
<attribute name= "src" default= "${SRC_DIR}" description= "Path to the module to compile" />
<sequential >
2017-05-29 20:53:07 +08:00
<mxmlc file= "@{src}/@{target}.mxml" output= "${OUTPUT_DIR}/@{target}.swf" debug= "${DEBUG}" incremental= "true" swf-version= "13" optimize= "true" load-externs= "linker-report.xml" >
2018-04-24 06:49:07 +08:00
<target-player > 29.0.0</target-player>
2010-06-10 05:41:30 +08:00
<load-config filename= "@{flex}/frameworks/flex-config.xml" />
<source-path path-element= "@{flex}/frameworks" />
2011-10-07 10:16:40 +08:00
<static-link-runtime-shared-libraries > ${STATIC_RSL}</static-link-runtime-shared-libraries>
2017-05-29 20:53:07 +08:00
<theme dir= "@{flex}/frameworks/themes/Halo" >
<include name= "halo.swc" />
</theme>
2013-12-24 21:45:45 +08:00
<default-background-color > 0xFFFFFF</default-background-color>
2010-06-10 05:41:30 +08:00
<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>
2012-02-23 06:32:55 +08:00
2017-05-29 20:53:07 +08:00
<target name= "compile-screenshare-standalone" depends= "build-screenshare-standalone" description= "Compiling standalone screen sharing" >
<echo message= "Screenshare standalone built without optimization." />
</target>
<target name= "compile-bbb" depends= "build-main-chat-present, build-screenshare-phone-video-whiteboard-dyn, copy-resource-files" description= "Compiling the BBB without copying config.xml" >
2009-06-03 06:23:56 +08:00
</target>
2009-11-04 11:52:17 +08:00
2012-02-23 06:32:55 +08:00
<target name= "copy-config-if-needed" >
2017-05-29 20:53:07 +08:00
<if >
<available file= "${BASE_DIR}/src/conf/config.xml" />
<else >
<copy file= "/var/www/bigbluebutton/client/conf/config.xml" todir= "${BASE_DIR}/src/conf" />
</else>
</if>
2015-10-14 03:00:50 +08:00
</target>
2012-02-23 06:32:55 +08:00
<target name= "copy-join-mock-if-needed" >
2017-05-29 20:53:07 +08:00
<if >
<available file= "${BASE_DIR}/src/conf/join-mock.xml" />
<else >
<copy file= "${RESOURCES_DIR}/dev/join-mock.xml" todir= "${BASE_DIR}/src/conf" />
</else>
</if>
2015-10-14 03:00:50 +08:00
</target>
2012-02-23 06:32:55 +08:00
2017-05-29 20:53:07 +08:00
<target name= "copy-resource-files" >
<copy todir= "${OUTPUT_DIR}/swfobject/" >
2011-09-23 04:48:49 +08:00
<fileset dir= "${PROD_RESOURCES_DIR}/swfobject" />
2015-10-14 03:00:50 +08:00
</copy>
2018-02-02 00:47:36 +08:00
<copy todir= "${OUTPUT_DIR}/logos/" >
<fileset dir= "${PROD_RESOURCES_DIR}/logos" />
</copy>
2017-05-29 20:53:07 +08:00
<copy todir= "${OUTPUT_DIR}/lib/" >
<fileset dir= "${PROD_RESOURCES_DIR}/lib" />
2015-10-14 03:00:50 +08:00
</copy>
2017-05-29 20:53:07 +08:00
<copy todir= "${OUTPUT_DIR}/help/" >
<fileset dir= "${PROD_RESOURCES_DIR}/help" />
2016-08-04 04:33:56 +08:00
</copy>
2017-05-29 20:53:07 +08:00
<copy file= "${PROD_RESOURCES_DIR}/BigBlueButtonTest.html" todir= "${OUTPUT_DIR}" overwrite= "true" />
2017-11-01 03:50:54 +08:00
<copy file= "${PROD_RESOURCES_DIR}/guest-wait.html" todir= "${OUTPUT_DIR}" overwrite= "true" />
2017-05-29 20:53:07 +08:00
<copy file= "${PROD_RESOURCES_DIR}/BigBlueButton.html" todir= "${OUTPUT_DIR}" overwrite= "true" />
<copy file= "${PROD_RESOURCES_DIR}/ScreenshareStandalone.html" todir= "${OUTPUT_DIR}" overwrite= "true" />
<copy file= "${PROD_RESOURCES_DIR}/get_flash_player.gif" todir= "${OUTPUT_DIR}" overwrite= "true" />
<copy file= "${PROD_RESOURCES_DIR}/bbb.gif" todir= "${OUTPUT_DIR}" overwrite= "true" />
<copy file= "${PROD_RESOURCES_DIR}/avatar.png" todir= "${OUTPUT_DIR}" overwrite= "true" />
<copy file= "${PROD_RESOURCES_DIR}/background.jpg" todir= "${OUTPUT_DIR}" overwrite= "true" />
<copy file= "${PROD_RESOURCES_DIR}/locales.xml" todir= "${OUTPUT_DIR}/conf" overwrite= "true" />
<copy file= "${PROD_RESOURCES_DIR}/expressInstall.swf" todir= "${OUTPUT_DIR}" overwrite= "true" />
<copy file= "${PROD_RESOURCES_DIR}/example-info-data.xml" todir= "${OUTPUT_DIR}/conf" overwrite= "true" />
<copy file= "${PROD_RESOURCES_DIR}/layout.xml" todir= "${OUTPUT_DIR}/conf" overwrite= "true" />
<copy file= "${PROD_RESOURCES_DIR}/profiles.xml" todir= "${OUTPUT_DIR}/conf" overwrite= "true" />
2011-07-24 00:54:05 +08:00
<if >
2017-05-29 20:53:07 +08:00
<equals arg1= "${BUILD_ENV}" arg2= "DEV" />
2012-05-23 10:13:12 +08:00
<then >
2017-05-29 20:53:07 +08:00
<echo message= "Copying config.xml for development environment" />
2015-10-14 03:00:50 +08:00
<copy file= "${BASE_DIR}/src/conf/config.xml" todir= "${OUTPUT_DIR}/conf" />
2012-07-26 02:40:33 +08:00
<!-- echo message="Copying layout.xml for development environment"/>
2015-10-14 03:00:50 +08:00
<copy file= "${BASE_DIR}/src/conf/layout.xml" todir= "${OUTPUT_DIR}/conf" / - - >
2012-05-23 10:13:12 +08:00
</then>
<else >
2017-05-29 20:53:07 +08:00
<echo message= "Need to copy config.xml.template for production environment" />
<copy file= "${RESOURCES_DIR}/config.xml.template" todir= "${OUTPUT_DIR}/conf" overwrite= "true" />
2012-05-23 10:13:12 +08:00
</else>
</if>
2010-06-10 05:41:30 +08:00
</target>
2015-10-14 03:00:50 +08:00
2010-01-19 06:13:39 +08:00
2010-06-10 05:41:30 +08:00
<target name= "generate-html-wrapper" >
2017-07-04 01:36:53 +08:00
<html-wrapper title= "BigBlueButton" file= "BigBlueButton.html" height= "100%" width= "100%" bgcolor= "#F1F3F7" application= "BBB" swf= "BigBlueButton" version-major= "10" version-minor= "3" version-revision= "0" history= "true" output= "${OUTPUT_DIR}" />
2009-06-03 06:23:56 +08:00
</target>
2011-02-12 06:41:38 +08:00
<target name= "asdoc" >
2017-05-29 20:53:07 +08:00
<echo message= "Generating ASDocs" />
2011-02-12 06:41:38 +08:00
<delete dir= "${BASE_DIR}/asdoc" />
2017-05-29 20:53:07 +08:00
<mkdir dir= "${BASE_DIR}/asdoc" />
2011-02-12 06:41:38 +08:00
<!-- asdoc task not natively supported for ant flexTasks.jar for flex3. It is supported for flex 4, so it should be enabled here
when bbb-client is moved to Flex 4 -->
2015-10-14 03:00:50 +08:00
<!-- <asdoc output="${BASE_DIR}/asdoc"
external-library-path="{BASE_DIR}/libs"
lenient="true"
2011-02-12 06:41:38 +08:00
failonerror="true"
source-path="${SRC_DIR}"
doc-sources="${SRC_DIR}"
/> -->
<exec executable= "${FLEX_HOME}/bin/asdoc" failonerror= "true" >
2017-05-29 20:53:07 +08:00
<arg line= "-source-path ${SRC_DIR}/ " />
<arg line= "-doc-sources ${SRC_DIR}/ " />
<arg line= "-external-library-path '${BASE_DIR}/libs/' " />
<arg line= "-output '${BASE_DIR}/asdoc' " />
2011-02-12 06:41:38 +08:00
</exec>
<echo message= "Done Generating ASDocs" />
</target>
2013-04-28 05:15:01 +08:00
<target name= "clean" depends= "init-ant-contrib" >
2017-05-29 20:53:07 +08:00
<available file= "${OUTPUT_DIR}" type= "dir" property= "client.dir.present" />
<if >
<equals arg1= "${client.dir.present}" arg2= "true" />
<then >
<echo message= "Locale output dir exists. Deleting contents of ${OUTPUT_DIR}/locale" />
<delete >
<fileset dir= "${OUTPUT_DIR}" >
<exclude name= "locale/*.swf" />
2017-06-13 19:57:16 +08:00
<exclude name= "**/*.swf.cache" />
2017-05-29 20:53:07 +08:00
<exclude name= ".gitignore" />
</fileset>
<dirset dir= "${OUTPUT_DIR}" >
<include name= "**/*" />
<exclude name= "locale" />
</dirset>
</delete>
</then>
<else >
<echo message= "Output dir does not exists. Creating [${OUTPUT_DIR}] dir." />
<mkdir dir= "${OUTPUT_DIR}" />
</else>
</if>
2009-06-03 06:23:56 +08:00
</target>
2016-10-13 05:46:40 +08:00
<!-- NOTE: compile - screenshare - standalone MUST come first before compile - bbb as we need the screenshare - standalone
to be compiled without being optimized by using the linker -->
<target name= "clean-build-bbb" depends= "clean, i n i t - a n t - c o n t r i b , g e n e r a t e - h t m l - w r a p p e r , c o m p i l e - s c r e e n s h a r e - s t a n d a l o n e ,
2017-05-29 20:53:07 +08:00
build-webcam-preview-standalone, build-webcam-view-standalone, compile-bbb" description="Build BBB client skipping compiling of locales" />
2016-10-13 05:46:40 +08:00
<target name= "clean-build-all" depends= "clean, i n i t - a n t - c o n t r i b , g e n e r a t e - h t m l - w r a p p e r ,
2017-05-29 20:53:07 +08:00
compile-screenshare-standalone, build-mic-check,
2013-04-18 05:47:12 +08:00
build-cam-check, build-conn-check, build-webcam-preview-standalone, build-webcam-view-standalone,
2017-07-18 07:14:53 +08:00
compile-bbb, branding-v2" description="Build BBB client including locales" />
2016-10-13 05:46:40 +08:00
<target name= "modules" depends= "init-ant-contrib, g e n e r a t e - h t m l - w r a p p e r , c o m p i l e - s c r e e n s h a r e - s t a n d a l o n e ,
2017-05-29 20:53:07 +08:00
build-webcam-preview-standalone, build-webcam-view-standalone, compile-bbb" description="Build BBB client without locales" />
<target name= "cleanandmake" depends= "clean-build-all" description= "Build BBB client including locales" />
2009-06-03 06:23:56 +08:00
</project>