Commit df9240ba authored by Anssi Piirainen's avatar Anssi Piirainen
Browse files

Generate secondary top level domains based on info in a separate tld repo.

parent e7947cb1
......@@ -23,9 +23,11 @@ deploy.dir=${site.dir}/content/swf
urlbase=http://flash.cdn.dev94.flowplayer.us.s3.amazonaws.com/
#urlbase=http://releases.flowplayer.org/
plugin.buildfiles=controls/build.xml,controls/build-tube.xml,controls/build-air.xml,controls/build-skinless.xml,\
rtmp/build.xml,bwcheck/build.xml,bwcheck/build-httpstreaming.xml,f4m/build.xml,cluster/build.xml,pseudostreaming/build.xml, \
httpstreaming/build.xml,menu/build.xml
plugin.buildfiles=controls/build.xml,securestreaming/build.xml
#plugin.buildfiles=controls/build.xml,controls/build-tube.xml,controls/build-air.xml,controls/build-skinless.xml,\
# rtmp/build.xml,bwcheck/build.xml,bwcheck/build-httpstreaming.xml,f4m/build.xml,cluster/build.xml,pseudostreaming/build.xml, \
# httpstreaming/build.xml,menu/build.xml
jsplugins.buildfiles=controls/build.xml,embed/build.xml,ipad/build.xml,playlist/build.xml,bitrateselect/build.xml
......
<project name="Flowplayer" default="build">
<taskdef resource="net/sf/antcontrib/antlib.xml"/>
<property file="build.generated.properties"/>
<property file="${user.home}/core.properties" />
<property file="build.properties"/>
<property name="player-version" value="3.2.17" />
<property name="secondaries-file" value="../tld/secondary" />
<property file="${player-version}.properties" />
<loadfile srcfile="${secondaries-file}" property="secondaryTxt" />
<propertyregex property="secondary-domains" input="${secondaryTxt}" regexp="\n" replace=" " global="true" />
<property name="secondary-domains-quoted" value="&quot;&#39;${secondary-domains}&#39;&quot;" />
<property name="source-dist-root-folder" value="flowplayer"/>
<property name="version-status-quoted" value="&quot;&#39;${version-status}&#39;&quot;"/>
......@@ -191,6 +198,7 @@
</macrodef>
<macrodef name="compile-player">
<attribute name="binary"/>
<attribute name="commercial"/>
<attribute name="free"/>
......@@ -198,6 +206,9 @@
<attribute name="debug"/>
<sequential>
<echo message="Building binary @{binary}, mxmlc is ${mxmlc_bin}"/>
<echo message="secondaries: ${secondary-domains}" />
<exec executable="${mxmlc_bin}" failonerror="true">
<arg line="-define=CONFIG::commercialVersion,'@{commercial}'"/>
<arg line="-define+=CONFIG::freeVersion,'@{free}'"/>
......@@ -212,6 +223,7 @@
<arg line="-define+=CONFIG::debug,'@{debug}'"/>
<arg line="-define+=CONFIG::enableByteRange,'false'"/>
<arg line="-define+=CONFIG::FLASH_10_1,'${flash.use.10.1}'"/>
<arg line="-define+=CONFIG::secondaryDomains,${secondary-domains-quoted}"/>
<arg line="${compiler.defines}"/>
<arg line="-keep-as3-metadata=Value,External"/>
<arg line="-source-path ${src-as} ${src-as-commercial} ${classpath} ${plugin-libs}"/>
......@@ -378,6 +390,7 @@
<property name="devkit-dir" value="../${devkit-dir}"/>
<property name="js.deploy.dir" value="${js.deploy.dir}"/>
<property name="mxmlc-bin" value="${mxmlc-bin}" />
<property name="secondary-domains-quoted" value="${secondary-domains-quoted}" />
</subant>
</sequential>
</macrodef>
......
......@@ -84,6 +84,7 @@
<arg line="-source-path @{src} ${mxmlc-library-path} ${mxmlc-sources}" />
<arg line="${mxmlc-define}" />
<arg line="${mxmlc-defines}" />
<arg line="-define+=CONFIG::secondaryDomains,${secondary-domains-quoted}"/>
<arg line="${libs}" />
<arg line="-library-path ${flex-libs-path} ${mxmlc-library-path}" />
<arg line="-runtime-shared-library-path=${flowplayer_lib},library.swf" />
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment