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 222 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
233 'tool': 'cxx', | 233 'tool': 'cxx', |
234 } | 234 } |
235 static_libraries['base']['sources'].extend([ | 235 static_libraries['base']['sources'].extend([ |
236 'base/base_paths_posix.cc', | 236 'base/base_paths_posix.cc', |
237 'base/debug/debugger_posix.cc', | 237 'base/debug/debugger_posix.cc', |
238 'base/debug/stack_trace_posix.cc', | 238 'base/debug/stack_trace_posix.cc', |
239 'base/file_util_posix.cc', | 239 'base/file_util_posix.cc', |
240 'base/files/file_enumerator_posix.cc', | 240 'base/files/file_enumerator_posix.cc', |
241 'base/files/file_posix.cc', | 241 'base/files/file_posix.cc', |
242 'base/message_loop/message_pump_glib.cc', | 242 'base/message_loop/message_pump_glib.cc', |
243 'base/message_loop/message_pump_gtk.cc', | |
244 'base/message_loop/message_pump_libevent.cc', | 243 'base/message_loop/message_pump_libevent.cc', |
245 'base/nix/xdg_util.cc', | 244 'base/nix/xdg_util.cc', |
246 'base/posix/file_descriptor_shuffle.cc', | 245 'base/posix/file_descriptor_shuffle.cc', |
247 'base/process/internal_linux.cc', | 246 'base/process/internal_linux.cc', |
248 'base/process/kill_posix.cc', | 247 'base/process/kill_posix.cc', |
249 'base/process/process_handle_linux.cc', | 248 'base/process/process_handle_linux.cc', |
250 'base/process/process_handle_posix.cc', | 249 'base/process/process_handle_posix.cc', |
251 'base/process/process_iterator_linux.cc', | 250 'base/process/process_iterator_linux.cc', |
252 'base/process/process_linux.cc', | 251 'base/process/process_linux.cc', |
253 'base/process/process_metrics_linux.cc', | 252 'base/process/process_metrics_linux.cc', |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
320 if not debug: | 319 if not debug: |
321 cmd.append('--args=is_debug=false') | 320 cmd.append('--args=is_debug=false') |
322 check_call(cmd) | 321 check_call(cmd) |
323 check_call(['ninja', '-C', build_dir, 'gn']) | 322 check_call(['ninja', '-C', build_dir, 'gn']) |
324 if not debug: | 323 if not debug: |
325 check_call(['strip', os.path.join(build_dir, 'gn')]) | 324 check_call(['strip', os.path.join(build_dir, 'gn')]) |
326 | 325 |
327 | 326 |
328 if __name__ == '__main__': | 327 if __name__ == '__main__': |
329 sys.exit(main(sys.argv[1:])) | 328 sys.exit(main(sys.argv[1:])) |
OLD | NEW |