Commit dc684012 authored by peter@chromium.org's avatar peter@chromium.org

Remove uses of Android's test runner's --ant-compile, as well as the flag itself.

It has been superseded by --sdk-build, which has already been set for all
other Chromium and WebKit users.

BUG=


Review URL: https://chromiumcodereview.appspot.com/10855147

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@151709 0039d316-1c4b-4281-b951-d872f2087c98
parent 866fda16
......@@ -63,7 +63,6 @@
'-DANDROID_TOOLCHAIN=<(android_toolchain)',
'--ant-args',
'-DCHROMIUM_SRC=<(ant_build_out)/../..',
'--ant-compile'
],
}],
}], # 'OS == "android" and gtest_target_type == "shared_library"
......
......@@ -163,7 +163,7 @@ class NativeTestApkGenerator(object):
import compile_android_mk # pylint: disable=F0401
except:
raise AssertionError('Not in Android source tree. '
'Please use --ant-compile.')
'Please use --sdk-build.')
compile_android_mk.CompileAndroidMk(self._native_library,
self._output_directory)
......@@ -184,11 +184,6 @@ def main(argv):
help='Unless set to 0, build the generated apk with ant. '
'Otherwise assume compiling within the Android '
'source tree using Android.mk.')
# FIXME(beverloo): Remove --ant-compile when all users adopted.
parser.add_option('--ant-compile', action='store_true',
help=('If specified, build the generated apk with ant. '
'Otherwise assume compiling within the Android '
'source tree using Android.mk.'))
parser.add_option('--ant-args', action='append',
help='extra args for ant')
......@@ -212,9 +207,9 @@ def main(argv):
jars=jar_list,
output_directory=options.output,
target_abi=options.app_abi)
ntag.CreateBundle(options.sdk_build or options.ant_compile)
ntag.CreateBundle(options.sdk_build)
if options.sdk_build or options.ant_compile:
if options.sdk_build:
ntag.Compile(options.ant_args)
else:
ntag.CompileAndroidMk()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment