Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(9)

Side by Side Diff: build/isolate.gypi

Issue 1891763002: isolate.gypi: Only load build/util/version.gypi for Windows. (Closed) Base URL: http://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 19 matching lines...) Expand all
30 # property of the .isolate format. This permits to define GYP variables but is 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. 31 # a stricter format than GYP so isolate.py can read it.
32 # 32 #
33 # The generated .isolated file will be: 33 # The generated .isolated file will be:
34 # <(PRODUCT_DIR)/foo_test.isolated 34 # <(PRODUCT_DIR)/foo_test.isolated
35 # 35 #
36 # See http://dev.chromium.org/developers/testing/isolated-testing/for-swes 36 # See http://dev.chromium.org/developers/testing/isolated-testing/for-swes
37 # for more information. 37 # for more information.
38 38
39 { 39 {
40 'includes': [
41 '../build/util/version.gypi',
42 ],
43 'rules': [ 40 'rules': [
44 { 41 {
45 'rule_name': 'isolate', 42 'rule_name': 'isolate',
46 'extension': 'isolate', 43 'extension': 'isolate',
47 'inputs': [ 44 'inputs': [
48 # Files that are known to be involved in this step. 45 # Files that are known to be involved in this step.
49 '<(DEPTH)/tools/isolate_driver.py', 46 '<(DEPTH)/tools/isolate_driver.py',
50 '<(DEPTH)/tools/swarming_client/isolate.py', 47 '<(DEPTH)/tools/swarming_client/isolate.py',
51 '<(DEPTH)/tools/swarming_client/run_isolated.py', 48 '<(DEPTH)/tools/swarming_client/run_isolated.py',
52 ], 49 ],
53 'outputs': [], 50 'outputs': [],
54 'action': [ 51 'action': [
55 'python', 52 'python',
56 '<(DEPTH)/tools/isolate_driver.py', 53 '<(DEPTH)/tools/isolate_driver.py',
57 '<(test_isolation_mode)', 54 '<(test_isolation_mode)',
58 '--isolated', '<(PRODUCT_DIR)/<(RULE_INPUT_ROOT).isolated', 55 '--isolated', '<(PRODUCT_DIR)/<(RULE_INPUT_ROOT).isolated',
59 '--isolate', '<(RULE_INPUT_PATH)', 56 '--isolate', '<(RULE_INPUT_PATH)',
60 57
61 # Variables should use the -V FOO=<(FOO) form so frequent values, 58 # 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 59 # like '0' or '1', aren't stripped out by GYP. Run 'isolate.py help' for
63 # more details. 60 # more details.
64 61
65 # Path variables are used to replace file paths when loading a .isolate 62 # Path variables are used to replace file paths when loading a .isolate
66 # file 63 # file
67 '--path-variable', 'DEPTH', '<(DEPTH)', 64 '--path-variable', 'DEPTH', '<(DEPTH)',
68 '--path-variable', 'PRODUCT_DIR', '<(PRODUCT_DIR) ', 65 '--path-variable', 'PRODUCT_DIR', '<(PRODUCT_DIR) ',
69 66
70 # Extra variables are replaced on the 'command' entry and on paths in
71 # the .isolate file but are not considered relative paths.
72 '--extra-variable', 'version_full=<(version_full)',
73
74 # Note: This list must match DefaultConfigVariables() 67 # Note: This list must match DefaultConfigVariables()
75 # in build/android/pylib/utils/isolator.py 68 # in build/android/pylib/utils/isolator.py
76 '--config-variable', 'CONFIGURATION_NAME=<(CONFIGURATION_NAME)', 69 '--config-variable', 'CONFIGURATION_NAME=<(CONFIGURATION_NAME)',
77 '--config-variable', 'OS=<(OS)', 70 '--config-variable', 'OS=<(OS)',
78 '--config-variable', 'asan=<(asan)', 71 '--config-variable', 'asan=<(asan)',
79 '--config-variable', 'branding=<(branding)', 72 '--config-variable', 'branding=<(branding)',
80 '--config-variable', 'chromeos=<(chromeos)', 73 '--config-variable', 'chromeos=<(chromeos)',
81 '--config-variable', 'component=<(component)', 74 '--config-variable', 'component=<(component)',
82 '--config-variable', 'disable_nacl=<(disable_nacl)', 75 '--config-variable', 'disable_nacl=<(disable_nacl)',
83 '--config-variable', 'enable_pepper_cdms=<(enable_pepper_cdms)', 76 '--config-variable', 'enable_pepper_cdms=<(enable_pepper_cdms)',
(...skipping 13 matching lines...) Expand all
97 '--config-variable', 'use_instrumented_libraries=<(use_instrumented_libr aries)', 90 '--config-variable', 'use_instrumented_libraries=<(use_instrumented_libr aries)',
98 '--config-variable', 91 '--config-variable',
99 'use_prebuilt_instrumented_libraries=<(use_prebuilt_instrumented_librari es)', 92 'use_prebuilt_instrumented_libraries=<(use_prebuilt_instrumented_librari es)',
100 '--config-variable', 'use_openssl=<(use_openssl)', 93 '--config-variable', 'use_openssl=<(use_openssl)',
101 '--config-variable', 'use_ozone=<(use_ozone)', 94 '--config-variable', 'use_ozone=<(use_ozone)',
102 '--config-variable', 'use_x11=<(use_x11)', 95 '--config-variable', 'use_x11=<(use_x11)',
103 '--config-variable', 'v8_use_external_startup_data=<(v8_use_external_sta rtup_data)', 96 '--config-variable', 'v8_use_external_startup_data=<(v8_use_external_sta rtup_data)',
104 ], 97 ],
105 'conditions': [ 98 'conditions': [
106 # Note: When gyp merges lists, it appends them to the old value. 99 # Note: When gyp merges lists, it appends them to the old value.
100 # Extra variables are replaced on the 'command' entry and on paths in
101 # the .isolate file but are not considered relative paths.
107 ['OS=="mac"', { 102 ['OS=="mac"', {
108 'action': [ 103 'action': [
109 '--extra-variable', 'mac_product_name=<(mac_product_name)', 104 '--extra-variable', 'mac_product_name=<(mac_product_name)',
110 ], 105 ],
111 }], 106 }],
112 ["test_isolation_mode == 'prepare'", { 107 ["test_isolation_mode == 'prepare'", {
113 'outputs': [ 108 'outputs': [
114 '<(PRODUCT_DIR)/<(RULE_INPUT_ROOT).isolated.gen.json', 109 '<(PRODUCT_DIR)/<(RULE_INPUT_ROOT).isolated.gen.json',
115 ], 110 ],
116 }, { 111 }, {
117 'outputs': [ 112 'outputs': [
118 '<(PRODUCT_DIR)/<(RULE_INPUT_ROOT).isolated', 113 '<(PRODUCT_DIR)/<(RULE_INPUT_ROOT).isolated',
119 ], 114 ],
120 }], 115 }],
121 ['OS=="win"', { 116 ['OS=="win"', {
117 'includes': ['../build/util/version.gypi'],
122 'action': [ 118 'action': [
119 '--extra-variable', 'version_full=<(version_full)',
123 '--config-variable', 'msvs_version=<(MSVS_VERSION)', 120 '--config-variable', 'msvs_version=<(MSVS_VERSION)',
124 ], 121 ],
125 }, { 122 }, {
126 'action': [ 123 'action': [
127 '--config-variable', 'msvs_version=0', 124 '--config-variable', 'msvs_version=0',
128 ], 125 ],
129 }], 126 }],
130 ], 127 ],
131 }, 128 },
132 ], 129 ],
133 } 130 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698