forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert "Android: Remove last remnants of ANT"
This reverts commit 38636aa. Reason for revert: downstream failure: unable to find chromium-debug.keystore (internal bug: http://crbug.com/776328) Original change's description: > Android: Remove last remnants of ANT > > It had a good run. > > Bug: 375324 > Change-Id: I1db1d501f58d3d3ac8731bc36e8ca550da24adf9 > Reviewed-on: https://chromium-review.googlesource.com/722521 > Reviewed-by: Nico Weber <thakis@chromium.org> > Commit-Queue: agrieve <agrieve@chromium.org> > Cr-Commit-Position: refs/heads/master@{#509785} TBR=thakis@chromium.org,agrieve@chromium.org Change-Id: I7323c95dcdd47145166d6bbd61345cc17db2e7d7 No-Presubmit: true No-Tree-Checks: true No-Try: true Bug: 375324 Reviewed-on: https://chromium-review.googlesource.com/727902 Reviewed-by: Egor Pasko <pasko@chromium.org> Commit-Queue: Egor Pasko <pasko@chromium.org> Cr-Commit-Position: refs/heads/master@{#510056}
- Loading branch information
Showing
8 changed files
with
139 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,125 @@ | ||
<?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}"/> | ||
<property name="emma.device.jar" location="${EMMA_DEVICE_JAR}" /> | ||
|
||
<condition property="emma.enabled" value="true" else="false"> | ||
<equals arg1="${EMMA_INSTRUMENT}" arg2="1"/> | ||
</condition> | ||
|
||
<!-- 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="${RESOURCE_PACKAGED_APK_NAME}" /> | ||
|
||
<property name="intermediate.dex.file" location="${DEX_FILE_PATH}" /> | ||
<condition property="multidex.enabled" value="true"> | ||
<equals arg1="${MULTIDEX_ENABLED}" arg2="1"/> | ||
</condition> | ||
|
||
<!-- Macro that enables passing a variable list of external jar files | ||
to ApkBuilder. --> | ||
<macrodef name="package-helper"> | ||
<element name="extra-jars" optional="yes" /> | ||
<sequential> | ||
<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="${HAS_CODE}" | ||
previousBuildType="/" | ||
buildType="${build.is.packaging.debug}/${build.is.signing.debug}"> | ||
<dex path="${intermediate.dex.file}" /> | ||
<nativefolder path="${native.libs.absolute.dir}" /> | ||
<extra-jars/> | ||
</apkbuilder> | ||
</sequential> | ||
</macrodef> | ||
|
||
<macrodef name="multidex-package-helper"> | ||
<element name="extra-jars" optional="yes" /> | ||
<sequential> | ||
<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="false" | ||
previousBuildType="/" | ||
buildType="${build.is.packaging.debug}/${build.is.signing.debug}"> | ||
<zip path="${intermediate.dex.file}" /> | ||
<nativefolder path="${native.libs.absolute.dir}" /> | ||
<extra-jars/> | ||
</apkbuilder> | ||
</sequential> | ||
</macrodef> | ||
|
||
<!-- Packages the application. --> | ||
<target name="-package"> | ||
<if condition="${emma.enabled}"> | ||
<then> | ||
<package-helper> | ||
<extra-jars> | ||
<jarfile path="${emma.device.jar}" /> | ||
</extra-jars> | ||
</package-helper> | ||
</then> | ||
<else> | ||
<if condition="${multidex.enabled}"> | ||
<then> | ||
<multidex-package-helper /> | ||
</then> | ||
<else> | ||
<package-helper /> | ||
</else> | ||
</if> | ||
</else> | ||
</if> | ||
</target> | ||
</project> |
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
This is a file that needs to live here until http://crbug.com/158155 has | ||
been fixed. | ||
|
||
The ant build system requires that a src folder is always present, and for | ||
some of our targets that is not the case. Giving it an empty src-folder works | ||
nicely though. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters