2015-09-25 14:36:58 +00:00
|
|
|
# Copyright 2015 the V8 project authors. All rights reserved.
|
|
|
|
# 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" .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': [
|
2016-04-29 10:08:53 +00:00
|
|
|
# '../gypfiles/isolate.gypi',
|
2015-09-25 14:36:58 +00:00
|
|
|
# ],
|
|
|
|
# '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
|
|
|
|
#
|
|
|
|
# See http://dev.chromium.org/developers/testing/isolated-testing/for-swes
|
|
|
|
# for more information.
|
|
|
|
|
|
|
|
{
|
|
|
|
'rules': [
|
|
|
|
{
|
|
|
|
'rule_name': 'isolate',
|
|
|
|
'extension': 'isolate',
|
|
|
|
'inputs': [
|
|
|
|
# Files that are known to be involved in this step.
|
2015-10-01 12:32:00 +00:00
|
|
|
'<(DEPTH)/tools/isolate_driver.py',
|
2015-09-25 14:36:58 +00:00
|
|
|
'<(DEPTH)/tools/swarming_client/isolate.py',
|
|
|
|
'<(DEPTH)/tools/swarming_client/run_isolated.py',
|
|
|
|
],
|
|
|
|
'outputs': [
|
|
|
|
'<(PRODUCT_DIR)/<(RULE_INPUT_ROOT).isolated',
|
|
|
|
],
|
|
|
|
'action': [
|
|
|
|
'python',
|
2015-10-01 12:32:00 +00:00
|
|
|
'<(DEPTH)/tools/isolate_driver.py',
|
2015-09-25 14:36:58 +00:00
|
|
|
'<(test_isolation_mode)',
|
|
|
|
'--isolated', '<(PRODUCT_DIR)/<(RULE_INPUT_ROOT).isolated',
|
|
|
|
'--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.
|
|
|
|
|
|
|
|
# Path variables are used to replace file paths when loading a .isolate
|
|
|
|
# file
|
|
|
|
'--path-variable', 'DEPTH', '<(DEPTH)',
|
|
|
|
'--path-variable', 'PRODUCT_DIR', '<(PRODUCT_DIR)',
|
|
|
|
|
2015-11-04 10:46:07 +00:00
|
|
|
'--config-variable', 'CONFIGURATION_NAME=<(CONFIGURATION_NAME)',
|
2015-09-25 14:36:58 +00:00
|
|
|
'--config-variable', 'OS=<(OS)',
|
2015-10-30 16:20:52 +00:00
|
|
|
'--config-variable', 'asan=<(asan)',
|
|
|
|
'--config-variable', 'cfi_vptr=<(cfi_vptr)',
|
2016-02-17 10:07:58 +00:00
|
|
|
'--config-variable', 'gcmole=<(gcmole)',
|
2016-02-15 12:47:15 +00:00
|
|
|
'--config-variable', 'has_valgrind=<(has_valgrind)',
|
2016-06-09 13:23:00 +00:00
|
|
|
'--config-variable', 'icu_use_data_file_flag=<(icu_use_data_file_flag)',
|
2016-10-12 07:31:53 +00:00
|
|
|
'--config-variable', 'is_gn=0',
|
2015-10-30 16:20:52 +00:00
|
|
|
'--config-variable', 'msan=<(msan)',
|
|
|
|
'--config-variable', 'tsan=<(tsan)',
|
2016-03-10 12:04:01 +00:00
|
|
|
'--config-variable', 'coverage=<(coverage)',
|
|
|
|
'--config-variable', 'sanitizer_coverage=<(sanitizer_coverage)',
|
2015-10-27 15:27:21 +00:00
|
|
|
'--config-variable', 'component=<(component)',
|
|
|
|
'--config-variable', 'target_arch=<(target_arch)',
|
2016-10-12 07:31:53 +00:00
|
|
|
'--config-variable', 'v8_enable_inspector=<(v8_enable_inspector)',
|
2015-09-25 14:36:58 +00:00
|
|
|
'--config-variable', 'v8_use_external_startup_data=<(v8_use_external_startup_data)',
|
2015-10-05 09:48:25 +00:00
|
|
|
'--config-variable', 'v8_use_snapshot=<(v8_use_snapshot)',
|
2015-09-25 14:36:58 +00:00
|
|
|
],
|
2015-11-04 10:46:07 +00:00
|
|
|
'conditions': [
|
|
|
|
['OS=="win"', {
|
|
|
|
'action': [
|
2016-04-14 14:53:07 +00:00
|
|
|
'--config-variable', 'msvs_version=2013',
|
2015-11-04 10:46:07 +00:00
|
|
|
],
|
|
|
|
}, {
|
|
|
|
'action': [
|
|
|
|
'--config-variable', 'msvs_version=0',
|
|
|
|
],
|
|
|
|
}],
|
|
|
|
],
|
2015-09-25 14:36:58 +00:00
|
|
|
},
|
|
|
|
],
|
|
|
|
}
|