updated build.xml

This commit is contained in:
Sylvain Berfini 2011-12-28 14:38:14 +01:00
parent cdd1551daa
commit c3004ce6a1

171
build.xml
View file

@ -1,94 +1,85 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?> <?xml version="1.0" encoding="UTF-8"?>
<!-- WARNING: Eclipse auto-generated file. <project name="LinphoneLauncherActivity" default="help">
Any modifications will be overwritten.
To include a user specific buildfile here, simply create one in the same <!-- The local.properties file is created and updated by the 'android' tool.
directory with the processing instruction <?eclipse.ant.import?> It contains the path to the SDK. It should *NOT* be checked into
as the first entry and export the buildfile again. --> Version Control Systems. -->
<project basedir="." default="build" name="linphone-android"> <loadproperties srcFile="local.properties" />
<property environment="env"/>
<property name="debuglevel" value="source,lines,vars"/> <!-- The ant.properties file can be created by you. It is only edited by the
<property name="target" value="1.6"/> 'android' tool to add properties to it.
<property name="source" value="1.6"/> This is the place to change some Ant specific build properties.
<path id="Android 3.2.libraryclasspath"> Here are some properties you may want to change/update:
<pathelement location="/Users/buildbot/sdk/platforms/android-13/android.jar"/>
</path> source.dir
<path id="linphone-android.classpath"> The name of the source directory. Default is 'src'.
<pathelement location="bin/classes"/> out.dir
<path refid="Android 3.2.libraryclasspath"/> The name of the output directory. Default is 'bin'.
</path>
<target name="init"> For other overridable properties, look at the beginning of the rules
<mkdir dir="bin/classes"/> files in the SDK, at tools/ant/build.xml
<copy includeemptydirs="false" todir="bin/classes">
<fileset dir="gen"> Properties related to the SDK location or the project target should
<exclude name="**/*.launch"/> be updated using the 'android' tool with the 'update' action.
<exclude name="**/*.java"/>
</fileset> This file is an integral part of the build system for your
</copy> application and should be checked into Version Control Systems.
<copy includeemptydirs="false" todir="bin/classes">
<fileset dir="submodules/linphone/mediastreamer2/java/src"> -->
<exclude name="**/*.launch"/> <property file="ant.properties" />
<exclude name="**/*.java"/>
<exclude name="org/linphone/mediastream/MediastreamerActivity.java"/> <!-- The project.properties file is created and updated by the 'android'
</fileset> tool, as well as ADT.
</copy>
<copy includeemptydirs="false" todir="bin/classes"> This contains project specific properties such as project target, and library
<fileset dir="submodules/linphone/java/j2se"> dependencies. Lower level build properties are stored in ant.properties
<exclude name="**/*.launch"/> (or in .classpath for Eclipse projects).
<exclude name="**/*.java"/>
</fileset> This file is an integral part of the build system for your
</copy> application and should be checked into Version Control Systems. -->
<copy includeemptydirs="false" todir="bin/classes"> <loadproperties srcFile="project.properties" />
<fileset dir="submodules/linphone/java/common">
<exclude name="**/*.launch"/> <!-- quick check on sdk.dir -->
<exclude name="**/*.java"/> <fail
</fileset> message="sdk.dir is missing. Make sure to generate local.properties using 'android update project'"
</copy> unless="sdk.dir"
<copy includeemptydirs="false" todir="bin/classes"> />
<fileset dir="submodules/linphone/coreapi/help/java">
<exclude name="**/*.launch"/>
<exclude name="**/*.java"/> <!-- extension targets. Uncomment the ones where you want to do custom work
</fileset> in between standard targets -->
</copy> <!--
<copy includeemptydirs="false" todir="bin/classes"> <target name="-pre-build">
<fileset dir="src">
<exclude name="**/*.launch"/>
<exclude name="**/*.java"/>
</fileset>
</copy>
</target> </target>
<target name="clean"> <target name="-pre-compile">
<delete dir="bin/classes"/>
</target> </target>
<target depends="clean" name="cleanall"/>
<target depends="build-subprojects,build-project" name="build"/> /* This is typically used for code obfuscation.
<target name="build-subprojects"/> Compiled code location: ${out.classes.absolute.dir}
<target depends="init" name="build-project"> If this is not done in place, override ${out.dex.input.absolute.dir} */
<echo message="${ant.project.name}: ${ant.file}"/> <target name="-post-compile">
<javac debug="true" debuglevel="${debuglevel}" destdir="bin/classes" source="${source}" target="${target}">
<src path="gen"/>
<classpath refid="linphone-android.classpath"/>
</javac>
<javac debug="true" debuglevel="${debuglevel}" destdir="bin/classes" source="${source}" target="${target}">
<src path="submodules/linphone/mediastreamer2/java/src"/>
<exclude name="org/linphone/mediastream/MediastreamerActivity.java"/>
<classpath refid="linphone-android.classpath"/>
</javac>
<javac debug="true" debuglevel="${debuglevel}" destdir="bin/classes" source="${source}" target="${target}">
<src path="submodules/linphone/java/j2se"/>
<classpath refid="linphone-android.classpath"/>
</javac>
<javac debug="true" debuglevel="${debuglevel}" destdir="bin/classes" source="${source}" target="${target}">
<src path="submodules/linphone/java/common"/>
<classpath refid="linphone-android.classpath"/>
</javac>
<javac debug="true" debuglevel="${debuglevel}" destdir="bin/classes" source="${source}" target="${target}">
<src path="submodules/linphone/coreapi/help/java"/>
<classpath refid="linphone-android.classpath"/>
</javac>
<javac debug="true" debuglevel="${debuglevel}" destdir="bin/classes" source="${source}" target="${target}">
<src path="src"/>
<classpath refid="linphone-android.classpath"/>
</javac>
</target> </target>
<target description="Build all projects which reference this project. Useful to propagate changes." name="build-refprojects"/> -->
<!-- Import the actual build file.
To customize existing targets, there are two options:
- Customize only one target:
- copy/paste the target into this file, *before* the
<import> task.
- customize it to your needs.
- Customize the whole content of build.xml
- copy/paste the content of the rules files (minus the top node)
into this file, replacing the <import> task.
- customize to your needs.
***********************
****** IMPORTANT ******
***********************
In all cases you must update the value of version-tag below to read 'custom' instead of an integer,
in order to avoid having your file be overridden by tools such as "android update project"
-->
<!-- version-tag: 1 -->
<import file="${sdk.dir}/tools/ant/build.xml" />
</project> </project>