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 231 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
242 'base/threading/thread_local_storage.cc', | 242 'base/threading/thread_local_storage.cc', |
243 'base/threading/thread_restrictions.cc', | 243 'base/threading/thread_restrictions.cc', |
244 'base/threading/worker_pool.cc', | 244 'base/threading/worker_pool.cc', |
245 'base/time/time.cc', | 245 'base/time/time.cc', |
246 'base/timer/elapsed_timer.cc', | 246 'base/timer/elapsed_timer.cc', |
247 'base/timer/timer.cc', | 247 'base/timer/timer.cc', |
248 'base/trace_event/heap_profiler_allocation_context.cc', | 248 'base/trace_event/heap_profiler_allocation_context.cc', |
249 'base/trace_event/heap_profiler_allocation_context_tracker.cc', | 249 'base/trace_event/heap_profiler_allocation_context_tracker.cc', |
250 'base/trace_event/heap_profiler_stack_frame_deduplicator.cc', | 250 'base/trace_event/heap_profiler_stack_frame_deduplicator.cc', |
251 'base/trace_event/heap_profiler_type_name_deduplicator.cc', | 251 'base/trace_event/heap_profiler_type_name_deduplicator.cc', |
252 'base/trace_event/malloc_dump_provider.cc', | |
253 'base/trace_event/memory_allocator_dump.cc', | 252 'base/trace_event/memory_allocator_dump.cc', |
254 'base/trace_event/memory_allocator_dump_guid.cc', | 253 'base/trace_event/memory_allocator_dump_guid.cc', |
255 'base/trace_event/memory_dump_manager.cc', | 254 'base/trace_event/memory_dump_manager.cc', |
256 'base/trace_event/memory_dump_request_args.cc', | 255 'base/trace_event/memory_dump_request_args.cc', |
257 'base/trace_event/memory_dump_session_state.cc', | 256 'base/trace_event/memory_dump_session_state.cc', |
258 'base/trace_event/process_memory_dump.cc', | 257 'base/trace_event/process_memory_dump.cc', |
259 'base/trace_event/process_memory_maps.cc', | 258 'base/trace_event/process_memory_maps.cc', |
260 'base/trace_event/process_memory_totals.cc', | 259 'base/trace_event/process_memory_totals.cc', |
261 'base/trace_event/process_memory_totals_dump_provider.cc', | 260 'base/trace_event/process_memory_totals_dump_provider.cc', |
262 'base/trace_event/trace_buffer.cc', | 261 'base/trace_event/trace_buffer.cc', |
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
364 'base/mac/mach_logging.cc', | 363 'base/mac/mach_logging.cc', |
365 'base/mac/scoped_mach_port.cc', | 364 'base/mac/scoped_mach_port.cc', |
366 'base/mac/scoped_nsautorelease_pool.mm', | 365 'base/mac/scoped_nsautorelease_pool.mm', |
367 'base/message_loop/message_pump_mac.mm', | 366 'base/message_loop/message_pump_mac.mm', |
368 'base/process/process_handle_mac.cc', | 367 'base/process/process_handle_mac.cc', |
369 'base/process/process_iterator_mac.cc', | 368 'base/process/process_iterator_mac.cc', |
370 'base/process/process_metrics_mac.cc', | 369 'base/process/process_metrics_mac.cc', |
371 'base/strings/sys_string_conversions_mac.mm', | 370 'base/strings/sys_string_conversions_mac.mm', |
372 'base/time/time_mac.cc', | 371 'base/time/time_mac.cc', |
373 'base/threading/platform_thread_mac.mm', | 372 'base/threading/platform_thread_mac.mm', |
| 373 'base/trace_event/malloc_dump_provider.cc', |
374 ]) | 374 ]) |
375 static_libraries['libevent']['include_dirs'].extend([ | 375 static_libraries['libevent']['include_dirs'].extend([ |
376 os.path.join(SRC_ROOT, 'third_party', 'libevent', 'mac') | 376 os.path.join(SRC_ROOT, 'third_party', 'libevent', 'mac') |
377 ]) | 377 ]) |
378 static_libraries['libevent']['sources'].extend([ | 378 static_libraries['libevent']['sources'].extend([ |
379 'third_party/libevent/kqueue.c', | 379 'third_party/libevent/kqueue.c', |
380 ]) | 380 ]) |
381 | 381 |
382 | 382 |
383 if is_mac: | 383 if is_mac: |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
451 cmd.append('-v') | 451 cmd.append('-v') |
452 cmd.append('gn') | 452 cmd.append('gn') |
453 check_call(cmd) | 453 check_call(cmd) |
454 | 454 |
455 if not options.debug: | 455 if not options.debug: |
456 check_call(['strip', os.path.join(build_dir, 'gn')]) | 456 check_call(['strip', os.path.join(build_dir, 'gn')]) |
457 | 457 |
458 | 458 |
459 if __name__ == '__main__': | 459 if __name__ == '__main__': |
460 sys.exit(main(sys.argv[1:])) | 460 sys.exit(main(sys.argv[1:])) |
OLD | NEW |