OLD | NEW |
---|---|
(Empty) | |
1 # Copyright 2015 the V8 project authors. All rights reserved. | |
Michael Achenbach
2015/09/25 10:26:26
This is a copy from chromium/src/build with a mini
| |
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 | |
4 # found in the LICENSE file. | |
5 | |
6 # This file is meant to be included into a target to provide a rule | |
7 # to "build" .isolate files into a .isolated file. | |
8 # | |
9 # To use this, create a gyp target with the following form: | |
10 # 'conditions': [ | |
11 # ['test_isolation_mode != "noop"', { | |
12 # 'targets': [ | |
13 # { | |
14 # 'target_name': 'foo_test_run', | |
15 # 'type': 'none', | |
16 # 'dependencies': [ | |
17 # 'foo_test', | |
18 # ], | |
19 # 'includes': [ | |
20 # '../build/isolate.gypi', | |
21 # ], | |
22 # 'sources': [ | |
23 # 'foo_test.isolate', | |
24 # ], | |
25 # }, | |
26 # ], | |
27 # }], | |
28 # ], | |
29 # | |
30 # Note: foo_test.isolate is included and a source file. It is an inherent | |
31 # property of the .isolate format. This permits to define GYP variables but is | |
32 # a stricter format than GYP so isolate.py can read it. | |
33 # | |
34 # The generated .isolated file will be: | |
35 # <(PRODUCT_DIR)/foo_test.isolated | |
36 # | |
37 # See http://dev.chromium.org/developers/testing/isolated-testing/for-swes | |
38 # for more information. | |
39 | |
40 { | |
41 'rules': [ | |
42 { | |
43 'rule_name': 'isolate', | |
44 'extension': 'isolate', | |
45 'inputs': [ | |
46 # Files that are known to be involved in this step. | |
47 '<(DEPTH)/tools/isolate_driver.py', | |
48 '<(DEPTH)/tools/swarming_client/isolate.py', | |
49 '<(DEPTH)/tools/swarming_client/run_isolated.py', | |
50 ], | |
51 'outputs': [], | |
52 'action': [ | |
53 'python', | |
54 '<(DEPTH)/tools/isolate_driver.py', | |
55 '<(test_isolation_mode)', | |
56 '--isolated', '<(PRODUCT_DIR)/<(RULE_INPUT_ROOT).isolated', | |
57 '--isolate', '<(RULE_INPUT_PATH)', | |
58 | |
59 # Variables should use the -V FOO=<(FOO) form so frequent values, | |
60 # like '0' or '1', aren't stripped out by GYP. Run 'isolate.py help' | |
61 # for more details. | |
62 | |
63 # Path variables are used to replace file paths when loading a .isolate | |
64 # file | |
65 '--path-variable', 'DEPTH', '<(DEPTH)', | |
66 '--path-variable', 'PRODUCT_DIR', '<(PRODUCT_DIR)', | |
67 | |
68 '--config-variable', 'OS=<(OS)', | |
69 '--config-variable', 'v8_use_external_startup_data=<(v8_use_external_sta rtup_data)', | |
70 ], | |
71 'conditions': [ | |
72 ["test_isolation_mode == 'prepare'", { | |
73 'outputs': [ | |
74 '<(PRODUCT_DIR)/<(RULE_INPUT_ROOT).isolated.gen.json', | |
75 ], | |
76 }, { | |
77 'outputs': [ | |
78 '<(PRODUCT_DIR)/<(RULE_INPUT_ROOT).isolated', | |
79 ], | |
80 }], | |
81 ], | |
82 }, | |
83 ], | |
84 } | |
OLD | NEW |