Skip to content
Snippets Groups Projects
build.xml 1.93 KiB
Newer Older
  • Learn to ignore specific revisions
  • <?xml version="1.0" encoding="UTF-8"?>
    <project name="libjitsi">
    
      <property file="local.properties" />
      <property name="output" value="classes" />
    
      <path id="compile.classpath">
        <fileset dir="lib" includes="*.jar" />
      </path>
    
    
      <target
          name="clean"
          description="Remove all compiled/generated files and prepare for a clean compile/build.">
    
        <delete failonerror="false" includeemptydirs="true">
          <fileset dir="${output}" />
        </delete>
      </target>
    
      <target name="compile">
        <mkdir dir="${output}" />
        <javac
            classpathref="compile.classpath"
            destdir="${output}"
            fork="true"
            source="1.5"
            srcdir="src"
            target="1.5" />
      </target>
    
    
    Damian Minkov's avatar
    Damian Minkov committed
      <target name="compile-g729">
         <replace file="src/org/jitsi/impl/neomedia/codec/EncodingConfiguration.java"
                  token="public static final boolean G729 = false"
                  value="public static final boolean G729 = true"/>
    
          <antcall target="compile" />
    
          <replace file="src/org/jitsi/impl/neomedia/codec/EncodingConfiguration.java"
                        token="public static final boolean G729 = true"
                        value="public static final boolean G729 = false "/>
       </target>
    
    
      <target name="jar" depends="compile">
        <jar
            compress="true"
            destfile="${output}/libjitsi.jar">
          <fileset casesensitive="no" dir="${output}">
            <include name="**/*.class" />
          	<include name="**/*.properties" />
            <exclude name="${output}/libjitsi.jar" />
          </fileset>
        </jar>    
      </target>
    
      <target
          name="make"
          depends="compile,jar"
          description="Incrementally compile and jar/package the project." />
    
      <target
          name="rebuild"
          depends="clean,make"
          description="Clean and make the project." />
    
    
    Damian Minkov's avatar
    Damian Minkov committed
      <target
          name="make-g729"
          depends="compile-g729,jar"
          description="Incrementally compile and jar/package the project including g729." />