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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
67 | 67 |
68 # Path variables are used to replace file paths when loading a .isolate | 68 # Path variables are used to replace file paths when loading a .isolate |
69 # file | 69 # file |
70 '--path-variable', 'DEPTH', '<(DEPTH)', | 70 '--path-variable', 'DEPTH', '<(DEPTH)', |
71 '--path-variable', 'PRODUCT_DIR', '<(PRODUCT_DIR) ', | 71 '--path-variable', 'PRODUCT_DIR', '<(PRODUCT_DIR) ', |
72 | 72 |
73 # Extra variables are replaced on the 'command' entry and on paths in | 73 # Extra variables are replaced on the 'command' entry and on paths in |
74 # the .isolate file but are not considered relative paths. | 74 # the .isolate file but are not considered relative paths. |
75 '--extra-variable', 'version_full=<(version_full)', | 75 '--extra-variable', 'version_full=<(version_full)', |
76 | 76 |
| 77 '--config-variable', 'CONFIGURATION_NAME=<(CONFIGURATION_NAME)', |
77 '--config-variable', 'OS=<(OS)', | 78 '--config-variable', 'OS=<(OS)', |
78 '--config-variable', 'CONFIGURATION_NAME=<(CONFIGURATION_NAME)', | |
79 '--config-variable', 'asan=<(asan)', | 79 '--config-variable', 'asan=<(asan)', |
80 '--config-variable', 'chromeos=<(chromeos)', | 80 '--config-variable', 'chromeos=<(chromeos)', |
81 '--config-variable', 'component=<(component)', | 81 '--config-variable', 'component=<(component)', |
| 82 '--config-variable', 'disable_nacl=<(disable_nacl)', |
82 '--config-variable', 'fastbuild=<(fastbuild)', | 83 '--config-variable', 'fastbuild=<(fastbuild)', |
| 84 '--config-variable', 'icu_use_data_file_flag=<(icu_use_data_file_flag)', |
83 # TODO(kbr): move this to chrome_tests.gypi:gles2_conform_tests_run | 85 # TODO(kbr): move this to chrome_tests.gypi:gles2_conform_tests_run |
84 # once support for user-defined config variables is added. | 86 # once support for user-defined config variables is added. |
85 '--config-variable', | 87 '--config-variable', |
86 'internal_gles2_conform_tests=<(internal_gles2_conform_tests)', | 88 'internal_gles2_conform_tests=<(internal_gles2_conform_tests)', |
87 '--config-variable', 'icu_use_data_file_flag=<(icu_use_data_file_flag)', | 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_libr
aries)', |
| 96 '--config-variable', 'use_openssl=<(use_openssl)', |
| 97 '--config-variable', 'use_ozone=<(use_ozone)', |
88 '--config-variable', 'v8_use_external_startup_data=<(v8_use_external_sta
rtup_data)', | 98 '--config-variable', 'v8_use_external_startup_data=<(v8_use_external_sta
rtup_data)', |
89 '--config-variable', 'lsan=<(lsan)', | |
90 '--config-variable', 'libpeer_target_type=<(libpeer_target_type)', | |
91 '--config-variable', 'use_openssl=<(use_openssl)', | |
92 '--config-variable', 'target_arch=<(target_arch)', | |
93 '--config-variable', 'use_ozone=<(use_ozone)', | |
94 '--config-variable', 'disable_nacl=<(disable_nacl)', | |
95 ], | 99 ], |
96 'conditions': [ | 100 'conditions': [ |
97 # Note: When gyp merges lists, it appends them to the old value. | 101 # Note: When gyp merges lists, it appends them to the old value. |
98 ['OS=="mac"', { | 102 ['OS=="mac"', { |
99 # <(mac_product_name) can contain a space, so don't use FOO=<(FOO) | 103 # <(mac_product_name) can contain a space, so don't use FOO=<(FOO) |
100 # form. | 104 # form. |
101 'action': [ | 105 'action': [ |
102 '--extra-variable', 'mac_product_name', '<(mac_product_name)', | 106 '--extra-variable', 'mac_product_name', '<(mac_product_name)', |
103 ], | 107 ], |
104 }], | 108 }], |
105 ["test_isolation_outdir!=''", { | 109 ["test_isolation_outdir!=''", { |
106 'action': [ '--isolate-server', '<(test_isolation_outdir)' ], | 110 'action': [ '--isolate-server', '<(test_isolation_outdir)' ], |
107 }], | 111 }], |
108 ['test_isolation_fail_on_missing == 0', { | 112 ['test_isolation_fail_on_missing == 0', { |
109 'action': ['--ignore_broken_items'], | 113 'action': ['--ignore_broken_items'], |
110 }], | 114 }], |
111 ["test_isolation_mode == 'prepare'", { | 115 ["test_isolation_mode == 'prepare'", { |
112 'outputs': [ | 116 'outputs': [ |
113 '<(PRODUCT_DIR)/<(RULE_INPUT_ROOT).isolated.gen.json', | 117 '<(PRODUCT_DIR)/<(RULE_INPUT_ROOT).isolated.gen.json', |
114 ], | 118 ], |
115 }, { | 119 }, { |
116 'outputs': [ | 120 'outputs': [ |
117 '<(PRODUCT_DIR)/<(RULE_INPUT_ROOT).isolated', | 121 '<(PRODUCT_DIR)/<(RULE_INPUT_ROOT).isolated', |
118 ], | 122 ], |
119 }], | 123 }], |
120 ], | 124 ], |
121 }, | 125 }, |
122 ], | 126 ], |
123 } | 127 } |
OLD | NEW |