| 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 28 matching lines...) Expand all Loading... |
| 39 '<(PRODUCT_DIR)/<(test_suite_name)_apk/<(test_suite_name)-debug.ap
k', | 39 '<(PRODUCT_DIR)/<(test_suite_name)_apk/<(test_suite_name)-debug.ap
k', |
| 40 ], | 40 ], |
| 41 'action': [ | 41 'action': [ |
| 42 '<(DEPTH)/testing/android/generate_native_test.py', | 42 '<(DEPTH)/testing/android/generate_native_test.py', |
| 43 '--native_library', | 43 '--native_library', |
| 44 '<(input_shlib_path)', | 44 '<(input_shlib_path)', |
| 45 '--jars', | 45 '--jars', |
| 46 '">@(input_jars_paths)"', | 46 '">@(input_jars_paths)"', |
| 47 '--output', | 47 '--output', |
| 48 '<(PRODUCT_DIR)/<(test_suite_name)_apk', | 48 '<(PRODUCT_DIR)/<(test_suite_name)_apk', |
| 49 '--strip-binary=<(android_strip)', |
| 49 '--app_abi', | 50 '--app_abi', |
| 50 '<(android_app_abi)', | 51 '<(android_app_abi)', |
| 51 '--sdk-build=<(sdk_build)', | 52 '--sdk-build=<(sdk_build)', |
| 52 '--ant-args', | 53 '--ant-args', |
| 53 '-DPRODUCT_DIR=<(ant_build_out)', | 54 '-DPRODUCT_DIR=<(ant_build_out)', |
| 54 '--ant-args', | 55 '--ant-args', |
| 55 '-DANDROID_SDK=<(android_sdk)', | 56 '-DANDROID_SDK=<(android_sdk)', |
| 56 '--ant-args', | 57 '--ant-args', |
| 57 '-DANDROID_SDK_ROOT=<(android_sdk_root)', | 58 '-DANDROID_SDK_ROOT=<(android_sdk_root)', |
| 58 '--ant-args', | 59 '--ant-args', |
| 59 '-DANDROID_SDK_TOOLS=<(android_sdk_tools)', | 60 '-DANDROID_SDK_TOOLS=<(android_sdk_tools)', |
| 60 '--ant-args', | 61 '--ant-args', |
| 61 '-DANDROID_SDK_VERSION=<(android_sdk_version)', | 62 '-DANDROID_SDK_VERSION=<(android_sdk_version)', |
| 62 '--ant-args', | 63 '--ant-args', |
| 63 '-DANDROID_TOOLCHAIN=<(android_toolchain)', | 64 '-DANDROID_TOOLCHAIN=<(android_toolchain)', |
| 64 '--ant-args', | 65 '--ant-args', |
| 65 '-DCHROMIUM_SRC=<(ant_build_out)/../..', | 66 '-DCHROMIUM_SRC=<(ant_build_out)/../..', |
| 66 '--ant-compile' | 67 '--ant-compile' |
| 67 ], | 68 ], |
| 68 }], | 69 }], |
| 69 }], # 'OS == "android" and gtest_target_type == "shared_library" | 70 }], # 'OS == "android" and gtest_target_type == "shared_library" |
| 70 ], # conditions | 71 ], # conditions |
| 71 }], | 72 }], |
| 72 ], # target_conditions | 73 ], # target_conditions |
| 73 } | 74 } |
| OLD | NEW |