| 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 229 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 240 if is_posix: | 240 if is_posix: |
| 241 static_libraries['base']['sources'].extend([ | 241 static_libraries['base']['sources'].extend([ |
| 242 'base/base_paths_posix.cc', | 242 'base/base_paths_posix.cc', |
| 243 'base/debug/debugger_posix.cc', | 243 'base/debug/debugger_posix.cc', |
| 244 'base/debug/stack_trace_posix.cc', | 244 'base/debug/stack_trace_posix.cc', |
| 245 'base/files/file_enumerator_posix.cc', | 245 'base/files/file_enumerator_posix.cc', |
| 246 'base/files/file_posix.cc', | 246 'base/files/file_posix.cc', |
| 247 'base/files/file_util_posix.cc', | 247 'base/files/file_util_posix.cc', |
| 248 'base/message_loop/message_pump_libevent.cc', | 248 'base/message_loop/message_pump_libevent.cc', |
| 249 'base/posix/file_descriptor_shuffle.cc', | 249 'base/posix/file_descriptor_shuffle.cc', |
| 250 'base/posix/safe_strerror.cc', |
| 250 'base/process/kill_posix.cc', | 251 'base/process/kill_posix.cc', |
| 251 'base/process/process_handle_posix.cc', | 252 'base/process/process_handle_posix.cc', |
| 252 'base/process/process_metrics_posix.cc', | 253 'base/process/process_metrics_posix.cc', |
| 253 'base/process/process_posix.cc', | 254 'base/process/process_posix.cc', |
| 254 'base/safe_strerror_posix.cc', | |
| 255 'base/synchronization/condition_variable_posix.cc', | 255 'base/synchronization/condition_variable_posix.cc', |
| 256 'base/synchronization/lock_impl_posix.cc', | 256 'base/synchronization/lock_impl_posix.cc', |
| 257 'base/synchronization/waitable_event_posix.cc', | 257 'base/synchronization/waitable_event_posix.cc', |
| 258 'base/sys_info_posix.cc', | 258 'base/sys_info_posix.cc', |
| 259 'base/threading/platform_thread_internal_posix.cc', | 259 'base/threading/platform_thread_internal_posix.cc', |
| 260 'base/threading/platform_thread_posix.cc', | 260 'base/threading/platform_thread_posix.cc', |
| 261 'base/threading/thread_local_posix.cc', | 261 'base/threading/thread_local_posix.cc', |
| 262 'base/threading/thread_local_storage_posix.cc', | 262 'base/threading/thread_local_storage_posix.cc', |
| 263 'base/threading/worker_pool_posix.cc', | 263 'base/threading/worker_pool_posix.cc', |
| 264 'base/time/time_posix.cc', | 264 'base/time/time_posix.cc', |
| (...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 408 cmd.append('-v') | 408 cmd.append('-v') |
| 409 cmd.append('gn') | 409 cmd.append('gn') |
| 410 check_call(cmd) | 410 check_call(cmd) |
| 411 | 411 |
| 412 if not options.debug: | 412 if not options.debug: |
| 413 check_call(['strip', os.path.join(build_dir, 'gn')]) | 413 check_call(['strip', os.path.join(build_dir, 'gn')]) |
| 414 | 414 |
| 415 | 415 |
| 416 if __name__ == '__main__': | 416 if __name__ == '__main__': |
| 417 sys.exit(main(sys.argv[1:])) | 417 sys.exit(main(sys.argv[1:])) |
| OLD | NEW |