media/webrtc/trunk/build/apk_test.gypi

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

michael@0 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved.
michael@0 2 # Use of this source code is governed by a BSD-style license that can be
michael@0 3 # found in the LICENSE file.
michael@0 4
michael@0 5 # This file is meant to be included into a target to provide a rule
michael@0 6 # to build APK based test suites.
michael@0 7 #
michael@0 8 # To use this, create a gyp target with the following form:
michael@0 9 # {
michael@0 10 # 'target_name': 'test_suite_name_apk',
michael@0 11 # 'type': 'none',
michael@0 12 # 'variables': {
michael@0 13 # 'test_suite_name': 'test_suite_name', # string
michael@0 14 # 'input_shlib_path' : '/path/to/test_suite.so', # string
michael@0 15 # 'input_jars_paths': ['/path/to/test_suite.jar', ... ], # list
michael@0 16 # },
michael@0 17 # 'includes': ['path/to/this/gypi/file'],
michael@0 18 # }
michael@0 19 #
michael@0 20
michael@0 21 {
michael@0 22 'variables': {
michael@0 23 'input_jars_paths': [
michael@0 24 # Needed by ChromeNativeTestActivity.java.
michael@0 25 '<(PRODUCT_DIR)/lib.java/chromium_base.jar',
michael@0 26 ],
michael@0 27 },
michael@0 28 'target_conditions': [
michael@0 29 ['_toolset == "target"', {
michael@0 30 'conditions': [
michael@0 31 ['OS == "android" and gtest_target_type == "shared_library"', {
michael@0 32 'actions': [{
michael@0 33 'action_name': 'apk_<(test_suite_name)',
michael@0 34 'message': 'Building <(test_suite_name) test apk.',
michael@0 35 'inputs': [
michael@0 36 '<(DEPTH)/testing/android/AndroidManifest.xml',
michael@0 37 '<(DEPTH)/testing/android/generate_native_test.py',
michael@0 38 '<(input_shlib_path)',
michael@0 39 '>@(input_jars_paths)',
michael@0 40 ],
michael@0 41 'outputs': [
michael@0 42 '<(PRODUCT_DIR)/<(test_suite_name)_apk/<(test_suite_name)-debug.apk',
michael@0 43 ],
michael@0 44 'action': [
michael@0 45 '<(DEPTH)/testing/android/generate_native_test.py',
michael@0 46 '--native_library',
michael@0 47 '<(input_shlib_path)',
michael@0 48 '--jars',
michael@0 49 '">@(input_jars_paths)"',
michael@0 50 '--output',
michael@0 51 '<(PRODUCT_DIR)/<(test_suite_name)_apk',
michael@0 52 '--strip-binary=<(android_strip)',
michael@0 53 '--app_abi',
michael@0 54 '<(android_app_abi)',
michael@0 55 '--ant-args',
michael@0 56 '-DPRODUCT_DIR=<(ant_build_out)',
michael@0 57 '--ant-args',
michael@0 58 '-DANDROID_SDK=<(android_sdk)',
michael@0 59 '--ant-args',
michael@0 60 '-DANDROID_SDK_ROOT=<(android_sdk_root)',
michael@0 61 '--ant-args',
michael@0 62 '-DANDROID_SDK_TOOLS=<(android_sdk_tools)',
michael@0 63 '--ant-args',
michael@0 64 '-DANDROID_SDK_VERSION=<(android_sdk_version)',
michael@0 65 '--ant-args',
michael@0 66 '-DANDROID_GDBSERVER=<(android_gdbserver)',
michael@0 67 '--ant-args',
michael@0 68 '-DCHROMIUM_SRC=<(ant_build_out)/../..',
michael@0 69 ],
michael@0 70 }],
michael@0 71 }], # 'OS == "android" and gtest_target_type == "shared_library"
michael@0 72 ], # conditions
michael@0 73 }],
michael@0 74 ], # target_conditions
michael@0 75 }

mercurial