Chromium Code Reviews| Index: content/android/java/content.xml |
| diff --git a/content/android/java/content.xml b/content/android/java/content.xml |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..854efc5c185ecef01294e6c2f52c2d58ff79ae00 |
| --- /dev/null |
| +++ b/content/android/java/content.xml |
| @@ -0,0 +1,56 @@ |
| +<!-- Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| + |
| + Use of this source code is governed by a BSD-style license that can be |
| + found in the LICENSE file. |
| +--> |
| +<project name="Content" default="dist" basedir="."> |
| + <description> |
| + building content java source code with ant |
| + </description> |
| + <!-- set global properties for this build --> |
| + <property environment="env"/> |
| + <property name="sdk.dir" location="${env.ANDROID_SDK_ROOT}"/> |
| + <property name="sdk.version" value="${env.ANDROID_SDK_VERSION}"/> |
| + <property name="src" location="."/> |
| + <property name="build" location="build"/> |
|
Yaron
2012/04/19 00:35:34
Please use the PRODUCT_DIR approach jrg is introdu
|
| + <property name="dist" location="dist"/> |
| + |
| + <condition property="location.base" |
| + value="${sdk.dir}" |
| + else="${sdk.dir}/platforms/android-${sdk.version}"> |
| + <isset property="env.ANDROID_BUILD_TOP"/> |
| + </condition> |
| + |
| + <target name="init"> |
| + <!-- Create the time stamp --> |
| + <tstamp/> |
| + <!-- Create the build directory structure used by compile --> |
| + <mkdir dir="${build}"/> |
| + </target> |
| + |
| + <target name="compile" depends="init" |
| + description="compile the source " > |
| + <!-- Compile the java code from ${src} into ${build} --> |
| + <javac srcdir="${src}" destdir="${build}"> |
| + <classpath> |
| + <path location="${location.base}/android.jar"/> |
| + </classpath> |
| + </javac> |
| + </target> |
| + |
| + <target name="dist" depends="compile" |
| + description="generate the distribution" > |
| + <!-- Create the distribution directory --> |
| + <mkdir dir="${dist}/lib"/> |
| + |
| + <!-- Put everything in ${build} into the chromium_content.jar file --> |
| + <jar jarfile="${dist}/lib/chromium_content.jar" basedir="${build}"/> |
| + </target> |
| + |
| + <target name="clean" |
| + description="clean up" > |
| + <!-- Delete the ${build} and ${dist} directory trees --> |
| + <delete dir="${build}"/> |
| + <delete dir="${dist}"/> |
| + </target> |
| +</project> |