Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(22)

Side by Side Diff: site_scons/site_tools/library_deps.py

Issue 10158002: Scons: Remove duplication of VALIDATOR_LIBS list and use library_deps.py instead (Closed) Base URL: svn://svn.chromium.org/native_client/trunk/src/native_client
Patch Set: Copyright Created 8 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | src/trusted/service_runtime/build.scons » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright (c) 2011 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 # The following is a map from a library, to the corresponding 7 # The following is a map from a library, to the corresponding
8 # list of dependent libraries that must be included after that library, in 8 # list of dependent libraries that must be included after that library, in
9 # the list of libraries. 9 # the list of libraries.
10 # Note: These are default rules that are used if platform specific rules are 10 # Note: These are default rules that are used if platform specific rules are
11 # not specified below in PLATFORM_LIBRARY_DEPENDENCIES. 11 # not specified below in PLATFORM_LIBRARY_DEPENDENCIES.
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 'nc_decoder_x86_32', 74 'nc_decoder_x86_32',
75 ], 75 ],
76 'ncval_seg_sfi_x86_32': [ 76 'ncval_seg_sfi_x86_32': [
77 'nccopy_x86_32', 77 'nccopy_x86_32',
78 'ncdis_seg_sfi_x86_32', 78 'ncdis_seg_sfi_x86_32',
79 'ncval_base_x86_32', 79 'ncval_base_x86_32',
80 # When turning on the DEBUGGING flag in the x86-32 validator 80 # When turning on the DEBUGGING flag in the x86-32 validator
81 # or decoder, add the following: 81 # or decoder, add the following:
82 #'nc_opcode_modeling_verbose_x86_32', 82 #'nc_opcode_modeling_verbose_x86_32',
83 ], 83 ],
84 'sel': [
85 'ncvalidate_x86_32',
86 ],
84 }), 87 }),
85 'x86-64': _AddDefaultLibraryDependencies({ 88 'x86-64': _AddDefaultLibraryDependencies({
86 'nc_decoder_x86_64': [ 89 'nc_decoder_x86_64': [
87 'ncval_base_x86_64', 90 'ncval_base_x86_64',
88 'nc_opcode_modeling_x86_64', 91 'nc_opcode_modeling_x86_64',
89 # When turning on the DEBUGGING flag in the x86-64 validator 92 # When turning on the DEBUGGING flag in the x86-64 validator
90 # or decoder, add the following: 93 # or decoder, add the following:
91 #'nc_opcode_modeling_verbose_x86_64', 94 #'nc_opcode_modeling_verbose_x86_64',
92 ], 95 ],
93 'ncdis_util_x86_64': [ 96 'ncdis_util_x86_64': [
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 'ncval_reg_sfi_x86_64': [ 128 'ncval_reg_sfi_x86_64': [
126 'nccopy_x86_64', 129 'nccopy_x86_64',
127 'ncval_base_x86_64', 130 'ncval_base_x86_64',
128 'nc_decoder_x86_64', 131 'nc_decoder_x86_64',
129 ], 132 ],
130 'ncval_seg_sfi_x86_64': [ 133 'ncval_seg_sfi_x86_64': [
131 'nccopy_x86_64', 134 'nccopy_x86_64',
132 'ncdis_seg_sfi_x86_64', 135 'ncdis_seg_sfi_x86_64',
133 'ncval_base_x86_64', 136 'ncval_base_x86_64',
134 ], 137 ],
138 'sel': [
139 'ncvalidate_x86_64',
140 ],
135 }), 141 }),
136 'arm': _AddDefaultLibraryDependencies({ 142 'arm': _AddDefaultLibraryDependencies({
137 'ncvalidate_arm_v2': [ 143 'ncvalidate_arm_v2': [
138 'arm_validator_core', 144 'arm_validator_core',
139 ], 145 ],
146 'sel': [
147 'ncvalidate_arm_v2',
148 ],
140 }), 149 }),
141 'arm-thumb2': _AddDefaultLibraryDependencies({ 150 'arm-thumb2': _AddDefaultLibraryDependencies({
142 'ncvalidate_arm_v2': [ 151 'ncvalidate_arm_v2': [
143 'arm_validator_core', 152 'arm_validator_core',
144 ], 153 ],
145 }), 154 }),
146 } 155 }
147 156
148 def AddLibDeps(platform, libraries): 157 def AddLibDeps(platform, libraries):
149 """ Adds dependent libraries to list of libraries. 158 """ Adds dependent libraries to list of libraries.
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
194 # dependencies have been added. 203 # dependencies have been added.
195 to_visit.append(lib) 204 to_visit.append(lib)
196 for dep in dependencies[lib]: 205 for dep in dependencies[lib]:
197 to_visit.append(dep) 206 to_visit.append(dep)
198 expanding.append(lib) 207 expanding.append(lib)
199 else: 208 else:
200 # No dependent library, just add. 209 # No dependent library, just add.
201 closure.append(lib) 210 closure.append(lib)
202 closure.reverse() 211 closure.reverse()
203 return closure 212 return closure
OLDNEW
« no previous file with comments | « no previous file | src/trusted/service_runtime/build.scons » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698