Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2641)

Unified Diff: build/android/ant/chromium-apk.xml

Issue 10959034: Make apks build from a single ant .xml template (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Rebase Created 8 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « android_webview/javatests/android_webview_test_apk.xml ('k') | build/android/ant/sdk-targets.xml » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/android/ant/chromium-apk.xml
diff --git a/content/shell/android/javatests/content_shell_test_apk.xml b/build/android/ant/chromium-apk.xml
similarity index 66%
rename from content/shell/android/javatests/content_shell_test_apk.xml
rename to build/android/ant/chromium-apk.xml
index a66c28660d3597f4ec1f270d063aa1c58b41a97d..2779a5e6c086fad4bed071a035149dab69ab3f0b 100644
--- a/content/shell/android/javatests/content_shell_test_apk.xml
+++ b/build/android/ant/chromium-apk.xml
@@ -1,36 +1,43 @@
-<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright (c) 2012 The Chromium Authors. All rights reserved.
Use of this source code is governed by a BSD-style license that can be
found in the LICENSE file.
-->
-<project name="ContentShellTest" default="debug" basedir=".">
+<project default="debug">
+ <property name="ant.project.name" value="${APK_NAME}"/>
<description>
- Building ContentShellTest.apk
+ Building ${ant.project.name}.apk
</description>
+ <import file="common.xml"/>
- <import file="../../../../build/android/ant/common.xml"/>
+ <property-location
+ name="out.dir"
+ location="${PRODUCT_DIR}/${PACKAGE_NAME}"
+ check-exists="false"
+ />
+
+ <path id="javac.srcdirs.additional">
+ <filelist files="${ADDITIONAL_SRC_DIRS}"/>
+ <filelist files="${GENERATED_SRC_DIRS}"/>
+ </path>
<property-value name="target.abi" value="${APP_ABI}"/>
- <property-location name="out.dir" location="${PRODUCT_DIR}/content_shell_test"
- check-exists="false"/>
<property name="resource.absolute.dir" value="${RESOURCE_DIR}"/>
<property-value name="gen.absolute.dir" value="${out.dir}/gen"/>
<property-location name="native.libs.absolute.dir" location="${out.dir}/libs"
check-exists="false"/>
- <property-location name="asset.absolute.dir" location="${out.dir}/assets"
- check-exists="false"/>
+
+ <condition property="asset.absolute.dir"
+ value="${out.dir}/assets"
+ else="${ASSET_DIR}">
+ <equals arg1="${ASSET_DIR}" arg2=""/>
+ </condition>
+
<!-- Set the output directory for the final apk to the ${apks.dir}. -->
<property-location name="out.final.file"
location="${apks.dir}/${ant.project.name}-debug.apk"
check-exists="false"/>
- <property name="generate.test.jar" value="true"/>
-
- <path id="javac.custom.sourcepath">
- <filelist files="${ADDITIONAL_SRC_DIRS}"/>
- <filelist files="${GENERATED_SRC_DIRS}"/>
- </path>
<path id="out.dex.jar.input.ref">
<filelist files="${INPUT_JARS_PATHS}"/>
@@ -41,6 +48,7 @@
<path refid="out.dex.jar.input.ref"/>
</path>
- <import file="../../../../build/android/ant/sdk-targets.xml"/>
+ <import file="sdk-targets.xml"/>
<import file="${sdk.dir}/tools/ant/build.xml"/>
</project>
+
« no previous file with comments | « android_webview/javatests/android_webview_test_apk.xml ('k') | build/android/ant/sdk-targets.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698