| <?xml version="1.0" encoding="UTF-8"?> |
| <!-- |
| Copyright (C) 2005-2008 The Android Open Source Project |
| |
| Licensed under the Apache License, Version 2.0 (the "License"); |
| you may not use this file except in compliance with the License. |
| You may obtain a copy of the License at |
| |
| http://www.apache.org/licenses/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, software |
| distributed under the License is distributed on an "AS IS" BASIS, |
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| See the License for the specific language governing permissions and |
| limitations under the License. |
| --> |
| |
| <project default="-package"> |
| <property name="verbose" value="false" /> |
| <property name="out.dir" location="${OUT_DIR}" /> |
| <property name="out.absolute.dir" location="${out.dir}" /> |
| |
| <property name="sdk.dir" location="${ANDROID_SDK_ROOT}"/> |
| |
| <!-- jar file from where the tasks are loaded --> |
| <path id="android.antlibs"> |
| <pathelement path="${sdk.dir}/tools/lib/ant-tasks.jar" /> |
| </path> |
| |
| <!-- Custom tasks --> |
| <taskdef resource="anttasks.properties" classpathref="android.antlibs" /> |
| |
| <condition property="build.target" value="release" else="debug"> |
| <equals arg1="${CONFIGURATION_NAME}" arg2="Release" /> |
| </condition> |
| <condition property="build.is.packaging.debug" value="true" else="false"> |
| <equals arg1="${build.target}" arg2="debug" /> |
| </condition> |
| |
| <!-- Disables automatic signing. --> |
| <property name="build.is.signing.debug" value="false"/> |
| |
| <!-- SDK tools assume that out.packaged.file is signed and name it "...-unaligned" --> |
| <property name="out.packaged.file" value="${UNSIGNED_APK_PATH}" /> |
| |
| <property name="native.libs.absolute.dir" location="${NATIVE_LIBS_DIR}" /> |
| |
| <!-- Intermediate files --> |
| <property name="resource.package.file.name" value="${APK_NAME}.ap_" /> |
| |
| <property name="dex.file.name" value="classes.dex" /> |
| <property name="intermediate.dex.file" location="${out.absolute.dir}/${dex.file.name}" /> |
| |
| <property name="source.dir" value="${SOURCE_DIR}" /> |
| <property name="source.absolute.dir" location="${source.dir}" /> |
| |
| <!-- Packages the application. --> |
| <target name="-package"> |
| <apkbuilder |
| outfolder="${out.absolute.dir}" |
| resourcefile="${resource.package.file.name}" |
| apkfilepath="${out.packaged.file}" |
| debugpackaging="${build.is.packaging.debug}" |
| debugsigning="${build.is.signing.debug}" |
| verbose="${verbose}" |
| hascode="true" |
| previousBuildType="/" |
| buildType="${build.is.packaging.debug}/${build.is.signing.debug}"> |
| <dex path="${intermediate.dex.file}"/> |
| <sourcefolder path="${source.absolute.dir}"/> |
| <nativefolder path="${native.libs.absolute.dir}" /> |
| </apkbuilder> |
| </target> |
| </project> |