| 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 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 144 static_libraries['base']['sources'].extend([ | 144 static_libraries['base']['sources'].extend([ |
| 145 'base/at_exit.cc', | 145 'base/at_exit.cc', |
| 146 'base/atomicops_internals_x86_gcc.cc', | 146 'base/atomicops_internals_x86_gcc.cc', |
| 147 'base/base_paths.cc', | 147 'base/base_paths.cc', |
| 148 'base/base_switches.cc', | 148 'base/base_switches.cc', |
| 149 'base/callback_internal.cc', | 149 'base/callback_internal.cc', |
| 150 'base/command_line.cc', | 150 'base/command_line.cc', |
| 151 'base/debug/alias.cc', | 151 'base/debug/alias.cc', |
| 152 'base/debug/stack_trace.cc', | 152 'base/debug/stack_trace.cc', |
| 153 'base/debug/task_annotator.cc', | 153 'base/debug/task_annotator.cc', |
| 154 'base/debug/trace_event_impl.cc', | |
| 155 'base/debug/trace_event_impl_constants.cc', | |
| 156 'base/debug/trace_event_memory.cc', | |
| 157 'base/debug/trace_event_synthetic_delay.cc', | |
| 158 'base/environment.cc', | 154 'base/environment.cc', |
| 159 'base/files/file.cc', | 155 'base/files/file.cc', |
| 160 'base/files/file_enumerator.cc', | 156 'base/files/file_enumerator.cc', |
| 161 'base/files/file_path.cc', | 157 'base/files/file_path.cc', |
| 162 'base/files/file_path_constants.cc', | 158 'base/files/file_path_constants.cc', |
| 163 'base/files/file_util.cc', | 159 'base/files/file_util.cc', |
| 164 'base/files/scoped_file.cc', | 160 'base/files/scoped_file.cc', |
| 165 'base/json/json_parser.cc', | 161 'base/json/json_parser.cc', |
| 166 'base/json/json_reader.cc', | 162 'base/json/json_reader.cc', |
| 167 'base/json/json_string_value_serializer.cc', | 163 'base/json/json_string_value_serializer.cc', |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 222 'base/threading/sequenced_worker_pool.cc', | 218 'base/threading/sequenced_worker_pool.cc', |
| 223 'base/threading/simple_thread.cc', | 219 'base/threading/simple_thread.cc', |
| 224 'base/threading/thread_checker_impl.cc', | 220 'base/threading/thread_checker_impl.cc', |
| 225 'base/threading/thread_collision_warner.cc', | 221 'base/threading/thread_collision_warner.cc', |
| 226 'base/threading/thread_id_name_manager.cc', | 222 'base/threading/thread_id_name_manager.cc', |
| 227 'base/threading/thread_local_storage.cc', | 223 'base/threading/thread_local_storage.cc', |
| 228 'base/threading/thread_restrictions.cc', | 224 'base/threading/thread_restrictions.cc', |
| 229 'base/time/time.cc', | 225 'base/time/time.cc', |
| 230 'base/timer/elapsed_timer.cc', | 226 'base/timer/elapsed_timer.cc', |
| 231 'base/timer/timer.cc', | 227 'base/timer/timer.cc', |
| 228 'base/trace_event/trace_event_impl.cc', |
| 229 'base/trace_event/trace_event_impl_constants.cc', |
| 230 'base/trace_event/trace_event_memory.cc', |
| 231 'base/trace_event/trace_event_synthetic_delay.cc', |
| 232 'base/tracked_objects.cc', | 232 'base/tracked_objects.cc', |
| 233 'base/tracking_info.cc', | 233 'base/tracking_info.cc', |
| 234 'base/values.cc', | 234 'base/values.cc', |
| 235 'base/vlog.cc', | 235 'base/vlog.cc', |
| 236 ]) | 236 ]) |
| 237 | 237 |
| 238 if is_posix: | 238 if is_posix: |
| 239 static_libraries['base']['sources'].extend([ | 239 static_libraries['base']['sources'].extend([ |
| 240 'base/base_paths_posix.cc', | 240 'base/base_paths_posix.cc', |
| 241 'base/debug/debugger_posix.cc', | 241 'base/debug/debugger_posix.cc', |
| (...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 404 cmd.append('-v') | 404 cmd.append('-v') |
| 405 cmd.append('gn') | 405 cmd.append('gn') |
| 406 check_call(cmd) | 406 check_call(cmd) |
| 407 | 407 |
| 408 if not options.debug: | 408 if not options.debug: |
| 409 check_call(['strip', os.path.join(build_dir, 'gn')]) | 409 check_call(['strip', os.path.join(build_dir, 'gn')]) |
| 410 | 410 |
| 411 | 411 |
| 412 if __name__ == '__main__': | 412 if __name__ == '__main__': |
| 413 sys.exit(main(sys.argv[1:])) | 413 sys.exit(main(sys.argv[1:])) |
| OLD | NEW |