| 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': { |
| 41 'nc_decoder_x86_32': [ | 42 'nc_decoder_x86_32': [ |
| 42 'ncval_base_x86_32', | 43 'ncval_base_x86_32', |
| 43 'nc_opcode_modeling_x86_32', | 44 'nc_opcode_modeling_x86_32', |
| 44 ], | 45 ], |
| 45 'ncdis_util_x86_32': [ | 46 'ncdis_util_x86_32': [ |
| 46 'ncval_reg_sfi_verbose_x86_32', | 47 'ncval_reg_sfi_verbose_x86_32', |
| 47 'ncdis_seg_sfi_verbose_x86_32', | 48 'ncdis_seg_sfi_verbose_x86_32', |
| 49 'validators', |
| 48 ], | 50 ], |
| 49 'ncdis_seg_sfi_verbose_x86_32': [ | 51 'ncdis_seg_sfi_verbose_x86_32': [ |
| 50 'ncdis_seg_sfi_x86_32', | 52 'ncdis_seg_sfi_x86_32', |
| 51 'ncval_base_verbose_x86_32', | 53 'ncval_base_verbose_x86_32', |
| 52 ], | 54 ], |
| 53 'ncvalidate_verbose_x86_32': [ | 55 'ncvalidate_verbose_x86_32': [ |
| 54 'ncvalidate_x86_32', | 56 'ncvalidate_x86_32', |
| 55 'ncdis_seg_sfi_verbose_x86_32', | 57 'ncdis_seg_sfi_verbose_x86_32', |
| 56 ], | 58 ], |
| 57 'ncvalidate_x86_32': [ | 59 'ncvalidate_x86_32': [ |
| (...skipping 22 matching lines...) Expand all Loading... |
| 80 'nc_decoder_x86_32', | 82 'nc_decoder_x86_32', |
| 81 ], | 83 ], |
| 82 'ncval_seg_sfi_x86_32': [ | 84 'ncval_seg_sfi_x86_32': [ |
| 83 'nccopy_x86_32', | 85 'nccopy_x86_32', |
| 84 'ncdis_seg_sfi_x86_32', | 86 'ncdis_seg_sfi_x86_32', |
| 85 'ncval_base_x86_32', | 87 'ncval_base_x86_32', |
| 86 # When turning on the DEBUGGING flag in the x86-32 validator | 88 # When turning on the DEBUGGING flag in the x86-32 validator |
| 87 # or decoder, add the following: | 89 # or decoder, add the following: |
| 88 #'nc_opcode_modeling_verbose_x86_32', | 90 #'nc_opcode_modeling_verbose_x86_32', |
| 89 ], | 91 ], |
| 90 'sel': [ | 92 'validators': [ |
| 91 'ncvalidate_x86_32', | 93 'ncvalidate_x86_32', |
| 92 'dfa_validate_caller_x86_32', | 94 'dfa_validate_caller_x86_32', |
| 93 'dfa_validate_x86_32', | 95 'dfa_validate_x86_32', |
| 94 ], | 96 ], |
| 95 }, | 97 }, |
| 96 'x86-64': { | 98 'x86-64': { |
| 97 'nc_decoder_x86_64': [ | 99 'nc_decoder_x86_64': [ |
| 98 'ncval_base_x86_64', | 100 'ncval_base_x86_64', |
| 99 'nc_opcode_modeling_x86_64', | 101 'nc_opcode_modeling_x86_64', |
| 100 # When turning on the DEBUGGING flag in the x86-64 validator | 102 # When turning on the DEBUGGING flag in the x86-64 validator |
| 101 # or decoder, add the following: | 103 # or decoder, add the following: |
| 102 #'nc_opcode_modeling_verbose_x86_64', | 104 #'nc_opcode_modeling_verbose_x86_64', |
| 103 ], | 105 ], |
| 104 'ncdis_util_x86_64': [ | 106 'ncdis_util_x86_64': [ |
| 105 'ncval_reg_sfi_verbose_x86_64', | 107 'ncval_reg_sfi_verbose_x86_64', |
| 106 'ncdis_seg_sfi_verbose_x86_64', | 108 'ncdis_seg_sfi_verbose_x86_64', |
| 109 'validators', |
| 107 ], | 110 ], |
| 108 'ncdis_seg_sfi_verbose_x86_64': [ | 111 'ncdis_seg_sfi_verbose_x86_64': [ |
| 109 'ncdis_seg_sfi_x86_64', | 112 'ncdis_seg_sfi_x86_64', |
| 110 'ncval_base_verbose_x86_64', | 113 'ncval_base_verbose_x86_64', |
| 111 ], | 114 ], |
| 112 'ncvalidate_verbose_x86_64': [ | 115 'ncvalidate_verbose_x86_64': [ |
| 113 'ncvalidate_x86_64', | 116 'ncvalidate_x86_64', |
| 114 'ncval_reg_sfi_verbose_x86_64', | 117 'ncval_reg_sfi_verbose_x86_64', |
| 115 ], | 118 ], |
| 116 'ncvalidate_x86_64': [ | 119 'ncvalidate_x86_64': [ |
| (...skipping 19 matching lines...) Expand all Loading... |
| 136 'ncval_reg_sfi_x86_64': [ | 139 'ncval_reg_sfi_x86_64': [ |
| 137 'nccopy_x86_64', | 140 'nccopy_x86_64', |
| 138 'ncval_base_x86_64', | 141 'ncval_base_x86_64', |
| 139 'nc_decoder_x86_64', | 142 'nc_decoder_x86_64', |
| 140 ], | 143 ], |
| 141 'ncval_seg_sfi_x86_64': [ | 144 'ncval_seg_sfi_x86_64': [ |
| 142 'nccopy_x86_64', | 145 'nccopy_x86_64', |
| 143 'ncdis_seg_sfi_x86_64', | 146 'ncdis_seg_sfi_x86_64', |
| 144 'ncval_base_x86_64', | 147 'ncval_base_x86_64', |
| 145 ], | 148 ], |
| 146 'sel': [ | 149 'validators': [ |
| 147 'ncvalidate_x86_64', | 150 'ncvalidate_x86_64', |
| 148 'dfa_validate_caller_x86_64', | 151 'dfa_validate_caller_x86_64', |
| 149 'dfa_validate_x86_64', | 152 'dfa_validate_x86_64', |
| 150 ], | 153 ], |
| 151 }, | 154 }, |
| 152 'arm': { | 155 'arm': { |
| 153 'ncvalidate_arm_v2': [ | 156 'ncvalidate_arm_v2': [ |
| 154 'arm_validator_core', | 157 'arm_validator_core', |
| 155 ], | 158 ], |
| 156 'sel': [ | 159 'validators': [ |
| 157 'ncvalidate_arm_v2', | 160 'ncvalidate_arm_v2', |
| 158 ], | 161 ], |
| 159 }, | 162 }, |
| 160 'arm-thumb2': { | 163 'arm-thumb2': { |
| 161 'ncvalidate_arm_v2': [ | 164 'ncvalidate_arm_v2': [ |
| 162 'arm_validator_core', | 165 'arm_validator_core', |
| 163 ], | 166 ], |
| 164 }, | 167 }, |
| 165 } | 168 } |
| 166 | 169 |
| (...skipping 28 matching lines...) Expand all Loading... |
| 195 closure.append(library) | 198 closure.append(library) |
| 196 | 199 |
| 197 # Ideally we would just do "VisitList(libraries)" here, but some | 200 # Ideally we would just do "VisitList(libraries)" here, but some |
| 198 # PPAPI tests (specifically, tests/ppapi_gles_book) list "ppapi_cpp" | 201 # PPAPI tests (specifically, tests/ppapi_gles_book) list "ppapi_cpp" |
| 199 # twice in the link line, and we need to maintain these duplicates. | 202 # twice in the link line, and we need to maintain these duplicates. |
| 200 for library in reversed(libraries): | 203 for library in reversed(libraries): |
| 201 VisitLibrary(library) | 204 VisitLibrary(library) |
| 202 | 205 |
| 203 closure.reverse() | 206 closure.reverse() |
| 204 return closure | 207 return closure |
| OLD | NEW |