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 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
83 # Path variables are used to replace file paths when loading a .isolate | 83 # Path variables are used to replace file paths when loading a .isolate |
84 # file | 84 # file |
85 '--path-variable', 'DEPTH', '<(DEPTH)', | 85 '--path-variable', 'DEPTH', '<(DEPTH)', |
86 '--path-variable', 'PRODUCT_DIR', '<(PRODUCT_DIR) ', | 86 '--path-variable', 'PRODUCT_DIR', '<(PRODUCT_DIR) ', |
87 | 87 |
88 # Extra variables are replaced on the 'command' entry and on paths in | 88 # Extra variables are replaced on the 'command' entry and on paths in |
89 # the .isolate file but are not considered relative paths. | 89 # the .isolate file but are not considered relative paths. |
90 '--extra-variable', 'version_full=<(version_full)', | 90 '--extra-variable', 'version_full=<(version_full)', |
91 | 91 |
92 '--config-variable', 'OS=<(OS)', | 92 '--config-variable', 'OS=<(OS)', |
| 93 '--config-variable', 'CONFIGURATION_NAME=<(CONFIGURATION_NAME)', |
93 '--config-variable', 'chromeos=<(chromeos)', | 94 '--config-variable', 'chromeos=<(chromeos)', |
94 '--config-variable', 'component=<(component)', | 95 '--config-variable', 'component=<(component)', |
95 # TODO(kbr): move this to chrome_tests.gypi:gles2_conform_tests_run | 96 # TODO(kbr): move this to chrome_tests.gypi:gles2_conform_tests_run |
96 # once support for user-defined config variables is added. | 97 # once support for user-defined config variables is added. |
97 '--config-variable', | 98 '--config-variable', |
98 'internal_gles2_conform_tests=<(internal_gles2_conform_tests)', | 99 'internal_gles2_conform_tests=<(internal_gles2_conform_tests)', |
99 '--config-variable', 'icu_use_data_file_flag=<(icu_use_data_file_flag)', | 100 '--config-variable', 'icu_use_data_file_flag=<(icu_use_data_file_flag)', |
100 '--config-variable', 'libpeer_target_type=<(libpeer_target_type)', | 101 '--config-variable', 'libpeer_target_type=<(libpeer_target_type)', |
101 '--config-variable', 'use_openssl=<(use_openssl)', | 102 '--config-variable', 'use_openssl=<(use_openssl)', |
102 ], | 103 ], |
103 'conditions': [ | 104 'conditions': [ |
104 # Note: When gyp merges lists, it appends them to the old value. | 105 # Note: When gyp merges lists, it appends them to the old value. |
105 ['OS=="mac"', { | 106 ['OS=="mac"', { |
106 # <(mac_product_name) can contain a space, so don't use FOO=<(FOO) | 107 # <(mac_product_name) can contain a space, so don't use FOO=<(FOO) |
107 # form. | 108 # form. |
108 'action': [ | 109 'action': [ |
109 '--extra-variable', 'mac_product_name', '<(mac_product_name)', | 110 '--extra-variable', 'mac_product_name', '<(mac_product_name)', |
110 ], | 111 ], |
111 }], | 112 }], |
112 ["test_isolation_outdir!=''", { | 113 ["test_isolation_outdir!=''", { |
113 'action': [ '--isolate-server', '<(test_isolation_outdir)' ], | 114 'action': [ '--isolate-server', '<(test_isolation_outdir)' ], |
114 }], | 115 }], |
115 ['test_isolation_fail_on_missing == 0', { | 116 ['test_isolation_fail_on_missing == 0', { |
116 'action': ['--ignore_broken_items'], | 117 'action': ['--ignore_broken_items'], |
117 }], | 118 }], |
118 ], | 119 ], |
119 }, | 120 }, |
120 ], | 121 ], |
121 } | 122 } |
OLD | NEW |