Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1462)

Unified Diff: build/apk_test.gypi

Issue 12310002: Move ant call from python to gyp (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | testing/android/generate_native_test.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/apk_test.gypi
diff --git a/build/apk_test.gypi b/build/apk_test.gypi
index 1690dfcf04a63d67c19cac97f216c4c39d52b6c6..4fd3db552c334f07bf537c49f1b0d0dda5afa874 100644
--- a/build/apk_test.gypi
+++ b/build/apk_test.gypi
@@ -23,6 +23,10 @@
'<(DEPTH)/base/base.gyp:base_java',
'<(DEPTH)/tools/android/android_tools.gyp:android_tools',
],
+ 'variables': {
+ 'intermediate_dir': '<(PRODUCT_DIR)/<(test_suite_name)_apk/',
+ 'generate_native_test_stamp': '<(intermediate_dir)/generate_native_test.stamp',
+ },
'target_conditions': [
['_toolset == "target"', {
'conditions': [
@@ -37,35 +41,43 @@
'>@(input_jars_paths)',
],
'outputs': [
- '<(PRODUCT_DIR)/<(test_suite_name)_apk/<(test_suite_name)-debug.apk',
+ '<(generate_native_test_stamp)',
],
'action': [
'<(DEPTH)/testing/android/generate_native_test.py',
'--native_library',
'<(input_shlib_path)',
'--output',
- '<(PRODUCT_DIR)/<(test_suite_name)_apk',
+ '<(intermediate_dir)',
'--strip-binary=<(android_strip)',
'--app_abi',
'<(android_app_abi)',
- '--ant-args',
- '-quiet',
- '--ant-args',
+ '--stamp-file',
+ '<(generate_native_test_stamp)',
+ '--no-compile',
+ ],
+ },
+ {
+ 'action_name': 'ant_apk_<(test_suite_name)',
+ 'message': 'Building <(test_suite_name) test apk.',
+ 'inputs': [
+ '<(generate_native_test_stamp)',
+ ],
+ 'outputs': [
+ '<(PRODUCT_DIR)/<(test_suite_name)_apk/<(test_suite_name)-debug.apk',
+ ],
+ 'action': [
+ 'ant', '-quiet',
'-DPRODUCT_DIR=<(ant_build_out)',
- '--ant-args',
'-DANDROID_SDK=<(android_sdk)',
- '--ant-args',
'-DANDROID_SDK_ROOT=<(android_sdk_root)',
- '--ant-args',
'-DANDROID_SDK_TOOLS=<(android_sdk_tools)',
- '--ant-args',
'-DANDROID_SDK_VERSION=<(android_sdk_version)',
- '--ant-args',
'-DANDROID_GDBSERVER=<(android_gdbserver)',
- '--ant-args',
'-DCHROMIUM_SRC=<(ant_build_out)/../..',
- '--ant-args',
'-DINPUT_JARS_PATHS=>(input_jars_paths)',
+ '-DAPP_ABI=<(android_app_abi)',
+ '-buildfile', '<(intermediate_dir)/native_test_apk.xml',
],
}],
}], # 'OS == "android" and gtest_target_type == "shared_library"
« no previous file with comments | « no previous file | testing/android/generate_native_test.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698