| 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 dir="/" 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 dir="/" files="${ADDITIONAL_SRC_DIRS}" /> | 26 <filelist files="${ADDITIONAL_SRC_DIRS}" /> |
| 27 </path> | 27 </path> |
| 28 | 28 |
| 29 <property-value name="javac.srcdir" value="src:${toString:javac.srcdirs.additi
onal}"/> | 29 <property-value name="javac.srcdir" value="src:${toString:javac.srcdirs.additi
onal}"/> |
| 30 | 30 |
| 31 <property-location name="lib.dir" location="${PRODUCT_DIR}/lib.java" | 31 <property-location name="lib.dir" location="${PRODUCT_DIR}/lib.java" |
| 32 check-exists="false"/> | 32 check-exists="false"/> |
| 33 <property-location name="dest.dir" location="${PRODUCT_DIR}/java/${PACKAGE_NAM
E}" | 33 <property-location name="dest.dir" location="${PRODUCT_DIR}/java/${PACKAGE_NAM
E}" |
| 34 check-exists="false"/> | 34 check-exists="false"/> |
| 35 | 35 |
| 36 <target name="init"> | 36 <target name="init"> |
| (...skipping 28 matching lines...) Expand all Loading... |
| 65 <!-- Create the distribution directory --> | 65 <!-- Create the distribution directory --> |
| 66 <mkdir dir="${lib.dir}" /> | 66 <mkdir dir="${lib.dir}" /> |
| 67 <jar jarfile="${lib.dir}/chromium_${PACKAGE_NAME}.jar" basedir="${dest.dir}"
/> | 67 <jar jarfile="${lib.dir}/chromium_${PACKAGE_NAME}.jar" basedir="${dest.dir}"
/> |
| 68 </target> | 68 </target> |
| 69 | 69 |
| 70 <target name="clean" description="clean up"> | 70 <target name="clean" description="clean up"> |
| 71 <!-- Delete the appropriate directory trees --> | 71 <!-- Delete the appropriate directory trees --> |
| 72 <delete dir="${dest.dir}" /> | 72 <delete dir="${dest.dir}" /> |
| 73 </target> | 73 </target> |
| 74 </project> | 74 </project> |
| OLD | NEW |