| 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 """Simple harness for defining library dependencies for scons files.""" | 5 """Simple 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 10 matching lines...) Expand all Loading... |
| 21 'nrd_xfer', | 21 'nrd_xfer', |
| 22 'nacl_perf_counter', | 22 'nacl_perf_counter', |
| 23 'nacl_base', | 23 'nacl_base', |
| 24 'imc', | 24 'imc', |
| 25 'container', | 25 'container', |
| 26 'nacl_fault_inject', | 26 'nacl_fault_inject', |
| 27 'nacl_interval', | 27 'nacl_interval', |
| 28 'platform', | 28 'platform', |
| 29 'platform_qual_lib', | 29 'platform_qual_lib', |
| 30 'gio', | 30 'gio', |
| 31 'validators', |
| 31 ], | 32 ], |
| 32 } | 33 } |
| 33 | 34 |
| 34 | 35 |
| 35 # Platform specific library dependencies. Mapping from a platform, | 36 # Platform specific library dependencies. Mapping from a platform, |
| 36 # to a map from a library, to the corresponding list of dependendent | 37 # to a map from a library, to the corresponding list of dependendent |
| 37 # libraries that must be included after that library, in the list | 38 # libraries that must be included after that library, in the list |
| 38 # of libraries. | 39 # of libraries. |
| 39 PLATFORM_LIBRARY_DEPENDENCIES = { | 40 PLATFORM_LIBRARY_DEPENDENCIES = { |
| 40 'x86-32': { | 41 'x86-32': { |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 80 'nc_decoder_x86_32', | 81 'nc_decoder_x86_32', |
| 81 ], | 82 ], |
| 82 'ncval_seg_sfi_x86_32': [ | 83 'ncval_seg_sfi_x86_32': [ |
| 83 'nccopy_x86_32', | 84 'nccopy_x86_32', |
| 84 'ncdis_seg_sfi_x86_32', | 85 'ncdis_seg_sfi_x86_32', |
| 85 'ncval_base_x86_32', | 86 'ncval_base_x86_32', |
| 86 # When turning on the DEBUGGING flag in the x86-32 validator | 87 # When turning on the DEBUGGING flag in the x86-32 validator |
| 87 # or decoder, add the following: | 88 # or decoder, add the following: |
| 88 #'nc_opcode_modeling_verbose_x86_32', | 89 #'nc_opcode_modeling_verbose_x86_32', |
| 89 ], | 90 ], |
| 90 'sel': [ | 91 'validators': [ |
| 91 'ncvalidate_x86_32', | 92 'ncvalidate_x86_32', |
| 92 'dfa_validate_caller_x86_32', | 93 'dfa_validate_caller_x86_32', |
| 93 'dfa_validate_x86_32', | 94 'dfa_validate_x86_32', |
| 94 ], | 95 ], |
| 95 }, | 96 }, |
| 96 'x86-64': { | 97 'x86-64': { |
| 97 'nc_decoder_x86_64': [ | 98 'nc_decoder_x86_64': [ |
| 98 'ncval_base_x86_64', | 99 'ncval_base_x86_64', |
| 99 'nc_opcode_modeling_x86_64', | 100 'nc_opcode_modeling_x86_64', |
| 100 # When turning on the DEBUGGING flag in the x86-64 validator | 101 # When turning on the DEBUGGING flag in the x86-64 validator |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 136 'ncval_reg_sfi_x86_64': [ | 137 'ncval_reg_sfi_x86_64': [ |
| 137 'nccopy_x86_64', | 138 'nccopy_x86_64', |
| 138 'ncval_base_x86_64', | 139 'ncval_base_x86_64', |
| 139 'nc_decoder_x86_64', | 140 'nc_decoder_x86_64', |
| 140 ], | 141 ], |
| 141 'ncval_seg_sfi_x86_64': [ | 142 'ncval_seg_sfi_x86_64': [ |
| 142 'nccopy_x86_64', | 143 'nccopy_x86_64', |
| 143 'ncdis_seg_sfi_x86_64', | 144 'ncdis_seg_sfi_x86_64', |
| 144 'ncval_base_x86_64', | 145 'ncval_base_x86_64', |
| 145 ], | 146 ], |
| 146 'sel': [ | 147 'validators': [ |
| 147 'ncvalidate_x86_64', | 148 'ncvalidate_x86_64', |
| 148 'dfa_validate_caller_x86_64', | 149 'dfa_validate_caller_x86_64', |
| 149 'dfa_validate_x86_64', | 150 'dfa_validate_x86_64', |
| 150 ], | 151 ], |
| 151 }, | 152 }, |
| 152 'arm': { | 153 'arm': { |
| 153 'ncvalidate_arm_v2': [ | 154 'ncvalidate_arm_v2': [ |
| 154 'arm_validator_core', | 155 'arm_validator_core', |
| 155 ], | 156 ], |
| 156 'sel': [ | 157 'validators': [ |
| 157 'ncvalidate_arm_v2', | 158 'ncvalidate_arm_v2', |
| 158 ], | 159 ], |
| 159 }, | 160 }, |
| 160 'arm-thumb2': { | 161 'arm-thumb2': { |
| 161 'ncvalidate_arm_v2': [ | 162 'ncvalidate_arm_v2': [ |
| 162 'arm_validator_core', | 163 'arm_validator_core', |
| 163 ], | 164 ], |
| 164 }, | 165 }, |
| 165 } | 166 } |
| 166 | 167 |
| (...skipping 28 matching lines...) Expand all Loading... |
| 195 closure.append(library) | 196 closure.append(library) |
| 196 | 197 |
| 197 # Ideally we would just do "VisitList(libraries)" here, but some | 198 # Ideally we would just do "VisitList(libraries)" here, but some |
| 198 # PPAPI tests (specifically, tests/ppapi_gles_book) list "ppapi_cpp" | 199 # PPAPI tests (specifically, tests/ppapi_gles_book) list "ppapi_cpp" |
| 199 # twice in the link line, and we need to maintain these duplicates. | 200 # twice in the link line, and we need to maintain these duplicates. |
| 200 for library in reversed(libraries): | 201 for library in reversed(libraries): |
| 201 VisitLibrary(library) | 202 VisitLibrary(library) |
| 202 | 203 |
| 203 closure.reverse() | 204 closure.reverse() |
| 204 return closure | 205 return closure |
| OLD | NEW |