OLD | NEW |
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 Loading... |
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_thunks.cc', | |
161 'base/at_exit.cc', | 160 'base/at_exit.cc', |
162 'base/base_paths.cc', | 161 'base/base_paths.cc', |
163 'base/base_switches.cc', | 162 'base/base_switches.cc', |
164 'base/callback_internal.cc', | 163 'base/callback_internal.cc', |
165 'base/command_line.cc', | 164 'base/command_line.cc', |
166 'base/debug/alias.cc', | 165 'base/debug/alias.cc', |
167 'base/debug/stack_trace.cc', | 166 'base/debug/stack_trace.cc', |
168 'base/debug/task_annotator.cc', | 167 'base/debug/task_annotator.cc', |
169 'base/environment.cc', | 168 'base/environment.cc', |
170 'base/files/file.cc', | 169 'base/files/file.cc', |
(...skipping 279 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
450 cmd.append('-v') | 449 cmd.append('-v') |
451 cmd.append('gn') | 450 cmd.append('gn') |
452 check_call(cmd) | 451 check_call(cmd) |
453 | 452 |
454 if not options.debug: | 453 if not options.debug: |
455 check_call(['strip', os.path.join(build_dir, 'gn')]) | 454 check_call(['strip', os.path.join(build_dir, 'gn')]) |
456 | 455 |
457 | 456 |
458 if __name__ == '__main__': | 457 if __name__ == '__main__': |
459 sys.exit(main(sys.argv[1:])) | 458 sys.exit(main(sys.argv[1:])) |
OLD | NEW |