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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
54 'action': [ | 54 'action': [ |
55 'python', | 55 'python', |
56 '<(DEPTH)/tools/isolate_driver.py', | 56 '<(DEPTH)/tools/isolate_driver.py', |
57 '<(test_isolation_mode)', | 57 '<(test_isolation_mode)', |
58 '--isolated', '<(PRODUCT_DIR)/<(RULE_INPUT_ROOT).isolated', | 58 '--isolated', '<(PRODUCT_DIR)/<(RULE_INPUT_ROOT).isolated', |
59 '--isolate', '<(RULE_INPUT_PATH)', | 59 '--isolate', '<(RULE_INPUT_PATH)', |
60 | 60 |
61 # Variables should use the -V FOO=<(FOO) form so frequent values, | 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 | 62 # like '0' or '1', aren't stripped out by GYP. Run 'isolate.py help' for |
63 # more details. | 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. | |
67 | 64 |
68 # Path variables are used to replace file paths when loading a .isolate | 65 # Path variables are used to replace file paths when loading a .isolate |
69 # file | 66 # file |
70 '--path-variable', 'DEPTH', '<(DEPTH)', | 67 '--path-variable', 'DEPTH', '<(DEPTH)', |
71 '--path-variable', 'PRODUCT_DIR', '<(PRODUCT_DIR) ', | 68 '--path-variable', 'PRODUCT_DIR', '<(PRODUCT_DIR) ', |
72 | 69 |
73 # Extra variables are replaced on the 'command' entry and on paths in | 70 # Extra variables are replaced on the 'command' entry and on paths in |
74 # the .isolate file but are not considered relative paths. | 71 # the .isolate file but are not considered relative paths. |
75 '--extra-variable', 'version_full=<(version_full)', | 72 '--extra-variable', 'version_full=<(version_full)', |
76 | 73 |
| 74 # Note: This list must match DefaultConfigVariables() |
| 75 # in build/android/pylib/utils/isolator.py |
77 '--config-variable', 'CONFIGURATION_NAME=<(CONFIGURATION_NAME)', | 76 '--config-variable', 'CONFIGURATION_NAME=<(CONFIGURATION_NAME)', |
78 '--config-variable', 'OS=<(OS)', | 77 '--config-variable', 'OS=<(OS)', |
79 '--config-variable', 'asan=<(asan)', | 78 '--config-variable', 'asan=<(asan)', |
| 79 '--config-variable', 'branding=<(branding)', |
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', 'disable_nacl=<(disable_nacl)', |
| 83 '--config-variable', 'enable_pepper_cdms=<(enable_pepper_cdms)', |
| 84 '--config-variable', 'enable_plugins=<(enable_plugins)', |
83 '--config-variable', 'fastbuild=<(fastbuild)', | 85 '--config-variable', 'fastbuild=<(fastbuild)', |
84 '--config-variable', 'icu_use_data_file_flag=<(icu_use_data_file_flag)', | 86 '--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 | 87 # TODO(kbr): move this to chrome_tests.gypi:gles2_conform_tests_run |
86 # once support for user-defined config variables is added. | 88 # once support for user-defined config variables is added. |
87 '--config-variable', | 89 '--config-variable', |
88 'internal_gles2_conform_tests=<(internal_gles2_conform_tests)', | 90 'internal_gles2_conform_tests=<(internal_gles2_conform_tests)', |
89 '--config-variable', 'libpeer_target_type=<(libpeer_target_type)', | 91 '--config-variable', 'libpeer_target_type=<(libpeer_target_type)', |
90 '--config-variable', 'lsan=<(lsan)', | 92 '--config-variable', 'lsan=<(lsan)', |
91 '--config-variable', 'msan=<(msan)', | 93 '--config-variable', 'msan=<(msan)', |
92 '--config-variable', 'target_arch=<(target_arch)', | 94 '--config-variable', 'target_arch=<(target_arch)', |
93 '--config-variable', 'tsan=<(tsan)', | 95 '--config-variable', 'tsan=<(tsan)', |
94 '--config-variable', 'use_custom_libcxx=<(use_custom_libcxx)', | 96 '--config-variable', 'use_custom_libcxx=<(use_custom_libcxx)', |
95 '--config-variable', 'use_instrumented_libraries=<(use_instrumented_libr
aries)', | 97 '--config-variable', 'use_instrumented_libraries=<(use_instrumented_libr
aries)', |
| 98 '--config-variable', |
| 99 'use_prebuilt_instrumented_libraries=<(use_prebuilt_instrumented_librari
es)', |
96 '--config-variable', 'use_openssl=<(use_openssl)', | 100 '--config-variable', 'use_openssl=<(use_openssl)', |
97 '--config-variable', 'use_ozone=<(use_ozone)', | 101 '--config-variable', 'use_ozone=<(use_ozone)', |
98 '--config-variable', 'use_x11=<(use_x11)', | 102 '--config-variable', 'use_x11=<(use_x11)', |
99 '--config-variable', 'v8_use_external_startup_data=<(v8_use_external_sta
rtup_data)', | 103 '--config-variable', 'v8_use_external_startup_data=<(v8_use_external_sta
rtup_data)', |
100 ], | 104 ], |
101 'conditions': [ | 105 'conditions': [ |
102 # Note: When gyp merges lists, it appends them to the old value. | 106 # Note: When gyp merges lists, it appends them to the old value. |
103 ['OS=="mac"', { | 107 ['OS=="mac"', { |
104 # <(mac_product_name) can contain a space, so don't use FOO=<(FOO) | 108 # <(mac_product_name) can contain a space, so don't use FOO=<(FOO) |
105 # form. | 109 # form. |
(...skipping 10 matching lines...) Expand all Loading... |
116 ], | 120 ], |
117 }, { | 121 }, { |
118 'outputs': [ | 122 'outputs': [ |
119 '<(PRODUCT_DIR)/<(RULE_INPUT_ROOT).isolated', | 123 '<(PRODUCT_DIR)/<(RULE_INPUT_ROOT).isolated', |
120 ], | 124 ], |
121 }], | 125 }], |
122 ], | 126 ], |
123 }, | 127 }, |
124 ], | 128 ], |
125 } | 129 } |
OLD | NEW |