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.
5 # This file is meant to be included into a target to provide a rule
6 # to "build" .isolate files into a .isolated file.
8 # To use this, create a gyp target with the following form:
10 # ['test_isolation_mode != "noop"', {
13 # 'target_name': 'foo_test_run',
19 # '../build/isolate.gypi',
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.
34 # The generated .isolated file will be:
35 # <(PRODUCT_DIR)/foo_test.isolated
40 'rule_name': 'isolate',
41 'extension': 'isolate',
44 # Disable file tracking by the build driver for now. This means the
45 # project must have the proper build-time dependency for their runtime
46 # dependency. This improves the runtime of the build driver since it
47 # doesn't have to stat() all these files.
49 # More importantly, it means that even if a isolate_dependency_tracked
50 # file is missing, for example if a file was deleted and the .isolate
51 # file was not updated, that won't break the build, especially in the
52 # case where foo_tests_run is not built! This should be reenabled once
53 # the switch-over to running tests on Swarm is completed.
54 #'<@(isolate_dependency_tracked)',
57 '<(PRODUCT_DIR)/<(RULE_INPUT_ROOT).isolated',
61 '<(DEPTH)/tools/swarm_client/isolate.py',
62 '<(test_isolation_mode)',
63 '--outdir', '<(test_isolation_outdir)',
64 '--variable', 'PRODUCT_DIR', '<(PRODUCT_DIR)',
65 '--variable', 'OS', '<(OS)',
66 '--result', '<@(_outputs)',
67 '--isolate', '<(RULE_INPUT_PATH)',
69 'msvs_cygwin_shell': 0,