| OLD | NEW |
| 1 <?xml version="1.0" encoding="UTF-8"?> | 1 <?xml version="1.0" encoding="UTF-8"?> |
| 2 <!-- | 2 <!-- |
| 3 Copyright (c) 2012 The Chromium Authors. All rights reserved. | 3 Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 4 Use of this source code is governed by a BSD-style license that can be | 4 Use of this source code is governed by a BSD-style license that can be |
| 5 found in the LICENSE file. | 5 found in the LICENSE file. |
| 6 --> | 6 --> |
| 7 <project name="ContentShell" default="debug" basedir="."> | 7 <project name="ChromiumTestShell" default="debug" basedir="."> |
| 8 <description> | 8 <description> |
| 9 Building ContentShell.apk | 9 Building ChromiumTestShell.apk |
| 10 </description> | 10 </description> |
| 11 <import file="../../../../build/android/ant/common.xml"/> | 11 <import file="../../../../build/android/ant/common.xml"/> |
| 12 | 12 |
| 13 <!-- Convert the buildtype to lowercase. E.g Debug -> debug, Release -> releas
e. --> | |
| 14 <script language="javascript"> | |
| 15 project.setProperty("configuration.name", | |
| 16 project.getProperty("CONFIGURATION_NAME").toLowerCase()) | |
| 17 </script> | |
| 18 <property-value name="target.abi" value="${APP_ABI}"/> | 13 <property-value name="target.abi" value="${APP_ABI}"/> |
| 19 <property-location name="out.dir" location="${PRODUCT_DIR}/content_shell" | 14 |
| 15 <!-- Root directory for output --> |
| 16 <property-location name="out.dir" location="${PRODUCT_DIR}/chromium_testshell" |
| 20 check-exists="false"/> | 17 check-exists="false"/> |
| 21 <property name="resource.absolute.dir" value="../res"/> | 18 <property name="resource.absolute.dir" value="res"/> |
| 22 <property name="gen.absolute.dir" value="${out.dir}/gen"/> | 19 <property name="gen.absolute.dir" value="${out.dir}/gen"/> |
| 23 <property name="jar.libs.dir" value="${out.dir}/java/libs"/> | 20 |
| 21 <!-- Standard directory for chromium_*.jars --> |
| 22 <property-value name="lib.java.dir" value="${PRODUCT_DIR}/lib.java"/> |
| 24 <path id="native.libs.gdbserver"> | 23 <path id="native.libs.gdbserver"> |
| 25 <fileset file="${android.gdbserver}"/> | 24 <fileset file="${android.gdbserver}"/> |
| 26 </path> | 25 </path> |
| 26 <!-- Specify directory for libchromiumtestshell.so so that it can be packaged
by aapt --> |
| 27 <property name="native.libs.absolute.dir" location="${out.dir}/libs"/> | 27 <property name="native.libs.absolute.dir" location="${out.dir}/libs"/> |
| 28 <property name="asset.absolute.dir" location="${out.dir}/assets"/> | 28 <!-- Specify assets dir, this allows both mmm and SDK builds to use same pak f
iles. --> |
| 29 <property-location name="asset.absolute.dir" location="${PRODUCT_DIR}/../asset
s/chrome"/> |
| 30 |
| 31 <property name="version.code" value="16"/> |
| 32 <property name="version.name" value="0.1 Developer Build"/> |
| 29 | 33 |
| 30 <path id="out.dex.jar.input.ref"> | 34 <path id="out.dex.jar.input.ref"> |
| 31 <filelist files="${INPUT_JARS_PATHS}"/> | 35 <pathelement location="${lib.java.dir}/chromium_base.jar"/> |
| 36 <pathelement location="${lib.java.dir}/chromium_content.jar"/> |
| 37 <pathelement location="${lib.java.dir}/chromium_media.jar"/> |
| 38 <pathelement location="${lib.java.dir}/chromium_net.jar"/> |
| 39 <pathelement location="${lib.java.dir}/chromium_chrome.jar"/> |
| 40 <pathelement location="${lib.java.dir}/chromium_web_contents_delegate_androi
d.jar"/> |
| 32 </path> | 41 </path> |
| 33 <property name="java.compilerargs" value="-classpath ${toString:out.dex.jar.in
put.ref}"/> | |
| 34 | |
| 35 <echo>classpath: ${toString:out.dex.jar.input.ref}</echo> | |
| 36 | 42 |
| 37 <!-- We expect PRODUCT_DIR to be set like the gyp var (e.g. $ROOT/out/Debug) -
-> | 43 <!-- We expect PRODUCT_DIR to be set like the gyp var (e.g. $ROOT/out/Debug) -
-> |
| 38 <fail message="PRODUCT_DIR env var not set?"> | 44 <fail message="PRODUCT_DIR env var not set?"> |
| 39 <condition> | 45 <condition> |
| 40 <not> | 46 <not> |
| 41 <isset property="PRODUCT_DIR"/> | 47 <isset property="PRODUCT_DIR"/> |
| 42 </not> | 48 </not> |
| 43 </condition> | 49 </condition> |
| 44 </fail> | 50 </fail> |
| 45 | 51 |
| (...skipping 19 matching lines...) Expand all Loading... |
| 65 </target> | 71 </target> |
| 66 | 72 |
| 67 <!-- Classpath for javac --> | 73 <!-- Classpath for javac --> |
| 68 <path id="javac.custom.classpath"> | 74 <path id="javac.custom.classpath"> |
| 69 <path refid="out.dex.jar.input.ref"/> | 75 <path refid="out.dex.jar.input.ref"/> |
| 70 </path> | 76 </path> |
| 71 | 77 |
| 72 <import file="../../../../build/android/ant/sdk-targets.xml"/> | 78 <import file="../../../../build/android/ant/sdk-targets.xml"/> |
| 73 <import file="${sdk.dir}/tools/ant/build.xml"/> | 79 <import file="${sdk.dir}/tools/ant/build.xml"/> |
| 74 </project> | 80 </project> |
| 81 |
| OLD | NEW |