OLD | NEW |
1 <?xml version="1.0" encoding="UTF-8"?> | 1 <?xml version="1.0" encoding="UTF-8"?> |
2 <!-- | 2 <!-- |
3 Copyright (C) 2005-2008 The Android Open Source Project | 3 Copyright (C) 2005-2008 The Android Open Source Project |
4 | 4 |
5 Licensed under the Apache License, Version 2.0 (the "License"); | 5 Licensed under the Apache License, Version 2.0 (the "License"); |
6 you may not use this file except in compliance with the License. | 6 you may not use this file except in compliance with the License. |
7 You may obtain a copy of the License at | 7 You may obtain a copy of the License at |
8 | 8 |
9 http://www.apache.org/licenses/LICENSE-2.0 | 9 http://www.apache.org/licenses/LICENSE-2.0 |
10 | 10 |
11 Unless required by applicable law or agreed to in writing, software | 11 Unless required by applicable law or agreed to in writing, software |
12 distributed under the License is distributed on an "AS IS" BASIS, | 12 distributed under the License is distributed on an "AS IS" BASIS, |
13 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | 13 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
14 See the License for the specific language governing permissions and | 14 See the License for the specific language governing permissions and |
15 limitations under the License. | 15 limitations under the License. |
16 --> | 16 --> |
17 | 17 |
18 <project default="-package-resources"> | 18 <project default="-package-resources"> |
19 <property name="out.dir" location="${OUT_DIR}" /> | 19 <property name="out.dir" location="${OUT_DIR}" /> |
20 <property name="out.absolute.dir" location="${out.dir}" /> | 20 <property name="out.absolute.dir" location="${out.dir}" /> |
21 <property name="out.res.absolute.dir" location="${out.dir}/res" /> | 21 <property name="out.res.absolute.dir" location="${out.dir}/res" /> |
22 <property name="out.manifest.abs.file" location="${out.dir}/AndroidManifest.xm
l" /> | 22 <property name="out.manifest.abs.file" location="${out.dir}/AndroidManifest.xm
l" /> |
23 | 23 |
24 <!-- tools location --> | 24 <!-- tools location --> |
25 <property name="sdk.dir" location="${ANDROID_SDK_ROOT}"/> | 25 <property name="sdk.dir" location="${ANDROID_SDK_ROOT}"/> |
26 <property name="project.target.android.jar" location="${ANDROID_SDK_JAR}" /> | 26 <property name="project.target.android.jar" location="${ANDROID_SDK_JAR}" /> |
27 <property name="android.tools.dir" location="${sdk.dir}/tools" /> | 27 <property name="android.sdk.tools.dir" location="${ANDROID_SDK_TOOLS}" /> |
28 <property name="android.platform.tools.dir" location="${sdk.dir}/platform-tool
s" /> | |
29 | 28 |
30 <!-- jar file from where the tasks are loaded --> | 29 <!-- jar file from where the tasks are loaded --> |
31 <path id="android.antlibs"> | 30 <path id="android.antlibs"> |
32 <pathelement path="${sdk.dir}/tools/lib/anttasks.jar" /> | 31 <pathelement path="${sdk.dir}/tools/lib/ant-tasks.jar" /> |
33 </path> | 32 </path> |
34 | 33 |
35 <!-- Custom tasks --> | 34 <!-- Custom tasks --> |
36 <taskdef resource="anttasks.properties" classpathref="android.antlibs" /> | 35 <taskdef resource="anttasks.properties" classpathref="android.antlibs" /> |
37 | 36 |
38 <condition property="build.target" value="release" else="debug"> | 37 <condition property="build.target" value="release" else="debug"> |
39 <equals arg1="${CONFIGURATION_NAME}" arg2="Release" /> | 38 <equals arg1="${CONFIGURATION_NAME}" arg2="Release" /> |
40 </condition> | 39 </condition> |
41 <condition property="build.is.packaging.debug" value="true" else="false"> | 40 <condition property="build.is.packaging.debug" value="true" else="false"> |
42 <equals arg1="${build.target}" arg2="debug" /> | 41 <equals arg1="${build.target}" arg2="debug" /> |
43 </condition> | 42 </condition> |
44 | 43 |
45 <property name="resource.dir" value="${RESOURCE_DIR}"/> | 44 <property name="resource.dir" value="${RESOURCE_DIR}"/> |
46 <property name="resource.absolute.dir" location="${resource.dir}"/> | 45 <property name="resource.absolute.dir" location="${resource.dir}"/> |
47 | 46 |
48 <property name="asset.dir" value="${ASSET_DIR}" /> | 47 <property name="asset.dir" value="${ASSET_DIR}" /> |
49 <property name="asset.absolute.dir" location="${asset.dir}" /> | 48 <property name="asset.absolute.dir" location="${asset.dir}" /> |
50 | 49 |
51 <property name="aapt" location="${android.platform.tools.dir}/aapt" /> | 50 <property name="aapt" location="${android.sdk.tools.dir}/aapt" /> |
52 | 51 |
53 <property name="version.code" value="${APP_MANIFEST_VERSION_CODE}"/> | 52 <property name="version.code" value="${APP_MANIFEST_VERSION_CODE}"/> |
54 <property name="version.name" value="${APP_MANIFEST_VERSION_NAME}"/> | 53 <property name="version.name" value="${APP_MANIFEST_VERSION_NAME}"/> |
55 | 54 |
56 <property name="aapt.resource.filter" value="" /> | 55 <property name="aapt.resource.filter" value="" /> |
57 <!-- 'aapt.ignore.assets' is the list of file patterns to ignore under /res an
d /assets. | 56 <!-- 'aapt.ignore.assets' is the list of file patterns to ignore under /res an
d /assets. |
58 Default is "!.svn:!.git:.*:<dir>_*:!CVS:!thumbs.db:!picasa.ini:!*.scc:*
~" | 57 Default is "!.svn:!.git:.*:<dir>_*:!CVS:!thumbs.db:!picasa.ini:!*.scc:*
~" |
59 | 58 |
60 Overall patterns syntax is: | 59 Overall patterns syntax is: |
61 [!][<dir>|<file>][*suffix-match|prefix-match*|full-match]:more:patter
ns... | 60 [!][<dir>|<file>][*suffix-match|prefix-match*|full-match]:more:patter
ns... |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
124 ignoreAssets="${aapt.ignore.assets}"> | 123 ignoreAssets="${aapt.ignore.assets}"> |
125 <res path="${out.res.absolute.dir}" /> | 124 <res path="${out.res.absolute.dir}" /> |
126 <res path="${resource.absolute.dir}" /> | 125 <res path="${resource.absolute.dir}" /> |
127 <!-- <nocompress /> forces no compression on any files in assets or res/ra
w --> | 126 <!-- <nocompress /> forces no compression on any files in assets or res/ra
w --> |
128 <!-- <nocompress extension="xml" /> forces no compression on specific file
extensions in assets and res/raw --> | 127 <!-- <nocompress extension="xml" /> forces no compression on specific file
extensions in assets and res/raw --> |
129 </aapt> | 128 </aapt> |
130 | 129 |
131 <touch file="${STAMP}" /> | 130 <touch file="${STAMP}" /> |
132 </target> | 131 </target> |
133 </project> | 132 </project> |
OLD | NEW |