| 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 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 143 ]) | 143 ]) |
| 144 static_libraries['base']['sources'].extend([ | 144 static_libraries['base']['sources'].extend([ |
| 145 'base/at_exit.cc', | 145 'base/at_exit.cc', |
| 146 'base/atomicops_internals_x86_gcc.cc', | 146 'base/atomicops_internals_x86_gcc.cc', |
| 147 'base/base_paths.cc', | 147 'base/base_paths.cc', |
| 148 'base/base_switches.cc', | 148 'base/base_switches.cc', |
| 149 'base/callback_internal.cc', | 149 'base/callback_internal.cc', |
| 150 'base/command_line.cc', | 150 'base/command_line.cc', |
| 151 'base/debug/alias.cc', | 151 'base/debug/alias.cc', |
| 152 'base/debug/stack_trace.cc', | 152 'base/debug/stack_trace.cc', |
| 153 'base/debug/task_annotator.cc', |
| 153 'base/debug/trace_event_impl.cc', | 154 'base/debug/trace_event_impl.cc', |
| 154 'base/debug/trace_event_impl_constants.cc', | 155 'base/debug/trace_event_impl_constants.cc', |
| 155 'base/debug/trace_event_memory.cc', | 156 'base/debug/trace_event_memory.cc', |
| 156 'base/debug/trace_event_synthetic_delay.cc', | 157 'base/debug/trace_event_synthetic_delay.cc', |
| 157 'base/environment.cc', | 158 'base/environment.cc', |
| 158 'base/file_util.cc', | |
| 159 'base/files/file.cc', | 159 'base/files/file.cc', |
| 160 'base/files/file_enumerator.cc', | 160 'base/files/file_enumerator.cc', |
| 161 'base/files/file_path.cc', | 161 'base/files/file_path.cc', |
| 162 'base/files/file_path_constants.cc', | 162 'base/files/file_path_constants.cc', |
| 163 'base/files/file_util.cc', |
| 163 'base/files/scoped_file.cc', | 164 'base/files/scoped_file.cc', |
| 164 'base/json/json_parser.cc', | 165 'base/json/json_parser.cc', |
| 165 'base/json/json_reader.cc', | 166 'base/json/json_reader.cc', |
| 166 'base/json/json_string_value_serializer.cc', | 167 'base/json/json_string_value_serializer.cc', |
| 167 'base/json/json_writer.cc', | 168 'base/json/json_writer.cc', |
| 168 'base/json/string_escape.cc', | 169 'base/json/string_escape.cc', |
| 169 'base/lazy_instance.cc', | 170 'base/lazy_instance.cc', |
| 170 'base/location.cc', | 171 'base/location.cc', |
| 171 'base/logging.cc', | 172 'base/logging.cc', |
| 172 'base/memory/ref_counted.cc', | 173 'base/memory/ref_counted.cc', |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 232 'base/tracking_info.cc', | 233 'base/tracking_info.cc', |
| 233 'base/values.cc', | 234 'base/values.cc', |
| 234 'base/vlog.cc', | 235 'base/vlog.cc', |
| 235 ]) | 236 ]) |
| 236 | 237 |
| 237 if is_posix: | 238 if is_posix: |
| 238 static_libraries['base']['sources'].extend([ | 239 static_libraries['base']['sources'].extend([ |
| 239 'base/base_paths_posix.cc', | 240 'base/base_paths_posix.cc', |
| 240 'base/debug/debugger_posix.cc', | 241 'base/debug/debugger_posix.cc', |
| 241 'base/debug/stack_trace_posix.cc', | 242 'base/debug/stack_trace_posix.cc', |
| 242 'base/file_util_posix.cc', | |
| 243 'base/files/file_enumerator_posix.cc', | 243 'base/files/file_enumerator_posix.cc', |
| 244 'base/files/file_posix.cc', | 244 'base/files/file_posix.cc', |
| 245 'base/files/file_util_posix.cc', |
| 245 'base/message_loop/message_pump_libevent.cc', | 246 'base/message_loop/message_pump_libevent.cc', |
| 246 'base/posix/file_descriptor_shuffle.cc', | 247 'base/posix/file_descriptor_shuffle.cc', |
| 247 'base/process/kill_posix.cc', | 248 'base/process/kill_posix.cc', |
| 248 'base/process/process_handle_posix.cc', | 249 'base/process/process_handle_posix.cc', |
| 249 'base/process/process_metrics_posix.cc', | 250 'base/process/process_metrics_posix.cc', |
| 250 'base/process/process_posix.cc', | 251 'base/process/process_posix.cc', |
| 251 'base/safe_strerror_posix.cc', | 252 'base/safe_strerror_posix.cc', |
| 252 'base/synchronization/condition_variable_posix.cc', | 253 'base/synchronization/condition_variable_posix.cc', |
| 253 'base/synchronization/lock_impl_posix.cc', | 254 'base/synchronization/lock_impl_posix.cc', |
| 254 'base/synchronization/waitable_event_posix.cc', | 255 'base/synchronization/waitable_event_posix.cc', |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 305 os.path.join(SRC_ROOT, 'third_party', 'libevent', 'linux') | 306 os.path.join(SRC_ROOT, 'third_party', 'libevent', 'linux') |
| 306 ]) | 307 ]) |
| 307 static_libraries['libevent']['sources'].extend([ | 308 static_libraries['libevent']['sources'].extend([ |
| 308 'third_party/libevent/epoll.c', | 309 'third_party/libevent/epoll.c', |
| 309 ]) | 310 ]) |
| 310 | 311 |
| 311 | 312 |
| 312 if is_mac: | 313 if is_mac: |
| 313 static_libraries['base']['sources'].extend([ | 314 static_libraries['base']['sources'].extend([ |
| 314 'base/base_paths_mac.mm', | 315 'base/base_paths_mac.mm', |
| 315 'base/file_util_mac.mm', | 316 'base/files/file_util_mac.mm', |
| 316 'base/mac/bundle_locations.mm', | 317 'base/mac/bundle_locations.mm', |
| 317 'base/mac/foundation_util.mm', | 318 'base/mac/foundation_util.mm', |
| 318 'base/mac/mach_logging.cc', | 319 'base/mac/mach_logging.cc', |
| 319 'base/mac/scoped_mach_port.cc', | 320 'base/mac/scoped_mach_port.cc', |
| 320 'base/mac/scoped_nsautorelease_pool.mm', | 321 'base/mac/scoped_nsautorelease_pool.mm', |
| 321 'base/message_loop/message_pump_mac.mm', | 322 'base/message_loop/message_pump_mac.mm', |
| 322 'base/process/process_handle_mac.cc', | 323 'base/process/process_handle_mac.cc', |
| 323 'base/process/process_iterator_mac.cc', | 324 'base/process/process_iterator_mac.cc', |
| 324 'base/strings/sys_string_conversions_mac.mm', | 325 'base/strings/sys_string_conversions_mac.mm', |
| 325 'base/time/time_mac.cc', | 326 'base/time/time_mac.cc', |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 403 cmd.append('-v') | 404 cmd.append('-v') |
| 404 cmd.append('gn') | 405 cmd.append('gn') |
| 405 check_call(cmd) | 406 check_call(cmd) |
| 406 | 407 |
| 407 if not debug: | 408 if not debug: |
| 408 check_call(['strip', os.path.join(build_dir, 'gn')]) | 409 check_call(['strip', os.path.join(build_dir, 'gn')]) |
| 409 | 410 |
| 410 | 411 |
| 411 if __name__ == '__main__': | 412 if __name__ == '__main__': |
| 412 sys.exit(main(sys.argv[1:])) | 413 sys.exit(main(sys.argv[1:])) |
| OLD | NEW |