2013-10-04 21:31:27 +02:00
|
|
|
#
|
|
|
|
# libjingle
|
|
|
|
# Copyright 2013, Google Inc.
|
|
|
|
#
|
|
|
|
# Redistribution and use in source and binary forms, with or without
|
|
|
|
# modification, are permitted provided that the following conditions are met:
|
|
|
|
#
|
|
|
|
# 1. Redistributions of source code must retain the above copyright notice,
|
|
|
|
# this list of conditions and the following disclaimer.
|
|
|
|
# 2. Redistributions in binary form must reproduce the above copyright notice,
|
|
|
|
# this list of conditions and the following disclaimer in the documentation
|
|
|
|
# and/or other materials provided with the distribution.
|
|
|
|
# 3. The name of the author may not be used to endorse or promote products
|
|
|
|
# derived from this software without specific prior written permission.
|
|
|
|
#
|
|
|
|
# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED
|
|
|
|
# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
|
|
|
# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
|
|
|
|
# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
|
|
|
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
|
|
|
|
# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
|
|
|
|
# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
|
|
|
# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
|
|
|
|
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
|
|
|
|
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
|
|
#
|
|
|
|
|
|
|
|
# Copied from Chromium's src/build/isolate.gypi
|
|
|
|
#
|
2014-09-30 10:44:00 +02:00
|
|
|
# It was necessary to copy this file to libjingle , because the path to
|
|
|
|
# build/common.gypi is different for the standalone and Chromium builds. Gyp
|
|
|
|
# doesn't permit conditional inclusion or variable expansion in include paths.
|
2013-10-04 21:31:27 +02:00
|
|
|
# http://code.google.com/p/gyp/wiki/InputFormatReference#Including_Other_Files
|
2014-02-09 19:38:31 +01:00
|
|
|
#
|
|
|
|
# Local modifications:
|
|
|
|
# * Removed include of '../chrome/version.gypi'.
|
2014-09-30 10:44:00 +02:00
|
|
|
# * Removal passing of version_full variable created in version.gypi:
|
2014-02-09 19:38:31 +01:00
|
|
|
# '--extra-variable', 'version_full=<(version_full)',
|
2013-10-04 21:31:27 +02:00
|
|
|
|
|
|
|
# This file is meant to be included into a target to provide a rule
|
|
|
|
# to "build" .isolate files into a .isolated file.
|
|
|
|
#
|
|
|
|
# To use this, create a gyp target with the following form:
|
|
|
|
# 'conditions': [
|
|
|
|
# ['test_isolation_mode != "noop"', {
|
|
|
|
# 'targets': [
|
|
|
|
# {
|
|
|
|
# 'target_name': 'foo_test_run',
|
|
|
|
# 'type': 'none',
|
|
|
|
# 'dependencies': [
|
|
|
|
# 'foo_test',
|
|
|
|
# ],
|
|
|
|
# 'includes': [
|
|
|
|
# '../build/isolate.gypi',
|
|
|
|
# 'foo_test.isolate',
|
|
|
|
# ],
|
|
|
|
# 'sources': [
|
|
|
|
# 'foo_test.isolate',
|
|
|
|
# ],
|
|
|
|
# },
|
|
|
|
# ],
|
|
|
|
# }],
|
|
|
|
# ],
|
|
|
|
#
|
|
|
|
# Note: foo_test.isolate is included and a source file. It is an inherent
|
|
|
|
# property of the .isolate format. This permits to define GYP variables but is
|
|
|
|
# a stricter format than GYP so isolate.py can read it.
|
|
|
|
#
|
|
|
|
# The generated .isolated file will be:
|
|
|
|
# <(PRODUCT_DIR)/foo_test.isolated
|
2014-02-09 19:38:31 +01:00
|
|
|
#
|
|
|
|
# See http://dev.chromium.org/developers/testing/isolated-testing/for-swes
|
|
|
|
# for more information.
|
2013-10-04 21:31:27 +02:00
|
|
|
|
|
|
|
{
|
|
|
|
'rules': [
|
|
|
|
{
|
|
|
|
'rule_name': 'isolate',
|
|
|
|
'extension': 'isolate',
|
|
|
|
'inputs': [
|
|
|
|
# Files that are known to be involved in this step.
|
2013-12-12 23:54:25 +01:00
|
|
|
'<(DEPTH)/tools/swarming_client/isolate.py',
|
|
|
|
'<(DEPTH)/tools/swarming_client/run_isolated.py',
|
2013-10-04 21:31:27 +02:00
|
|
|
],
|
2014-09-30 10:44:00 +02:00
|
|
|
'outputs': [
|
|
|
|
'<(PRODUCT_DIR)/<(RULE_INPUT_ROOT).isolated',
|
|
|
|
],
|
2014-02-09 19:38:31 +01:00
|
|
|
'action': [
|
|
|
|
'python',
|
2014-09-30 10:44:00 +02:00
|
|
|
'<(DEPTH)/tools/swarming_client/isolate.py',
|
2014-02-09 19:38:31 +01:00
|
|
|
'<(test_isolation_mode)',
|
2014-09-30 10:44:00 +02:00
|
|
|
'--result', '<@(_outputs)',
|
2014-02-09 19:38:31 +01:00
|
|
|
'--isolate', '<(RULE_INPUT_PATH)',
|
|
|
|
|
|
|
|
# Variables should use the -V FOO=<(FOO) form so frequent values,
|
|
|
|
# like '0' or '1', aren't stripped out by GYP. Run 'isolate.py help' for
|
|
|
|
# more details.
|
|
|
|
#
|
|
|
|
# This list needs to be kept in sync with the cmd line options
|
|
|
|
# in src/build/android/pylib/gtest/setup.py.
|
|
|
|
|
|
|
|
# Path variables are used to replace file paths when loading a .isolate
|
|
|
|
# file
|
2014-06-13 11:16:23 +02:00
|
|
|
'--path-variable', 'DEPTH', '<(DEPTH)',
|
2014-02-09 19:38:31 +01:00
|
|
|
'--path-variable', 'PRODUCT_DIR', '<(PRODUCT_DIR) ',
|
|
|
|
|
|
|
|
'--config-variable', 'OS=<(OS)',
|
|
|
|
'--config-variable', 'chromeos=<(chromeos)',
|
|
|
|
'--config-variable', 'component=<(component)',
|
|
|
|
# TODO(kbr): move this to chrome_tests.gypi:gles2_conform_tests_run
|
|
|
|
# once support for user-defined config variables is added.
|
|
|
|
'--config-variable',
|
|
|
|
'internal_gles2_conform_tests=<(internal_gles2_conform_tests)',
|
|
|
|
'--config-variable', 'icu_use_data_file_flag=<(icu_use_data_file_flag)',
|
|
|
|
'--config-variable', 'use_openssl=<(use_openssl)',
|
|
|
|
],
|
2013-10-04 21:31:27 +02:00
|
|
|
'conditions': [
|
2014-02-09 19:38:31 +01:00
|
|
|
# Note: When gyp merges lists, it appends them to the old value.
|
|
|
|
['OS=="mac"', {
|
|
|
|
# <(mac_product_name) can contain a space, so don't use FOO=<(FOO)
|
|
|
|
# form.
|
2013-10-04 21:31:27 +02:00
|
|
|
'action': [
|
2014-02-09 19:38:31 +01:00
|
|
|
'--extra-variable', 'mac_product_name', '<(mac_product_name)',
|
2013-10-04 21:31:27 +02:00
|
|
|
],
|
|
|
|
}],
|
2014-02-09 19:38:31 +01:00
|
|
|
["test_isolation_outdir!=''", {
|
|
|
|
'action': [ '--isolate-server', '<(test_isolation_outdir)' ],
|
|
|
|
}],
|
2013-10-04 21:31:27 +02:00
|
|
|
],
|
|
|
|
},
|
|
|
|
],
|
|
|
|
}
|