blob: fe2db25eb8bbd366196def54c3346bd6f19150c4 [file] [log] [blame]
<?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="replaceme" default="debug" basedir=".">
Building native test runner ChromeNativeTests_replaceme.apk
<property environment="env"/>
<property name="sdk.dir" location="${env.ANDROID_SDK_ROOT}"/>
<property name="sdk.version" value="${env.ANDROID_SDK_VERSION}"/>
<property name="src" location="."/>
<property name="source.dir" location="java"/>
<property name="target" value="android-${env.ANDROID_SDK_VERSION}"/>
<condition property="location.base"
<isset property="env.ANDROID_BUILD_TOP"/>
<!-- We expect PRODUCT_DIR to be set like the gyp var
(e.g. $ROOT/out/Debug) -->
<!-- TODO(jrg): ideally we need this to run before -build-setup, where
directories are made based on this variable. -->
<target name="-pre-build">
<isset property="PRODUCT_DIR" />
<fail message="PRODUCT_DIR env var not set?" />
<property name="out.dir" location="${PRODUCT_DIR}/replaceme_apk"/>
<property name="resource.absolute.dir" value="res"/>
<property name="gen.absolute.dir" value="${out.dir}/gen"/>
<!-- Nilesh: this is what we should transition to.
TODO(jrg): make sure we transition; will involve gyp changes
for placing jar outputs in new directory.
When we transition we'll probably also want to change to copy the jars into java/libs, not
just libs (see line 124 or so).
<property name="jar.libs.dir" value="${out.dir}/java/libs"/>
<property name="native.libs.absolute.dir" location="${out.dir}/libs" />
<import file="${sdk.dir}/tools/ant/build.xml" />