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="-code-gen"> | 18 <project default="-code-gen"> |
19 <property name="verbose" value="false" /> | 19 <property name="verbose" value="false" /> |
20 | 20 |
21 <property name="out.dir" location="${OUT_DIR}" /> | 21 <property name="out.dir" location="${OUT_DIR}" /> |
22 <property name="out.absolute.dir" location="${out.dir}" /> | 22 <property name="out.absolute.dir" location="${out.dir}" /> |
23 <property name="out.res.absolute.dir" location="${out.dir}/res" /> | 23 <property name="out.res.absolute.dir" location="${out.dir}/res" /> |
24 <property name="out.manifest.abs.file" location="${out.dir}/AndroidManifest.xm
l" /> | |
25 <property name="gen.absolute.dir" value="${out.dir}/gen"/> | 24 <property name="gen.absolute.dir" value="${out.dir}/gen"/> |
26 | 25 |
27 <!-- tools location --> | 26 <!-- tools location --> |
28 <property name="sdk.dir" location="${ANDROID_SDK_ROOT}"/> | 27 <property name="sdk.dir" location="${ANDROID_SDK_ROOT}"/> |
29 <property name="android.sdk.tools.dir" location="${ANDROID_SDK_TOOLS}" /> | 28 <property name="android.sdk.tools.dir" location="${ANDROID_SDK_TOOLS}" /> |
30 <property name="aapt" location="${android.sdk.tools.dir}/aapt" /> | 29 <property name="aapt" location="${android.sdk.tools.dir}/aapt" /> |
31 <property name="project.target.android.jar" location="${ANDROID_SDK_JAR}" /> | 30 <property name="project.target.android.jar" location="${ANDROID_SDK_JAR}" /> |
32 | 31 |
33 <!-- jar file from where the tasks are loaded --> | 32 <!-- jar file from where the tasks are loaded --> |
34 <path id="android.antlibs"> | 33 <path id="android.antlibs"> |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
73 | 72 |
74 <!-- Code Generation: compile resources (aapt -> R.java), aidl --> | 73 <!-- Code Generation: compile resources (aapt -> R.java), aidl --> |
75 <target name="-code-gen"> | 74 <target name="-code-gen"> |
76 <mkdir dir="${out.absolute.dir}" /> | 75 <mkdir dir="${out.absolute.dir}" /> |
77 <mkdir dir="${out.res.absolute.dir}" /> | 76 <mkdir dir="${out.res.absolute.dir}" /> |
78 <mkdir dir="${gen.absolute.dir}" /> | 77 <mkdir dir="${gen.absolute.dir}" /> |
79 | 78 |
80 <aapt executable="${aapt}" | 79 <aapt executable="${aapt}" |
81 command="package" | 80 command="package" |
82 verbose="${verbose}" | 81 verbose="${verbose}" |
83 manifest="${out.manifest.abs.file}" | 82 manifest="${manifest.abs.file}" |
84 androidjar="${project.target.android.jar}" | 83 androidjar="${project.target.android.jar}" |
85 rfolder="${gen.absolute.dir}" | 84 rfolder="${gen.absolute.dir}" |
86 nonConstantId="false" | 85 nonConstantId="false" |
87 libraryResFolderPathRefid="project.library.res.folder.path" | 86 libraryResFolderPathRefid="project.library.res.folder.path" |
88 libraryPackagesRefid="project.library.packages" | 87 libraryPackagesRefid="project.library.packages" |
89 libraryRFileRefid="project.library.bin.r.file.path" | 88 libraryRFileRefid="project.library.bin.r.file.path" |
90 ignoreAssets="${aapt.ignore.assets}" | 89 ignoreAssets="${aapt.ignore.assets}" |
91 binFolder="${out.absolute.dir}" | 90 binFolder="${out.absolute.dir}" |
92 proguardFile="${out.absolute.dir}/proguard.txt"> | 91 proguardFile="${out.absolute.dir}/proguard.txt"> |
93 <res path="${out.res.absolute.dir}" /> | 92 <res path="${out.res.absolute.dir}" /> |
94 <res path="${resource.absolute.dir}" /> | 93 <res path="${resource.absolute.dir}" /> |
95 </aapt> | 94 </aapt> |
96 | 95 |
97 <touch file="${STAMP}" /> | 96 <touch file="${STAMP}" /> |
98 </target> | 97 </target> |
99 </project> | 98 </project> |
OLD | NEW |