Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 <project name="content" default="dist" basedir="."> | |
|
Yaron
2012/04/25 17:26:09
Again, please rebase on 10035034 which added this
John Knottenbelt
2012/04/26 15:14:51
These Java files are not part of the embedder API,
| |
| 2 <description> | |
| 3 Building content/ java source code with ant. | |
| 4 </description> | |
| 5 <!-- Set global properties for this build --> | |
| 6 <property environment="env"/> | |
| 7 <property name="sdk.dir" location="${env.ANDROID_SDK_ROOT}"/> | |
| 8 <!-- TODO(jrg): The apk-runner's version is hardcoded to SDK version 14. These | |
| 9 two should be unified. --> | |
| 10 <property name="sdk.version" value="${env.ANDROID_SDK_VERSION}"/> | |
| 11 <property name="src" location="."/> | |
| 12 <property name="dist" location="dist"/> | |
| 13 <property name="out.dir" location="${PRODUCT_DIR}/lib.java"/> | |
| 14 <!-- TODO(jrg): establish a standard for the intermediate java | |
| 15 directories. Settle on a standard once ant/jar build files | |
| 16 like this are androidified --> | |
| 17 <property name="dest.dir" location="${PRODUCT_DIR}/java/content"/> | |
| 18 | |
| 19 <!-- Set path depending on the type of repository. If ANDROID_BUILD_TOP is | |
| 20 set then build using the provided location. Otherwise, assume the build | |
| 21 is using the released SDK and set the path accordingly. --> | |
| 22 <condition property="location.base" | |
| 23 value="${sdk.dir}" | |
| 24 else="${sdk.dir}/platforms/android-${sdk.version}"> | |
| 25 <isset property="env.ANDROID_BUILD_TOP"/> | |
| 26 </condition> | |
| 27 | |
| 28 <target name="init"> | |
| 29 <!-- Create the time stamp --> | |
| 30 <tstamp/> | |
| 31 <!-- Create the build directory structure used by compile --> | |
| 32 <mkdir dir="${out.dir}"/> | |
| 33 <mkdir dir="${dest.dir}"/> | |
| 34 </target> | |
| 35 | |
| 36 <target name="compile" depends="init" | |
| 37 description="compile the source " > | |
| 38 <javac srcdir="${src}" destdir="${dest.dir}"> | |
| 39 <classpath> | |
| 40 <path location="${location.base}/android.jar"/> | |
| 41 <path location="${PRODUCT_DIR}/chromium_base.jar"/> | |
| 42 </classpath> | |
| 43 </javac> | |
| 44 </target> | |
| 45 | |
| 46 <target name="dist" depends="compile" | |
| 47 description="generate the distribution" > | |
| 48 <!-- Create the distribution directory --> | |
| 49 <mkdir dir="${dist}/lib"/> | |
| 50 | |
| 51 <jar jarfile="${out.dir}/chromium_content.jar" basedir="${dest.dir}"/> | |
| 52 </target> | |
| 53 | |
| 54 <target name="clean" | |
| 55 description="clean up" > | |
| 56 <delete dir="${dest.dir}"/> | |
| 57 <delete dir="${dist}"/> | |
| 58 </target> | |
| 59 </project> | |
| OLD | NEW |