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 232 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
243 'base/timer/elapsed_timer.cc', | 243 'base/timer/elapsed_timer.cc', |
244 'base/timer/timer.cc', | 244 'base/timer/timer.cc', |
245 'base/trace_event/memory_allocator_dump.cc', | 245 'base/trace_event/memory_allocator_dump.cc', |
246 'base/trace_event/memory_allocator_dump_guid.cc', | 246 'base/trace_event/memory_allocator_dump_guid.cc', |
247 'base/trace_event/memory_dump_manager.cc', | 247 'base/trace_event/memory_dump_manager.cc', |
248 'base/trace_event/memory_dump_request_args.cc', | 248 'base/trace_event/memory_dump_request_args.cc', |
249 'base/trace_event/memory_dump_session_state.cc', | 249 'base/trace_event/memory_dump_session_state.cc', |
250 'base/trace_event/memory_profiler_allocation_context.cc', | 250 'base/trace_event/memory_profiler_allocation_context.cc', |
251 'base/trace_event/process_memory_dump.cc', | 251 'base/trace_event/process_memory_dump.cc', |
252 'base/trace_event/process_memory_maps.cc', | 252 'base/trace_event/process_memory_maps.cc', |
253 'base/trace_event/process_memory_maps_dump_provider.cc', | |
254 'base/trace_event/process_memory_totals.cc', | 253 'base/trace_event/process_memory_totals.cc', |
255 'base/trace_event/process_memory_totals_dump_provider.cc', | 254 'base/trace_event/process_memory_totals_dump_provider.cc', |
256 'base/trace_event/trace_buffer.cc', | 255 'base/trace_event/trace_buffer.cc', |
257 'base/trace_event/trace_config.cc', | 256 'base/trace_event/trace_config.cc', |
258 'base/trace_event/trace_event_argument.cc', | 257 'base/trace_event/trace_event_argument.cc', |
259 'base/trace_event/trace_event_impl.cc', | 258 'base/trace_event/trace_event_impl.cc', |
260 'base/trace_event/trace_event_memory.cc', | 259 'base/trace_event/trace_event_memory.cc', |
261 'base/trace_event/trace_event_memory_overhead.cc', | 260 'base/trace_event/trace_event_memory_overhead.cc', |
262 'base/trace_event/trace_event_synthetic_delay.cc', | 261 'base/trace_event/trace_event_synthetic_delay.cc', |
263 'base/trace_event/trace_log.cc', | 262 'base/trace_event/trace_log.cc', |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
331 'base/nix/xdg_util.cc', | 330 'base/nix/xdg_util.cc', |
332 'base/process/internal_linux.cc', | 331 'base/process/internal_linux.cc', |
333 'base/process/process_handle_linux.cc', | 332 'base/process/process_handle_linux.cc', |
334 'base/process/process_iterator_linux.cc', | 333 'base/process/process_iterator_linux.cc', |
335 'base/process/process_linux.cc', | 334 'base/process/process_linux.cc', |
336 'base/process/process_metrics_linux.cc', | 335 'base/process/process_metrics_linux.cc', |
337 'base/strings/sys_string_conversions_posix.cc', | 336 'base/strings/sys_string_conversions_posix.cc', |
338 'base/sys_info_linux.cc', | 337 'base/sys_info_linux.cc', |
339 'base/threading/platform_thread_linux.cc', | 338 'base/threading/platform_thread_linux.cc', |
340 'base/trace_event/malloc_dump_provider.cc', | 339 'base/trace_event/malloc_dump_provider.cc', |
| 340 'base/trace_event/process_memory_maps_dump_provider.cc', |
341 ]) | 341 ]) |
342 static_libraries['libevent']['include_dirs'].extend([ | 342 static_libraries['libevent']['include_dirs'].extend([ |
343 os.path.join(SRC_ROOT, 'third_party', 'libevent', 'linux') | 343 os.path.join(SRC_ROOT, 'third_party', 'libevent', 'linux') |
344 ]) | 344 ]) |
345 static_libraries['libevent']['sources'].extend([ | 345 static_libraries['libevent']['sources'].extend([ |
346 'third_party/libevent/epoll.c', | 346 'third_party/libevent/epoll.c', |
347 ]) | 347 ]) |
348 | 348 |
349 | 349 |
350 if is_mac: | 350 if is_mac: |
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
444 cmd.append('-v') | 444 cmd.append('-v') |
445 cmd.append('gn') | 445 cmd.append('gn') |
446 check_call(cmd) | 446 check_call(cmd) |
447 | 447 |
448 if not options.debug: | 448 if not options.debug: |
449 check_call(['strip', os.path.join(build_dir, 'gn')]) | 449 check_call(['strip', os.path.join(build_dir, 'gn')]) |
450 | 450 |
451 | 451 |
452 if __name__ == '__main__': | 452 if __name__ == '__main__': |
453 sys.exit(main(sys.argv[1:])) | 453 sys.exit(main(sys.argv[1:])) |
OLD | NEW |