OLD | NEW |
1 # Copyright 2015 the V8 project authors. All rights reserved. | 1 # Copyright 2015 the V8 project authors. All rights reserved. |
2 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 2 # Copyright (c) 2012 The Chromium Authors. All rights reserved. |
3 # Use of this source code is governed by a BSD-style license that can be | 3 # Use of this source code is governed by a BSD-style license that can be |
4 # found in the LICENSE file. | 4 # found in the LICENSE file. |
5 | 5 |
6 # This file is meant to be included into a target to provide a rule | 6 # This file is meant to be included into a target to provide a rule |
7 # to "build" .isolate files into a .isolated file. | 7 # to "build" .isolate files into a .isolated file. |
8 # | 8 # |
9 # To use this, create a gyp target with the following form: | 9 # To use this, create a gyp target with the following form: |
10 # 'conditions': [ | 10 # 'conditions': [ |
(...skipping 26 matching lines...) Expand all Loading... |
37 # See http://dev.chromium.org/developers/testing/isolated-testing/for-swes | 37 # See http://dev.chromium.org/developers/testing/isolated-testing/for-swes |
38 # for more information. | 38 # for more information. |
39 | 39 |
40 { | 40 { |
41 'rules': [ | 41 'rules': [ |
42 { | 42 { |
43 'rule_name': 'isolate', | 43 'rule_name': 'isolate', |
44 'extension': 'isolate', | 44 'extension': 'isolate', |
45 'inputs': [ | 45 'inputs': [ |
46 # Files that are known to be involved in this step. | 46 # Files that are known to be involved in this step. |
| 47 '<(DEPTH)/tools/isolate_driver.py', |
47 '<(DEPTH)/tools/swarming_client/isolate.py', | 48 '<(DEPTH)/tools/swarming_client/isolate.py', |
48 '<(DEPTH)/tools/swarming_client/run_isolated.py', | 49 '<(DEPTH)/tools/swarming_client/run_isolated.py', |
49 ], | 50 ], |
50 'outputs': [ | 51 'outputs': [ |
51 '<(PRODUCT_DIR)/<(RULE_INPUT_ROOT).isolated', | 52 '<(PRODUCT_DIR)/<(RULE_INPUT_ROOT).isolated', |
52 ], | 53 ], |
53 'action': [ | 54 'action': [ |
54 'python', | 55 'python', |
55 '<(DEPTH)/tools/swarming_client/isolate.py', | 56 '<(DEPTH)/tools/isolate_driver.py', |
56 '<(test_isolation_mode)', | 57 '<(test_isolation_mode)', |
57 '--isolated', '<(PRODUCT_DIR)/<(RULE_INPUT_ROOT).isolated', | 58 '--isolated', '<(PRODUCT_DIR)/<(RULE_INPUT_ROOT).isolated', |
58 '--isolate', '<(RULE_INPUT_PATH)', | 59 '--isolate', '<(RULE_INPUT_PATH)', |
59 | 60 |
60 # Variables should use the -V FOO=<(FOO) form so frequent values, | 61 # Variables should use the -V FOO=<(FOO) form so frequent values, |
61 # like '0' or '1', aren't stripped out by GYP. Run 'isolate.py help' | 62 # like '0' or '1', aren't stripped out by GYP. Run 'isolate.py help' |
62 # for more details. | 63 # for more details. |
63 | 64 |
64 # Path variables are used to replace file paths when loading a .isolate | 65 # Path variables are used to replace file paths when loading a .isolate |
65 # file | 66 # file |
66 '--path-variable', 'DEPTH', '<(DEPTH)', | 67 '--path-variable', 'DEPTH', '<(DEPTH)', |
67 '--path-variable', 'PRODUCT_DIR', '<(PRODUCT_DIR)', | 68 '--path-variable', 'PRODUCT_DIR', '<(PRODUCT_DIR)', |
68 | 69 |
69 '--config-variable', 'OS=<(OS)', | 70 '--config-variable', 'OS=<(OS)', |
70 '--config-variable', 'v8_use_external_startup_data=<(v8_use_external_sta
rtup_data)', | 71 '--config-variable', 'v8_use_external_startup_data=<(v8_use_external_sta
rtup_data)', |
71 ], | 72 ], |
72 }, | 73 }, |
73 ], | 74 ], |
74 } | 75 } |
OLD | NEW |