diff options
author | Matt A. Tobin <mattatobin@localhost.localdomain> | 2018-02-02 04:16:08 -0500 |
---|---|---|
committer | Matt A. Tobin <mattatobin@localhost.localdomain> | 2018-02-02 04:16:08 -0500 |
commit | 5f8de423f190bbb79a62f804151bc24824fa32d8 (patch) | |
tree | 10027f336435511475e392454359edea8e25895d /media/webrtc/trunk/build/apk_test.gypi | |
parent | 49ee0794b5d912db1f95dce6eb52d781dc210db5 (diff) | |
download | UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.gz UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.lz UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.xz UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.zip |
Add m-esr52 at 52.6.0
Diffstat (limited to 'media/webrtc/trunk/build/apk_test.gypi')
-rw-r--r-- | media/webrtc/trunk/build/apk_test.gypi | 75 |
1 files changed, 75 insertions, 0 deletions
diff --git a/media/webrtc/trunk/build/apk_test.gypi b/media/webrtc/trunk/build/apk_test.gypi new file mode 100644 index 000000000..eefcbd7fd --- /dev/null +++ b/media/webrtc/trunk/build/apk_test.gypi @@ -0,0 +1,75 @@ +# 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. + +# This file is meant to be included into a target to provide a rule +# to build APK based test suites. +# +# To use this, create a gyp target with the following form: +# { +# 'target_name': 'test_suite_name_apk', +# 'type': 'none', +# 'variables': { +# 'test_suite_name': 'test_suite_name', # string +# 'input_shlib_path' : '/path/to/test_suite.so', # string +# 'input_jars_paths': ['/path/to/test_suite.jar', ... ], # list +# }, +# 'includes': ['path/to/this/gypi/file'], +# } +# + +{ + 'variables': { + 'input_jars_paths': [ + # Needed by ChromeNativeTestActivity.java. + '<(PRODUCT_DIR)/lib.java/chromium_base.jar', + ], + }, + 'target_conditions': [ + ['_toolset == "target"', { + 'conditions': [ + ['OS == "android" and gtest_target_type == "shared_library"', { + 'actions': [{ + 'action_name': 'apk_<(test_suite_name)', + 'message': 'Building <(test_suite_name) test apk.', + 'inputs': [ + '<(DEPTH)/testing/android/AndroidManifest.xml', + '<(DEPTH)/testing/android/generate_native_test.py', + '<(input_shlib_path)', + '>@(input_jars_paths)', + ], + 'outputs': [ + '<(PRODUCT_DIR)/<(test_suite_name)_apk/<(test_suite_name)-debug.apk', + ], + 'action': [ + '<(DEPTH)/testing/android/generate_native_test.py', + '--native_library', + '<(input_shlib_path)', + '--jars', + '">@(input_jars_paths)"', + '--output', + '<(PRODUCT_DIR)/<(test_suite_name)_apk', + '--strip-binary=<(android_strip)', + '--app_abi', + '<(android_app_abi)', + '--ant-args', + '-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)/../..', + ], + }], + }], # 'OS == "android" and gtest_target_type == "shared_library" + ], # conditions + }], + ], # target_conditions +} |