| OLD | NEW |
| 1 # Copyright (c) 2012 The Native Client Authors. All rights reserved. | 1 # Copyright (c) 2012 The Native Client 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 """Harness for defining library dependencies for scons files.""" | 5 """Harness for defining library dependencies for scons files.""" |
| 6 | 6 |
| 7 | 7 |
| 8 # The following is a map from a library, to the corresponding | 8 # The following is a map from a library, to the corresponding |
| 9 # list of dependent libraries that must be included after that library, in | 9 # list of dependent libraries that must be included after that library, in |
| 10 # the list of libraries. | 10 # the list of libraries. |
| (...skipping 27 matching lines...) Expand all Loading... |
| 38 'sel', | 38 'sel', |
| 39 'debug_stub', | 39 'debug_stub', |
| 40 ], | 40 ], |
| 41 'sel_main': [ | 41 'sel_main': [ |
| 42 'sel', | 42 'sel', |
| 43 'debug_stub', | 43 'debug_stub', |
| 44 ], | 44 ], |
| 45 'testrunner_browser': [ | 45 'testrunner_browser': [ |
| 46 'ppapi', | 46 'ppapi', |
| 47 ], | 47 ], |
| 48 'arm_validator_core': [ |
| 49 'cpu_features', |
| 50 ], |
| 48 } | 51 } |
| 49 | 52 |
| 50 # Untrusted only library dependencies. | 53 # Untrusted only library dependencies. |
| 51 # Include names here that otherwise clash with trusted names. | 54 # Include names here that otherwise clash with trusted names. |
| 52 UNTRUSTED_LIBRARY_DEPENDENCIES = { | 55 UNTRUSTED_LIBRARY_DEPENDENCIES = { |
| 53 'ppapi_cpp': [ | 56 'ppapi_cpp': [ |
| 54 'ppapi', | 57 'ppapi', |
| 55 ], | 58 ], |
| 56 } | 59 } |
| 57 | 60 |
| (...skipping 14 matching lines...) Expand all Loading... |
| 72 'ncdis_seg_sfi_verbose_x86_32': [ | 75 'ncdis_seg_sfi_verbose_x86_32': [ |
| 73 'ncdis_seg_sfi_x86_32', | 76 'ncdis_seg_sfi_x86_32', |
| 74 'ncval_base_verbose_x86_32', | 77 'ncval_base_verbose_x86_32', |
| 75 ], | 78 ], |
| 76 'ncvalidate_verbose_x86_32': [ | 79 'ncvalidate_verbose_x86_32': [ |
| 77 'ncvalidate_x86_32', | 80 'ncvalidate_x86_32', |
| 78 'ncdis_seg_sfi_verbose_x86_32', | 81 'ncdis_seg_sfi_verbose_x86_32', |
| 79 ], | 82 ], |
| 80 'ncvalidate_x86_32': [ | 83 'ncvalidate_x86_32': [ |
| 81 'ncval_seg_sfi_x86_32', | 84 'ncval_seg_sfi_x86_32', |
| 85 'cpu_features', |
| 82 ], | 86 ], |
| 83 'ncval_base_verbose_x86_32': [ | 87 'ncval_base_verbose_x86_32': [ |
| 84 'ncval_base_x86_32', | 88 'ncval_base_x86_32', |
| 85 ], | 89 ], |
| 86 'ncval_base_x86_32': [ | 90 'ncval_base_x86_32': [ |
| 87 'platform', | 91 'platform', |
| 92 'cpu_features', |
| 88 ], | 93 ], |
| 89 'nc_opcode_modeling_verbose_x86_32': [ | 94 'nc_opcode_modeling_verbose_x86_32': [ |
| 90 'nc_opcode_modeling_x86_32', | 95 'nc_opcode_modeling_x86_32', |
| 91 'ncval_base_verbose_x86_32', | 96 'ncval_base_verbose_x86_32', |
| 92 ], | 97 ], |
| 93 'nc_opcode_modeling_x86_32': [ | 98 'nc_opcode_modeling_x86_32': [ |
| 94 'ncval_base_x86_32', | 99 'ncval_base_x86_32', |
| 95 ], | 100 ], |
| 96 'ncval_reg_sfi_verbose_x86_32': [ | 101 'ncval_reg_sfi_verbose_x86_32': [ |
| 97 'ncval_reg_sfi_x86_32', | 102 'ncval_reg_sfi_x86_32', |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 130 'ncdis_seg_sfi_verbose_x86_64': [ | 135 'ncdis_seg_sfi_verbose_x86_64': [ |
| 131 'ncdis_seg_sfi_x86_64', | 136 'ncdis_seg_sfi_x86_64', |
| 132 'ncval_base_verbose_x86_64', | 137 'ncval_base_verbose_x86_64', |
| 133 ], | 138 ], |
| 134 'ncvalidate_verbose_x86_64': [ | 139 'ncvalidate_verbose_x86_64': [ |
| 135 'ncvalidate_x86_64', | 140 'ncvalidate_x86_64', |
| 136 'ncval_reg_sfi_verbose_x86_64', | 141 'ncval_reg_sfi_verbose_x86_64', |
| 137 ], | 142 ], |
| 138 'ncvalidate_x86_64': [ | 143 'ncvalidate_x86_64': [ |
| 139 'ncval_reg_sfi_x86_64', | 144 'ncval_reg_sfi_x86_64', |
| 145 'cpu_features', |
| 140 ], | 146 ], |
| 141 'ncval_base_verbose_x86_64': [ | 147 'ncval_base_verbose_x86_64': [ |
| 142 'ncval_base_x86_64', | 148 'ncval_base_x86_64', |
| 143 ], | 149 ], |
| 144 'ncval_base_x86_64': [ | 150 'ncval_base_x86_64': [ |
| 145 'platform', | 151 'platform', |
| 152 'cpu_features', |
| 146 ], | 153 ], |
| 147 'nc_opcode_modeling_verbose_x86_64': [ | 154 'nc_opcode_modeling_verbose_x86_64': [ |
| 148 'nc_opcode_modeling_x86_64', | 155 'nc_opcode_modeling_x86_64', |
| 149 'ncval_base_verbose_x86_64', | 156 'ncval_base_verbose_x86_64', |
| 150 ], | 157 ], |
| 151 'nc_opcode_modeling_x86_64': [ | 158 'nc_opcode_modeling_x86_64': [ |
| 152 'ncval_base_x86_64', | 159 'ncval_base_x86_64', |
| 153 ], | 160 ], |
| 154 'ncval_reg_sfi_verbose_x86_64': [ | 161 'ncval_reg_sfi_verbose_x86_64': [ |
| 155 'ncval_reg_sfi_x86_64', | 162 'ncval_reg_sfi_x86_64', |
| 156 'nc_opcode_modeling_verbose_x86_64', | 163 'nc_opcode_modeling_verbose_x86_64', |
| 157 ], | 164 ], |
| 158 'ncval_reg_sfi_x86_64': [ | 165 'ncval_reg_sfi_x86_64': [ |
| 159 'nccopy_x86_64', | 166 'nccopy_x86_64', |
| 160 'ncval_base_x86_64', | 167 'ncval_base_x86_64', |
| 161 'nc_decoder_x86_64', | 168 'nc_decoder_x86_64', |
| 169 'cpu_features', |
| 162 ], | 170 ], |
| 163 'ncval_seg_sfi_x86_64': [ | 171 'ncval_seg_sfi_x86_64': [ |
| 164 'nccopy_x86_64', | 172 'nccopy_x86_64', |
| 165 'ncdis_seg_sfi_x86_64', | 173 'ncdis_seg_sfi_x86_64', |
| 166 'ncval_base_x86_64', | 174 'ncval_base_x86_64', |
| 167 ], | 175 ], |
| 168 'dfa_validate_caller_x86_64': [ | 176 'dfa_validate_caller_x86_64': [ |
| 169 'ncval_base_x86_64', | 177 'ncval_base_x86_64', |
| 170 'nccopy_x86_64', | 178 'nccopy_x86_64', |
| 171 ], | 179 ], |
| 172 }, | 180 }, |
| 173 'arm': { | 181 'arm': { |
| 174 'ncvalidate_arm_v2': [ | 182 'ncvalidate_arm_v2': [ |
| 175 'arm_validator_core', | 183 'arm_validator_core', |
| 176 ], | 184 ], |
| 177 'validators': [ | 185 'validators': [ |
| 178 'ncvalidate_arm_v2', | 186 'ncvalidate_arm_v2', |
| 179 ], | 187 ], |
| 180 }, | 188 }, |
| 181 'arm-thumb2': { | |
| 182 'ncvalidate_arm_v2': [ | |
| 183 'arm_validator_core', | |
| 184 ], | |
| 185 }, | |
| 186 'mips32': { | 189 'mips32': { |
| 187 'ncvalidate_mips': [ | 190 'ncvalidate_mips': [ |
| 188 'mips_validator_core', | 191 'mips_validator_core', |
| 192 'cpu_features', |
| 189 ], | 193 ], |
| 190 'validators': [ | 194 'validators': [ |
| 191 'ncvalidate_mips', | 195 'ncvalidate_mips', |
| 192 ], | 196 ], |
| 193 }, | 197 }, |
| 194 } | 198 } |
| 195 | 199 |
| 196 | 200 |
| 197 def AddLibDeps(env, platform, libraries): | 201 def AddLibDeps(env, platform, libraries): |
| 198 """ Adds dependent libraries to list of libraries. | 202 """ Adds dependent libraries to list of libraries. |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 235 closure.append(library) | 239 closure.append(library) |
| 236 | 240 |
| 237 # Ideally we would just do "VisitList(libraries)" here, but some | 241 # Ideally we would just do "VisitList(libraries)" here, but some |
| 238 # PPAPI tests (specifically, tests/ppapi_gles_book) list "ppapi_cpp" | 242 # PPAPI tests (specifically, tests/ppapi_gles_book) list "ppapi_cpp" |
| 239 # twice in the link line, and we need to maintain these duplicates. | 243 # twice in the link line, and we need to maintain these duplicates. |
| 240 for library in reversed(libraries): | 244 for library in reversed(libraries): |
| 241 VisitLibrary(library) | 245 VisitLibrary(library) |
| 242 | 246 |
| 243 closure.reverse() | 247 closure.reverse() |
| 244 return closure | 248 return closure |
| OLD | NEW |