Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | |
| 2 # Use of this source code is governed by a BSD-style license that can be | |
| 3 # found in the LICENSE file. | |
| 4 | |
| 5 # This file is meant to be included into a target to provide a rule | |
| 6 # to "build" .isolate files into a .isolated file. | |
| 7 # | |
| 8 # To use this, create a gyp target with the following form: | |
| 9 # 'conditions': [ | |
| 10 # ['test_isolation_mode != "noop"', { | |
| 11 # 'targets': [ | |
| 12 # { | |
| 13 # 'target_name': 'foo_test_run', | |
| 14 # 'type': 'none', | |
| 15 # 'dependencies': [ | |
| 16 # 'foo_test', | |
| 17 # ], | |
| 18 # 'includes': [ | |
| 19 # '../build/isolate.gypi', | |
| 20 # 'foo_test.isolate', | |
| 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 | |
|
csharp
2012/10/19 18:24:47
Why is there an underscore before included and aft
M-A Ruel
2012/10/19 18:26:52
That's geek's _italic_. Removed.
| |
| 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 { | |
| 38 'rules': [ | |
| 39 { | |
| 40 'rule_name': 'isolate', | |
| 41 'extension': 'isolate', | |
| 42 'inputs': [ | |
| 43 '<@(isolate_dependency_tracked)', | |
| 44 '<(RULE_INPUT_PATH)', | |
| 45 ], | |
| 46 'outputs': [ | |
| 47 '<(PRODUCT_DIR)/<(RULE_INPUT_ROOT).isolated', | |
| 48 ], | |
| 49 'action': [ | |
| 50 '<(DEPTH)/tools/swarm_client/isolate.py', | |
| 51 '<(test_isolation_mode)', | |
| 52 '--outdir', '<(test_isolation_outdir)', | |
| 53 '--variable', 'PRODUCT_DIR', '<(PRODUCT_DIR)', | |
| 54 '--variable', 'OS', '<(OS)', | |
| 55 '--result', '<@(_outputs)', | |
| 56 '--isolate', '<(RULE_INPUT_PATH)', | |
| 57 ], | |
| 58 'msvs_cygwin_shell': 0, | |
| 59 }, | |
| 60 ], | |
| 61 } | |
| OLD | NEW |