| 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.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 Loading... |
| 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:])) |
| OLD | NEW |