| 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 default="error"> | 6 <project default="error"> |
| 7 <property name="ant.project.name" value="${APK_NAME}"/> | 7 <property name="ant.project.name" value="${APK_NAME}"/> |
| 8 <!-- | 8 <!-- |
| 9 Gyp will pass CONFIGURATION_NAME as the target for ant to build. These targe
ts will call the | 9 Gyp will pass CONFIGURATION_NAME as the target for ant to build. These targe
ts will call the |
| 10 appropriate sdk tools target. | 10 appropriate sdk tools target. |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 name="out.dir" | 24 name="out.dir" |
| 25 location="${PRODUCT_DIR}/${PACKAGE_NAME}" | 25 location="${PRODUCT_DIR}/${PACKAGE_NAME}" |
| 26 check-exists="false" | 26 check-exists="false" |
| 27 /> | 27 /> |
| 28 | 28 |
| 29 <path id="javac.srcdirs.additional"> | 29 <path id="javac.srcdirs.additional"> |
| 30 <filelist files="${ADDITIONAL_SRC_DIRS}"/> | 30 <filelist files="${ADDITIONAL_SRC_DIRS}"/> |
| 31 <filelist files="${GENERATED_SRC_DIRS}"/> | 31 <filelist files="${GENERATED_SRC_DIRS}"/> |
| 32 </path> | 32 </path> |
| 33 | 33 |
| 34 <!-- |
| 35 Include additional resource folders in the apk, e.g. content/.../res. We |
| 36 list the res folders in project.library.res.folder.path and the |
| 37 corresponding java packages in project.library.packages, which must be |
| 38 semicolon-delimited while ADDITIONAL_RES_PACKAGES is space-delimited, hence |
| 39 the javascript task. |
| 40 --> |
| 41 <path id="project.library.res.folder.path"> |
| 42 <filelist files="${ADDITIONAL_RES_DIRS}"/> |
| 43 </path> |
| 44 <script language="javascript"> |
| 45 var before = project.getProperty("ADDITIONAL_RES_PACKAGES"); |
| 46 project.setProperty("project.library.packages", before.replaceAll(" ", ";"))
; |
| 47 </script> |
| 48 |
| 34 <property-value name="target.abi" value="${APP_ABI}"/> | 49 <property-value name="target.abi" value="${APP_ABI}"/> |
| 35 <property name="resource.absolute.dir" value="${RESOURCE_DIR}"/> | 50 <property name="resource.absolute.dir" value="${RESOURCE_DIR}"/> |
| 36 <property-value name="gen.absolute.dir" value="${out.dir}/gen"/> | 51 <property-value name="gen.absolute.dir" value="${out.dir}/gen"/> |
| 37 <property-location name="native.libs.absolute.dir" location="${out.dir}/libs" | 52 <property-location name="native.libs.absolute.dir" location="${out.dir}/libs" |
| 38 check-exists="false"/> | 53 check-exists="false"/> |
| 39 | 54 |
| 40 <property-value name="version.code" value="${APP_MANIFEST_VERSION_CODE}"/> | 55 <property-value name="version.code" value="${APP_MANIFEST_VERSION_CODE}"/> |
| 41 <property-value name="version.name" value="${APP_MANIFEST_VERSION_NAME}"/> | 56 <property-value name="version.name" value="${APP_MANIFEST_VERSION_NAME}"/> |
| 42 | 57 |
| 43 <!-- | 58 <!-- |
| (...skipping 23 matching lines...) Expand all Loading... |
| 67 </path> | 82 </path> |
| 68 | 83 |
| 69 <path id="out.dex.jar.input.ref"> | 84 <path id="out.dex.jar.input.ref"> |
| 70 <path refid="javac.custom.classpath"/> | 85 <path refid="javac.custom.classpath"/> |
| 71 </path> | 86 </path> |
| 72 | 87 |
| 73 <import file="sdk-targets.xml"/> | 88 <import file="sdk-targets.xml"/> |
| 74 <import file="${sdk.dir}/tools/ant/build.xml"/> | 89 <import file="${sdk.dir}/tools/ant/build.xml"/> |
| 75 </project> | 90 </project> |
| 76 | 91 |
| OLD | NEW |