| 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 204 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 215 'base/thread_task_runner_handle.cc', | 215 'base/thread_task_runner_handle.cc', |
| 216 'base/threading/non_thread_safe_impl.cc', | 216 'base/threading/non_thread_safe_impl.cc', |
| 217 'base/threading/post_task_and_reply_impl.cc', | 217 'base/threading/post_task_and_reply_impl.cc', |
| 218 'base/threading/sequenced_worker_pool.cc', | 218 'base/threading/sequenced_worker_pool.cc', |
| 219 'base/threading/simple_thread.cc', | 219 'base/threading/simple_thread.cc', |
| 220 'base/threading/thread_checker_impl.cc', | 220 'base/threading/thread_checker_impl.cc', |
| 221 'base/threading/thread_collision_warner.cc', | 221 'base/threading/thread_collision_warner.cc', |
| 222 'base/threading/thread_id_name_manager.cc', | 222 'base/threading/thread_id_name_manager.cc', |
| 223 'base/threading/thread_local_storage.cc', | 223 'base/threading/thread_local_storage.cc', |
| 224 'base/threading/thread_restrictions.cc', | 224 'base/threading/thread_restrictions.cc', |
| 225 'base/threading/worker_pool.cc', |
| 225 'base/time/time.cc', | 226 'base/time/time.cc', |
| 226 'base/timer/elapsed_timer.cc', | 227 'base/timer/elapsed_timer.cc', |
| 227 'base/timer/timer.cc', | 228 'base/timer/timer.cc', |
| 228 'base/trace_event/trace_event_impl.cc', | 229 'base/trace_event/trace_event_impl.cc', |
| 229 'base/trace_event/trace_event_impl_constants.cc', | 230 'base/trace_event/trace_event_impl_constants.cc', |
| 230 'base/trace_event/trace_event_memory.cc', | 231 'base/trace_event/trace_event_memory.cc', |
| 231 'base/trace_event/trace_event_synthetic_delay.cc', | 232 'base/trace_event/trace_event_synthetic_delay.cc', |
| 232 'base/tracked_objects.cc', | 233 'base/tracked_objects.cc', |
| 233 'base/tracking_info.cc', | 234 'base/tracking_info.cc', |
| 234 'base/values.cc', | 235 'base/values.cc', |
| (...skipping 12 matching lines...) Expand all Loading... |
| 247 'base/posix/file_descriptor_shuffle.cc', | 248 'base/posix/file_descriptor_shuffle.cc', |
| 248 'base/process/kill_posix.cc', | 249 'base/process/kill_posix.cc', |
| 249 'base/process/process_handle_posix.cc', | 250 'base/process/process_handle_posix.cc', |
| 250 'base/process/process_metrics_posix.cc', | 251 'base/process/process_metrics_posix.cc', |
| 251 'base/process/process_posix.cc', | 252 'base/process/process_posix.cc', |
| 252 'base/safe_strerror_posix.cc', | 253 'base/safe_strerror_posix.cc', |
| 253 'base/synchronization/condition_variable_posix.cc', | 254 'base/synchronization/condition_variable_posix.cc', |
| 254 'base/synchronization/lock_impl_posix.cc', | 255 'base/synchronization/lock_impl_posix.cc', |
| 255 'base/synchronization/waitable_event_posix.cc', | 256 'base/synchronization/waitable_event_posix.cc', |
| 256 'base/sys_info_posix.cc', | 257 'base/sys_info_posix.cc', |
| 258 'base/threading/platform_thread_internal_posix.cc', |
| 257 'base/threading/platform_thread_posix.cc', | 259 'base/threading/platform_thread_posix.cc', |
| 258 'base/threading/thread_local_posix.cc', | 260 'base/threading/thread_local_posix.cc', |
| 259 'base/threading/thread_local_storage_posix.cc', | 261 'base/threading/thread_local_storage_posix.cc', |
| 262 'base/threading/worker_pool_posix.cc', |
| 260 'base/time/time_posix.cc', | 263 'base/time/time_posix.cc', |
| 261 ]) | 264 ]) |
| 262 static_libraries['libevent'] = { | 265 static_libraries['libevent'] = { |
| 263 'sources': [ | 266 'sources': [ |
| 264 'third_party/libevent/buffer.c', | 267 'third_party/libevent/buffer.c', |
| 265 'third_party/libevent/evbuffer.c', | 268 'third_party/libevent/evbuffer.c', |
| 266 'third_party/libevent/evdns.c', | 269 'third_party/libevent/evdns.c', |
| 267 'third_party/libevent/event.c', | 270 'third_party/libevent/event.c', |
| 268 'third_party/libevent/event_tagging.c', | 271 'third_party/libevent/event_tagging.c', |
| 269 'third_party/libevent/evrpc.c', | 272 'third_party/libevent/evrpc.c', |
| (...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 404 cmd.append('-v') | 407 cmd.append('-v') |
| 405 cmd.append('gn') | 408 cmd.append('gn') |
| 406 check_call(cmd) | 409 check_call(cmd) |
| 407 | 410 |
| 408 if not options.debug: | 411 if not options.debug: |
| 409 check_call(['strip', os.path.join(build_dir, 'gn')]) | 412 check_call(['strip', os.path.join(build_dir, 'gn')]) |
| 410 | 413 |
| 411 | 414 |
| 412 if __name__ == '__main__': | 415 if __name__ == '__main__': |
| 413 sys.exit(main(sys.argv[1:])) | 416 sys.exit(main(sys.argv[1:])) |
| OLD | NEW |