summaryrefslogtreecommitdiffstats
path: root/android_webview
diff options
context:
space:
mode:
authorcjhopman@chromium.org <cjhopman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-10-05 16:51:32 +0000
committercjhopman@chromium.org <cjhopman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-10-05 16:51:32 +0000
commit1a6a3bab26112198a86a5bdc1e742a7219877d90 (patch)
tree70edc23a3c24e75af1d225d9ad9eddb355785db0 /android_webview
parent5af0d90d885fc081fdf837ea60d9cc0e32c993ee (diff)
downloadchromium_src-1a6a3bab26112198a86a5bdc1e742a7219877d90.zip
chromium_src-1a6a3bab26112198a86a5bdc1e742a7219877d90.tar.gz
chromium_src-1a6a3bab26112198a86a5bdc1e742a7219877d90.tar.bz2
Make apks build from a single ant .xml template
The ant build files for each of the apks that we create consisted of only fairly straightforward boilerplate. With the recent changes to java_apk.gypi and the gyp targets we can now build these correctly from a single .xml with the differences in how the targets are built being reflected in the gyp files (and then passed into ant). TBR=joth BUG=145991 Review URL: https://chromiumcodereview.appspot.com/10959034 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@160396 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'android_webview')
-rw-r--r--android_webview/java/android_webview_apk.xml73
-rw-r--r--android_webview/javatests/android_webview_test_apk.xml43
2 files changed, 0 insertions, 116 deletions
diff --git a/android_webview/java/android_webview_apk.xml b/android_webview/java/android_webview_apk.xml
deleted file mode 100644
index 7234602..0000000
--- a/android_webview/java/android_webview_apk.xml
+++ /dev/null
@@ -1,73 +0,0 @@
-<?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="AndroidWebView" default="debug" basedir=".">
- <description>
- Building AndroidWebView.apk
- </description>
- <import file="../../build/android/ant/common.xml"/>
-
- <!--
- Convert the buildtype to lowercase. E.g Debug -> debug,
- Release -> release.
- -->
- <script language="javascript">
- project.setProperty("configuration.name",
- project.getProperty("CONFIGURATION_NAME").toLowerCase())
- </script>
- <property-value name="target.abi" value="${APP_ABI}"/>
- <property-location name="out.dir" location="${PRODUCT_DIR}/android_webview"
- check-exists="false"/>
- <property name="resource.absolute.dir" value="${RESOURCE_DIR}"/>
- <property name="gen.absolute.dir" value="${out.dir}/gen"/>
- <path id="native.libs.gdbserver">
- <fileset file="${android.gdbserver}"/>
- </path>
- <property name="native.libs.absolute.dir" location="${out.dir}/libs"/>
- <property name="asset.absolute.dir" location="${out.dir}/assets"/>
- <!-- 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"/>
-
- <path id="javac.srcdirs.additional">
- <filelist files="${ADDITIONAL_SRC_DIRS}"/>
- <filelist files="${GENERATED_SRC_DIRS}"/>
- </path>
-
- <path id="out.dex.jar.input.ref">
- <filelist files="${INPUT_JARS_PATHS}"/>
- </path>
- <echo>resources: ${RESOURCE_DIR} classpath: ${toString:out.dex.jar.input.ref}</echo>
- <target name="-post-compile">
- <!--
- Copy gdbserver to main libs directory if building debug.
- TODO(jrg): for now, Chrome on Android always builds native code
- as Release and java/ant as Debug, which means we always install
- gdbserver. Resolve this discrepancy, possibly by making this
- Release Official build java/ant as Release.
- -->
- <if>
- <condition>
- <equals arg1="${build.target}" arg2="debug"/>
- </condition>
- <then>
- <echo message="Copying gdbserver to the apk to enable native debugging"/>
- <copy todir="${out.dir}/libs/${target.abi}">
- <path refid="native.libs.gdbserver"/>
- </copy>
- </then>
- </if>
- </target>
-
- <!-- Classpath for javac -->
- <path id="javac.custom.classpath">
- <path refid="out.dex.jar.input.ref"/>
- </path>
-
- <import file="../../build/android/ant/sdk-targets.xml"/>
- <import file="${sdk.dir}/tools/ant/build.xml"/>
-</project>
diff --git a/android_webview/javatests/android_webview_test_apk.xml b/android_webview/javatests/android_webview_test_apk.xml
deleted file mode 100644
index be69198..0000000
--- a/android_webview/javatests/android_webview_test_apk.xml
+++ /dev/null
@@ -1,43 +0,0 @@
-<?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="AndroidWebViewTest" default="debug" basedir=".">
-
- <description>
- Building AndroidWebViewTest.apk
- </description>
- <import file="../../build/android/ant/common.xml"/>
-
- <property-value name="target.abi" value="${APP_ABI}"/>
- <property-location name="out.dir" location="${PRODUCT_DIR}/android_webview_test"
- check-exists="false"/>
- <property name="resource.absolute.dir" value="${RESOURCE_DIR}"/>
- <property name="gen.absolute.dir" value="${out.dir}/gen"/>
- <property name="native.libs.absolute.dir" location="${out.dir}/libs"/>
- <property name="asset.absolute.dir" location="${out.dir}/assets"/>
- <!-- 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.srcdirs.additional">
- <filelist files="${ADDITIONAL_SRC_DIRS}"/>
- <filelist files="${GENERATED_SRC_DIRS}"/>
- </path>
-
- <path id="out.dex.jar.input.ref">
- <filelist files="${INPUT_JARS_PATHS}"/>
- </path>
-
- <!-- Classpath for javac -->
- <path id="javac.custom.classpath">
- <path refid="out.dex.jar.input.ref"/>
- </path>
-
- <import file="../../build/android/ant/sdk-targets.xml"/>
- <import file="${sdk.dir}/tools/ant/build.xml"/>
-</project>