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

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

Issue 7649021: Separate the (partial) decoder of the x86_32 validator into a separate library. (Closed) Base URL: svn://svn.chromium.org/native_client/trunk/src/native_client/
Patch Set: Created 9 years, 4 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/validator/x86/ncval_seg_sfi/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) 2011 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
(...skipping 20 matching lines...) Expand all
31 # libraries that must be included after that library, in the list 31 # libraries that must be included after that library, in the list
32 # of libraries. 32 # of libraries.
33 PLATFORM_LIBRARY_DEPENDENCIES = { 33 PLATFORM_LIBRARY_DEPENDENCIES = {
34 'x86-32': _AddDefaultLibraryDependencies({ 34 'x86-32': _AddDefaultLibraryDependencies({
35 'nc_decoder_x86_32': [ 35 'nc_decoder_x86_32': [
36 'ncval_base_x86_32', 36 'ncval_base_x86_32',
37 'nc_opcode_modeling_x86_32', 37 'nc_opcode_modeling_x86_32',
38 ], 38 ],
39 'ncdis_util_x86_32': [ 39 'ncdis_util_x86_32': [
40 'ncval_reg_sfi_verbose_x86_32', 40 'ncval_reg_sfi_verbose_x86_32',
41 'ncdis_seg_sfi_verbose_x86_32',
42 ],
43 'ncdis_seg_sfi_verbose_x86_32': [
44 'ncdis_seg_sfi_x86_32',
41 'ncval_base_verbose_x86_32', 45 'ncval_base_verbose_x86_32',
42 ], 46 ],
43 'ncvalidate_verbose_x86_32': [ 47 'ncvalidate_verbose_x86_32': [
44 'ncvalidate_x86_32', 48 'ncvalidate_x86_32',
45 'ncval_seg_sfi_verbose_x86_32', 49 'ncdis_seg_sfi_verbose_x86_32',
46 ], 50 ],
47 'ncvalidate_x86_32': [ 51 'ncvalidate_x86_32': [
48 'ncval_seg_sfi_x86_32', 52 'ncval_seg_sfi_x86_32',
49 ], 53 ],
50 'ncval_base_verbose_x86_32': [ 54 'ncval_base_verbose_x86_32': [
51 'ncval_base_x86_32', 55 'ncval_base_x86_32',
52 ], 56 ],
53 'ncval_base_x86_32': [ 57 'ncval_base_x86_32': [
54 'platform', 58 'platform',
55 ], 59 ],
56 'nc_opcode_modeling_verbose_x86_32': [ 60 'nc_opcode_modeling_verbose_x86_32': [
57 'nc_opcode_modeling_x86_32', 61 'nc_opcode_modeling_x86_32',
58 'ncval_base_verbose_x86_32', 62 'ncval_base_verbose_x86_32',
59 ], 63 ],
60 'nc_opcode_modeling_x86_32': [ 64 'nc_opcode_modeling_x86_32': [
61 'ncval_base_x86_32', 65 'ncval_base_x86_32',
62 ], 66 ],
63 'ncval_reg_sfi_verbose_x86_32': [ 67 'ncval_reg_sfi_verbose_x86_32': [
64 'ncval_reg_sfi_x86_32', 68 'ncval_reg_sfi_x86_32',
65 'nc_opcode_modeling_verbose_x86_32', 69 'nc_opcode_modeling_verbose_x86_32',
66 ], 70 ],
67 'ncval_reg_sfi_x86_32': [ 71 'ncval_reg_sfi_x86_32': [
68 'nccopy_x86_32', 72 'nccopy_x86_32',
69 'ncval_base_x86_32', 73 'ncval_base_x86_32',
70 'nc_decoder_x86_32', 74 'nc_decoder_x86_32',
71 ], 75 ],
72 'ncval_seg_sfi_verbose_x86_32': [
73 'ncval_seg_sfi_x86_32',
74 'ncval_base_verbose_x86_32',
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 'ncval_base_x86_32', 79 'ncval_base_x86_32',
79 ], 80 ],
80 }), 81 }),
81 'x86-64': _AddDefaultLibraryDependencies({ 82 'x86-64': _AddDefaultLibraryDependencies({
82 'nc_decoder_x86_64': [ 83 'nc_decoder_x86_64': [
83 'ncval_base_x86_64', 84 'ncval_base_x86_64',
84 'nc_opcode_modeling_x86_64', 85 'nc_opcode_modeling_x86_64',
85 ], 86 ],
86 'ncdis_util_x86_64': [ 87 'ncdis_util_x86_64': [
87 'ncval_reg_sfi_verbose_x86_64', 88 'ncval_reg_sfi_verbose_x86_64',
89 'ncdis_seg_sfi_verbose_x86_64',
90 ],
91 'ncdis_seg_sfi_verbose_x86_64': [
92 'ncdis_seg_sfi_x86_64',
88 'ncval_base_verbose_x86_64', 93 'ncval_base_verbose_x86_64',
89 ], 94 ],
90 'ncvalidate_verbose_x86_64': [ 95 'ncvalidate_verbose_x86_64': [
91 'ncvalidate_x86_64', 96 'ncvalidate_x86_64',
92 'ncval_reg_sfi_verbose_x86_64', 97 'ncval_reg_sfi_verbose_x86_64',
93 ], 98 ],
94 'ncvalidate_x86_64': [ 99 'ncvalidate_x86_64': [
95 'ncval_reg_sfi_x86_64', 100 'ncval_reg_sfi_x86_64',
96 ], 101 ],
97 'ncval_base_verbose_x86_64': [ 102 'ncval_base_verbose_x86_64': [
(...skipping 11 matching lines...) Expand all
109 ], 114 ],
110 'ncval_reg_sfi_verbose_x86_64': [ 115 'ncval_reg_sfi_verbose_x86_64': [
111 'ncval_reg_sfi_x86_64', 116 'ncval_reg_sfi_x86_64',
112 'nc_opcode_modeling_verbose_x86_64', 117 'nc_opcode_modeling_verbose_x86_64',
113 ], 118 ],
114 'ncval_reg_sfi_x86_64': [ 119 'ncval_reg_sfi_x86_64': [
115 'nccopy_x86_64', 120 'nccopy_x86_64',
116 'ncval_base_x86_64', 121 'ncval_base_x86_64',
117 'nc_decoder_x86_64', 122 'nc_decoder_x86_64',
118 ], 123 ],
119 'ncval_seg_sfi_verbose_x86_64': [
120 'ncval_seg_sfi_x86_64',
121 'ncval_base_verbose_x86_64',
122 ],
123 'ncval_seg_sfi_x86_64': [ 124 'ncval_seg_sfi_x86_64': [
124 'nccopy_x86_64', 125 'nccopy_x86_64',
126 'ncdis_seg_sfi_x86_64',
125 'ncval_base_x86_64', 127 'ncval_base_x86_64',
126 ], 128 ],
127 }), 129 }),
128 'arm': _AddDefaultLibraryDependencies({ 130 'arm': _AddDefaultLibraryDependencies({
129 'ncvalidate_arm_v2': [ 131 'ncvalidate_arm_v2': [
130 'arm_validator_core', 132 'arm_validator_core',
131 ], 133 ],
132 }), 134 }),
133 } 135 }
134 136
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
181 # dependencies have been added. 183 # dependencies have been added.
182 to_visit.append(lib) 184 to_visit.append(lib)
183 for dep in dependencies[lib]: 185 for dep in dependencies[lib]:
184 to_visit.append(dep) 186 to_visit.append(dep)
185 expanding.append(lib) 187 expanding.append(lib)
186 else: 188 else:
187 # No dependent library, just add. 189 # No dependent library, just add.
188 closure.append(lib) 190 closure.append(lib)
189 closure.reverse() 191 closure.reverse()
190 return closure 192 return closure
OLDNEW
« no previous file with comments | « no previous file | src/trusted/validator/x86/ncval_seg_sfi/build.scons » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698