| OLD | NEW |
| 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 # This file is meant to be included into a target to provide a rule | 5 # This file is meant to be included into a target to provide a rule |
| 6 # to build APK based test suites. | 6 # to build APK based test suites. |
| 7 # | 7 # |
| 8 # To use this, create a gyp target with the following form: | 8 # To use this, create a gyp target with the following form: |
| 9 # { | 9 # { |
| 10 # 'target_name': 'test_suite_name_apk', | 10 # 'target_name': 'test_suite_name_apk', |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 '<(android_app_abi)', | 54 '<(android_app_abi)', |
| 55 '--stamp-file', | 55 '--stamp-file', |
| 56 '<(generate_native_test_stamp)', | 56 '<(generate_native_test_stamp)', |
| 57 '--no-compile', | 57 '--no-compile', |
| 58 ], | 58 ], |
| 59 }, | 59 }, |
| 60 { | 60 { |
| 61 'action_name': 'ant_apk_<(test_suite_name)', | 61 'action_name': 'ant_apk_<(test_suite_name)', |
| 62 'message': 'Building <(test_suite_name) test apk.', | 62 'message': 'Building <(test_suite_name) test apk.', |
| 63 'inputs': [ | 63 'inputs': [ |
| 64 '<(DEPTH)/build/android/gyp/util/build_utils.py', |
| 65 '<(DEPTH)/build/android/gyp/ant.py', |
| 64 '<(generate_native_test_stamp)', | 66 '<(generate_native_test_stamp)', |
| 65 ], | 67 ], |
| 66 'outputs': [ | 68 'outputs': [ |
| 67 '<(PRODUCT_DIR)/<(test_suite_name)_apk/<(test_suite_name)-debug.ap
k', | 69 '<(PRODUCT_DIR)/<(test_suite_name)_apk/<(test_suite_name)-debug.ap
k', |
| 68 ], | 70 ], |
| 69 'action': [ | 71 'action': [ |
| 70 'ant', '-quiet', | 72 'python', '<(DEPTH)/build/android/gyp/ant.py', |
| 73 '-quiet', |
| 71 '-DPRODUCT_DIR=<(ant_build_out)', | 74 '-DPRODUCT_DIR=<(ant_build_out)', |
| 72 '-DANDROID_SDK=<(android_sdk)', | 75 '-DANDROID_SDK=<(android_sdk)', |
| 73 '-DANDROID_SDK_ROOT=<(android_sdk_root)', | 76 '-DANDROID_SDK_ROOT=<(android_sdk_root)', |
| 74 '-DANDROID_SDK_TOOLS=<(android_sdk_tools)', | 77 '-DANDROID_SDK_TOOLS=<(android_sdk_tools)', |
| 75 '-DANDROID_SDK_VERSION=<(android_sdk_version)', | 78 '-DANDROID_SDK_VERSION=<(android_sdk_version)', |
| 76 '-DANDROID_GDBSERVER=<(android_gdbserver)', | 79 '-DANDROID_GDBSERVER=<(android_gdbserver)', |
| 77 '-DCHROMIUM_SRC=<(ant_build_out)/../..', | 80 '-DCHROMIUM_SRC=<(ant_build_out)/../..', |
| 78 '-DINPUT_JARS_PATHS=>(input_jars_paths)', | 81 '-DINPUT_JARS_PATHS=>(input_jars_paths)', |
| 79 '-DAPP_ABI=<(android_app_abi)', | 82 '-DAPP_ABI=<(android_app_abi)', |
| 80 '-buildfile', '<(intermediate_dir)/native_test_apk.xml', | 83 '-buildfile', '<(intermediate_dir)/native_test_apk.xml', |
| 81 ], | 84 ], |
| 82 }], | 85 }], |
| 83 }], # 'OS == "android" and gtest_target_type == "shared_library" | 86 }], # 'OS == "android" and gtest_target_type == "shared_library" |
| 84 ], # conditions | 87 ], # conditions |
| 85 }], | 88 }], |
| 86 ], # target_conditions | 89 ], # target_conditions |
| 87 } | 90 } |
| OLD | NEW |