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

Side by Side Diff: tools/gn/bootstrap/bootstrap.py

Issue 1511203002: tools/gn: depend on allocator_extension.cc to keep bootstrap working (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/usr/bin/env python 1 #!/usr/bin/env python
2 # Copyright 2014 The Chromium Authors. All rights reserved. 2 # Copyright 2014 The Chromium Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be 3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file. 4 # found in the LICENSE file.
5 5
6 """Bootstraps gn. 6 """Bootstraps gn.
7 7
8 It is done by first building it manually in a temporary directory, then building 8 It is done by first building it manually in a temporary directory, then building
9 it with its own BUILD.gn to the final destination. 9 it with its own BUILD.gn to the final destination.
10 """ 10 """
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
150 continue 150 continue
151 full_path = os.path.join(GN_ROOT, name) 151 full_path = os.path.join(GN_ROOT, name)
152 static_libraries['gn']['sources'].append( 152 static_libraries['gn']['sources'].append(
153 os.path.relpath(full_path, SRC_ROOT)) 153 os.path.relpath(full_path, SRC_ROOT))
154 154
155 static_libraries['dynamic_annotations']['sources'].extend([ 155 static_libraries['dynamic_annotations']['sources'].extend([
156 'base/third_party/dynamic_annotations/dynamic_annotations.c', 156 'base/third_party/dynamic_annotations/dynamic_annotations.c',
157 'base/third_party/superfasthash/superfasthash.c', 157 'base/third_party/superfasthash/superfasthash.c',
158 ]) 158 ])
159 static_libraries['base']['sources'].extend([ 159 static_libraries['base']['sources'].extend([
160 'base/allocator/allocator_extension.cc',
160 'base/at_exit.cc', 161 'base/at_exit.cc',
161 'base/base_paths.cc', 162 'base/base_paths.cc',
162 'base/base_switches.cc', 163 'base/base_switches.cc',
163 'base/callback_internal.cc', 164 'base/callback_internal.cc',
164 'base/command_line.cc', 165 'base/command_line.cc',
165 'base/debug/alias.cc', 166 'base/debug/alias.cc',
166 'base/debug/stack_trace.cc', 167 'base/debug/stack_trace.cc',
167 'base/debug/task_annotator.cc', 168 'base/debug/task_annotator.cc',
168 'base/environment.cc', 169 'base/environment.cc',
169 'base/files/file.cc', 170 'base/files/file.cc',
(...skipping 279 matching lines...) Expand 10 before | Expand all | Expand 10 after
449 cmd.append('-v') 450 cmd.append('-v')
450 cmd.append('gn') 451 cmd.append('gn')
451 check_call(cmd) 452 check_call(cmd)
452 453
453 if not options.debug: 454 if not options.debug:
454 check_call(['strip', os.path.join(build_dir, 'gn')]) 455 check_call(['strip', os.path.join(build_dir, 'gn')])
455 456
456 457
457 if __name__ == '__main__': 458 if __name__ == '__main__':
458 sys.exit(main(sys.argv[1:])) 459 sys.exit(main(sys.argv[1:]))
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698