| OLD | NEW |
| 1 <!-- Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 <!-- Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 | 2 |
| 3 Use of this source code is governed by a BSD-style license that can be | 3 Use of this source code is governed by a BSD-style license that can be |
| 4 found in the LICENSE file. | 4 found in the LICENSE file. |
| 5 --> | 5 --> |
| 6 <project name="Content" default="dist" basedir="."> | 6 <project name="Content" default="dist" basedir="."> |
| 7 <description> | 7 <description> |
| 8 building content java source code with ant | 8 building content java source code with ant |
| 9 </description> | 9 </description> |
| 10 <!-- set global properties for this build --> | 10 <!-- set global properties for this build --> |
| 11 <property environment="env"/> | 11 <property environment="env"/> |
| 12 <property name="sdk.dir" location="${env.ANDROID_SDK_ROOT}"/> | 12 <property name="sdk.dir" location="${env.ANDROID_SDK_ROOT}"/> |
| 13 <property name="sdk.version" value="${env.ANDROID_SDK_VERSION}"/> | 13 <property name="sdk.version" value="${env.ANDROID_SDK_VERSION}"/> |
| 14 <property name="src" location="."/> | 14 <property name="src" location="."/> |
| 15 <property name="out.dir" location="${PRODUCT_DIR}/lib.java"/> | 15 <property name="out.dir" location="${PRODUCT_DIR}/lib.java"/> |
| 16 <property name="classes.dir" location="${out.dir}/java/${PACKAGE_NAME}"/> | 16 <property name="classes.dir" location="${PRODUCT_DIR}/java/${PACKAGE_NAME}"/> |
| 17 <property name="jar.dir" location="${out.dir}"/> | 17 <property name="jar.dir" location="${out.dir}"/> |
| 18 | 18 |
| 19 <condition property="location.base" | 19 <condition property="location.base" |
| 20 value="${sdk.dir}" | 20 value="${sdk.dir}" |
| 21 else="${sdk.dir}/platforms/android-${sdk.version}"> | 21 else="${sdk.dir}/platforms/android-${sdk.version}"> |
| 22 <isset property="env.ANDROID_BUILD_TOP"/> | 22 <isset property="env.ANDROID_BUILD_TOP"/> |
| 23 </condition> | 23 </condition> |
| 24 | 24 |
| 25 <target name="init"> | 25 <target name="init"> |
| 26 <!-- Create the time stamp --> | 26 <!-- Create the time stamp --> |
| (...skipping 24 matching lines...) Expand all Loading... |
| 51 <!-- Put everything in ${classes.dir} into the chromium_content.jar file --> | 51 <!-- Put everything in ${classes.dir} into the chromium_content.jar file --> |
| 52 <jar jarfile="${jar.dir}/chromium_${PACKAGE_NAME}.jar" basedir="${classes.di
r}"/> | 52 <jar jarfile="${jar.dir}/chromium_${PACKAGE_NAME}.jar" basedir="${classes.di
r}"/> |
| 53 </target> | 53 </target> |
| 54 | 54 |
| 55 <target name="clean" description="clean up" > | 55 <target name="clean" description="clean up" > |
| 56 <!-- Delete the generated content --> | 56 <!-- Delete the generated content --> |
| 57 <delete dir="${classes.dir}"/> | 57 <delete dir="${classes.dir}"/> |
| 58 <delete file="${jar.dir}/chromium_${PACKAGE_NAME}.jar"/> | 58 <delete file="${jar.dir}/chromium_${PACKAGE_NAME}.jar"/> |
| 59 </target> | 59 </target> |
| 60 </project> | 60 </project> |
| OLD | NEW |