Simplify an IPC handler which doesn't need _DELAY_REPLY
[chromium-blink-merge.git] / build / isolate.gypi
blobf66175af48284a8395d4722d68ba90f3da0a30ff
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:
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 #         ],
21 #         'sources': [
22 #           'foo_test.isolate',
23 #         ],
24 #       },
25 #     ],
26 #   }],
27 # ],
29 # Note: foo_test.isolate is included and a source file. It is an inherent
30 # property of the .isolate format. This permits to define GYP variables but is
31 # a stricter format than GYP so isolate.py can read it.
33 # The generated .isolated file will be:
34 #   <(PRODUCT_DIR)/foo_test.isolated
36 # See http://dev.chromium.org/developers/testing/isolated-testing/for-swes
37 # for more information.
40   'includes': [
41     '../build/util/version.gypi',
42   ],
43   'rules': [
44     {
45       'rule_name': 'isolate',
46       'extension': 'isolate',
47       'inputs': [
48         # Files that are known to be involved in this step.
49         '<(DEPTH)/tools/isolate_driver.py',
50         '<(DEPTH)/tools/swarming_client/isolate.py',
51         '<(DEPTH)/tools/swarming_client/run_isolated.py',
52       ],
53       'outputs': [],
54       'action': [
55         'python',
56         '<(DEPTH)/tools/isolate_driver.py',
57         '<(test_isolation_mode)',
58         '--isolated', '<(PRODUCT_DIR)/<(RULE_INPUT_ROOT).isolated',
59         '--isolate', '<(RULE_INPUT_PATH)',
61         # Variables should use the -V FOO=<(FOO) form so frequent values,
62         # like '0' or '1', aren't stripped out by GYP. Run 'isolate.py help' for
63         # more details.
64         #
65         # This list needs to be kept in sync with the cmd line options
66         # in src/build/android/pylib/gtest/setup.py.
68         # Path variables are used to replace file paths when loading a .isolate
69         # file
70         '--path-variable', 'DEPTH', '<(DEPTH)',
71         '--path-variable', 'PRODUCT_DIR', '<(PRODUCT_DIR) ',
73         # Extra variables are replaced on the 'command' entry and on paths in
74         # the .isolate file but are not considered relative paths.
75         '--extra-variable', 'version_full=<(version_full)',
77         '--config-variable', 'CONFIGURATION_NAME=<(CONFIGURATION_NAME)',
78         '--config-variable', 'OS=<(OS)',
79         '--config-variable', 'asan=<(asan)',
80         '--config-variable', 'chromeos=<(chromeos)',
81         '--config-variable', 'component=<(component)',
82         '--config-variable', 'disable_nacl=<(disable_nacl)',
83         '--config-variable', 'fastbuild=<(fastbuild)',
84         '--config-variable', 'icu_use_data_file_flag=<(icu_use_data_file_flag)',
85         # TODO(kbr): move this to chrome_tests.gypi:gles2_conform_tests_run
86         # once support for user-defined config variables is added.
87         '--config-variable',
88           'internal_gles2_conform_tests=<(internal_gles2_conform_tests)',
89         '--config-variable', 'libpeer_target_type=<(libpeer_target_type)',
90         '--config-variable', 'lsan=<(lsan)',
91         '--config-variable', 'msan=<(msan)',
92         '--config-variable', 'target_arch=<(target_arch)',
93         '--config-variable', 'tsan=<(tsan)',
94         '--config-variable', 'use_custom_libcxx=<(use_custom_libcxx)',
95         '--config-variable', 'use_instrumented_libraries=<(use_instrumented_libraries)',
96         '--config-variable',
97         'use_prebuilt_instrumented_libraries=<(use_prebuilt_instrumented_libraries)',
98         '--config-variable', 'use_openssl=<(use_openssl)',
99         '--config-variable', 'use_ozone=<(use_ozone)',
100         '--config-variable', 'use_x11=<(use_x11)',
101         '--config-variable', 'v8_use_external_startup_data=<(v8_use_external_startup_data)',
102       ],
103       'conditions': [
104         # Note: When gyp merges lists, it appends them to the old value.
105         ['OS=="mac"', {
106           # <(mac_product_name) can contain a space, so don't use FOO=<(FOO)
107           # form.
108           'action': [
109             '--extra-variable', 'mac_product_name', '<(mac_product_name)',
110           ],
111         }],
112         ["test_isolation_outdir!=''", {
113           'action': [ '--isolate-server', '<(test_isolation_outdir)' ],
114         }],
115         ["test_isolation_mode == 'prepare'", {
116           'outputs': [
117             '<(PRODUCT_DIR)/<(RULE_INPUT_ROOT).isolated.gen.json',
118           ],
119         }, {
120           'outputs': [
121             '<(PRODUCT_DIR)/<(RULE_INPUT_ROOT).isolated',
122           ],
123         }],
124       ],
125     },
126   ],