OLD | NEW |
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 # This file is meant to be included into a target to provide a rule | 5 # This file is meant to be included into a target to provide a rule |
6 # to "build" .isolate files into a .isolated file. | 6 # to "build" .isolate files into a .isolated file. |
7 # | 7 # |
8 # To use this, create a gyp target with the following form: | 8 # To use this, create a gyp target with the following form: |
9 # 'conditions': [ | 9 # 'conditions': [ |
10 # ['test_isolation_mode != "noop"', { | 10 # ['test_isolation_mode != "noop"', { |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
53 # the switch-over to running tests on Swarm is completed. | 53 # the switch-over to running tests on Swarm is completed. |
54 #'<@(isolate_dependency_tracked)', | 54 #'<@(isolate_dependency_tracked)', |
55 ], | 55 ], |
56 'outputs': [ | 56 'outputs': [ |
57 '<(PRODUCT_DIR)/<(RULE_INPUT_ROOT).isolated', | 57 '<(PRODUCT_DIR)/<(RULE_INPUT_ROOT).isolated', |
58 ], | 58 ], |
59 'action': [ | 59 'action': [ |
60 'python', | 60 'python', |
61 '<(DEPTH)/tools/swarm_client/isolate.py', | 61 '<(DEPTH)/tools/swarm_client/isolate.py', |
62 '<(test_isolation_mode)', | 62 '<(test_isolation_mode)', |
63 '--outdir', '<(test_isolation_outdir)', | |
64 '--variable', 'PRODUCT_DIR', '<(PRODUCT_DIR)', | 63 '--variable', 'PRODUCT_DIR', '<(PRODUCT_DIR)', |
65 '--variable', 'OS', '<(OS)', | 64 '--variable', 'OS', '<(OS)', |
66 '--variable', 'chromeos', '<(chromeos)', | 65 '--variable', 'chromeos', '<(chromeos)', |
67 '--result', '<@(_outputs)', | 66 '--result', '<@(_outputs)', |
68 '--isolate', '<(RULE_INPUT_PATH)', | 67 '--isolate', '<(RULE_INPUT_PATH)', |
69 # Remove once mac compiles are fixed. | |
70 '-v', | |
71 '-v', | |
72 ], | 68 ], |
| 69 'conditions': [ |
| 70 ["test_isolation_outdir!=''", { |
| 71 'action': [ |
| 72 '--outdir', '<(PRODUCT_DIR)/<(test_isolation_outdir)', |
| 73 ], |
| 74 }], |
| 75 ], |
| 76 |
73 'msvs_cygwin_shell': 0, | 77 'msvs_cygwin_shell': 0, |
74 }, | 78 }, |
75 ], | 79 ], |
76 } | 80 } |
OLD | NEW |