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 <!-- Include additional resource folders in the apk, e.g. content/.../res. |
| 35 We list the res folders in project.library.res.folder.path and the |
| 36 corresponding java packages in project.library.packages, which must be |
| 37 semicolon-delimited while ADDITION_RES_PACKAGES is space-delimited, hence |
| 38 the javascript task. --> |
| 39 <path id="project.library.res.folder.path"> |
| 40 <filelist files="${ADDITIONAL_RES_DIRS}"/> |
| 41 </path> |
| 42 <script language="javascript"> |
| 43 var before = project.getProperty("ADDITIONAL_RES_PACKAGES"); |
| 44 project.setProperty("project.library.packages", before.replaceAll(" ", ";"
)); |
| 45 </script> |
| 46 |
34 <property-value name="target.abi" value="${APP_ABI}"/> | 47 <property-value name="target.abi" value="${APP_ABI}"/> |
35 <property name="resource.absolute.dir" value="${RESOURCE_DIR}"/> | 48 <property name="resource.absolute.dir" value="${RESOURCE_DIR}"/> |
36 <property-value name="gen.absolute.dir" value="${out.dir}/gen"/> | 49 <property-value name="gen.absolute.dir" value="${out.dir}/gen"/> |
37 <property-location name="native.libs.absolute.dir" location="${out.dir}/libs" | 50 <property-location name="native.libs.absolute.dir" location="${out.dir}/libs" |
38 check-exists="false"/> | 51 check-exists="false"/> |
39 | 52 |
40 <property-value name="version.code" value="${APP_MANIFEST_VERSION_CODE}"/> | 53 <property-value name="version.code" value="${APP_MANIFEST_VERSION_CODE}"/> |
41 <property-value name="version.name" value="${APP_MANIFEST_VERSION_NAME}"/> | 54 <property-value name="version.name" value="${APP_MANIFEST_VERSION_NAME}"/> |
42 | 55 |
43 <!-- | 56 <!-- |
(...skipping 23 matching lines...) Expand all Loading... |
67 </path> | 80 </path> |
68 | 81 |
69 <path id="out.dex.jar.input.ref"> | 82 <path id="out.dex.jar.input.ref"> |
70 <path refid="javac.custom.classpath"/> | 83 <path refid="javac.custom.classpath"/> |
71 </path> | 84 </path> |
72 | 85 |
73 <import file="sdk-targets.xml"/> | 86 <import file="sdk-targets.xml"/> |
74 <import file="${sdk.dir}/tools/ant/build.xml"/> | 87 <import file="${sdk.dir}/tools/ant/build.xml"/> |
75 </project> | 88 </project> |
76 | 89 |
OLD | NEW |