OLD | NEW |
(Empty) | |
| 1 <?xml version="1.0" encoding="UTF-8"?> |
| 2 <!-- |
| 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 |
| 5 found in the LICENSE file. |
| 6 --> |
| 7 |
| 8 <project name="ChromeNativeTests" default="debug" basedir="."> |
| 9 |
| 10 <description> |
| 11 Building native test runner ChromeNativeTests_replaceme.apk |
| 12 </description> |
| 13 |
| 14 <property environment="env"/> |
| 15 <property name="sdk.dir" location="${env.ANDROID_SDK_ROOT}"/> |
| 16 <property name="sdk.version" value="${env.ANDROID_SDK_VERSION}"/> |
| 17 <property name="src" location="."/> |
| 18 |
| 19 <!-- TODO(jrg): although the source.dir setting points the android |
| 20 antfiles to the correct location for finding our java, and our jars |
| 21 are rebuilt when the java changes, a re-javac does not trigger a |
| 22 re-package of our apk. Fix. --> |
| 23 <property name="source.dir" location="java"/> |
| 24 |
| 25 <property name="target" value="android-${env.ANDROID_SDK_VERSION}"/> |
| 26 |
| 27 <condition property="location.base" |
| 28 value="${sdk.dir}" |
| 29 else="${sdk.dir}/platforms/android-${sdk.version}"> |
| 30 <isset property="env.ANDROID_BUILD_TOP"/> |
| 31 </condition> |
| 32 |
| 33 <!-- We expect PRODUCT_DIR to be set like the gyp var |
| 34 (e.g. $ROOT/out/Debug) --> |
| 35 <!-- TODO(jrg): ideally we need this to run before -build-setup, where |
| 36 directories are made based on this variable. --> |
| 37 <target name="-pre-build"> |
| 38 <if> |
| 39 <condition> |
| 40 <isset property="PRODUCT_DIR" /> |
| 41 </condition> |
| 42 <else> |
| 43 <fail message="PRODUCT_DIR env var not set?" /> |
| 44 </else> |
| 45 </if> |
| 46 </target> |
| 47 |
| 48 <property name="out.dir" location="${PRODUCT_DIR}/replaceme_apk"/> |
| 49 |
| 50 <!-- TODO(jrg): should I make this directory specific to the apk? --> |
| 51 <property name="gen.absolute.dir" value="${out.dir}/gen"/> |
| 52 |
| 53 <import file="${sdk.dir}/tools/ant/build.xml" /> |
| 54 |
| 55 </project> |
OLD | NEW |