| OLD | NEW |
| 1 <!-- | 1 <!-- |
| 2 Copyright (c) 2012 The Chromium Authors. All rights reserved. | 2 Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 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="chromium-jars" default="dist"> | 6 <project name="chromium-jars" default="dist"> |
| 7 <!-- | 7 <!-- |
| 8 Common ant build file for for chromium_*.jars. | 8 Common ant build file for for chromium_*.jars. |
| 9 For creating a new chromium_*.jar : | 9 For creating a new chromium_*.jar : |
| 10 1. Use build/java.gypi action. | 10 1. Use build/java.gypi action. |
| 11 The jar will be created as chromium_${PACKAGE_NAME} in | 11 The jar will be created as chromium_${PACKAGE_NAME} in |
| 12 ${PRODUCT_DIR}/lib.java. | 12 ${PRODUCT_DIR}/lib.java. |
| 13 --> | 13 --> |
| 14 <description> | 14 <description> |
| 15 Building ${PROJECT_NAME}/ java source code with ant. | 15 Building ${PROJECT_NAME}/ java source code with ant. |
| 16 </description> | 16 </description> |
| 17 | 17 |
| 18 <import file="common.xml"/> | 18 <import file="common.xml"/> |
| 19 | 19 |
| 20 <path id="javac.custom.classpath"> | 20 <path id="javac.custom.classpath"> |
| 21 <filelist files="${INPUT_JARS_PATHS}"/> | 21 <filelist files="${INPUT_JARS_PATHS}"/> |
| 22 <pathelement location="${ANDROID_SDK}/android.jar"/> | 22 <pathelement location="${ANDROID_SDK}/android.jar"/> |
| 23 </path> | 23 </path> |
| 24 | 24 |
| 25 <path id="javac.srcdirs.additional"> | 25 <path id="javac.srcdirs.additional"> |
| 26 <filelist files="${ADDITIONAL_SRC_DIRS}"/> | 26 <filelist files="${ADDITIONAL_SRC_DIRS}"/> |
| 27 <filelist files="${GENERATED_SRC_DIRS}"/> |
| 27 </path> | 28 </path> |
| 28 | 29 |
| 29 <property-value | 30 <property-value |
| 30 name="javac.srcdir" | 31 name="javac.srcdir" |
| 31 value="src:${toString:javac.srcdirs.additional}" | 32 value="src:${toString:javac.srcdirs.additional}" |
| 32 /> | 33 /> |
| 33 | 34 |
| 34 <property-location | 35 <property-location |
| 35 name="dest.dir" | 36 name="dest.dir" |
| 36 location="${PRODUCT_DIR}/java/${PACKAGE_NAME}" | 37 location="${PRODUCT_DIR}/java/${PACKAGE_NAME}" |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 87 be rebuilt in future builds. | 88 be rebuilt in future builds. |
| 88 --> | 89 --> |
| 89 <touch file="${lib.java.dir}/chromium_${PACKAGE_NAME}.jar"/> | 90 <touch file="${lib.java.dir}/chromium_${PACKAGE_NAME}.jar"/> |
| 90 </target> | 91 </target> |
| 91 | 92 |
| 92 <target name="clean" description="clean up"> | 93 <target name="clean" description="clean up"> |
| 93 <!-- Delete the appropriate directory trees --> | 94 <!-- Delete the appropriate directory trees --> |
| 94 <delete dir="${dest.dir}"/> | 95 <delete dir="${dest.dir}"/> |
| 95 </target> | 96 </target> |
| 96 </project> | 97 </project> |
| OLD | NEW |