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 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
136 continue | 136 continue |
137 full_path = os.path.join(GN_ROOT, name) | 137 full_path = os.path.join(GN_ROOT, name) |
138 static_libraries['gn']['sources'].append( | 138 static_libraries['gn']['sources'].append( |
139 os.path.relpath(full_path, SRC_ROOT)) | 139 os.path.relpath(full_path, SRC_ROOT)) |
140 | 140 |
141 static_libraries['dynamic_annotations']['sources'].extend([ | 141 static_libraries['dynamic_annotations']['sources'].extend([ |
142 'base/third_party/dynamic_annotations/dynamic_annotations.c', | 142 'base/third_party/dynamic_annotations/dynamic_annotations.c', |
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', | |
147 'base/base_paths.cc', | 146 'base/base_paths.cc', |
Nico
2015/07/01 18:49:07
This probably now needs to reference the new atomi
Sam Clegg
2015/07/01 18:52:58
There are no .cc files needed for atomics anymore,
Nico
2015/07/01 18:55:42
Oh, and this sounds good. lgtm!
| |
148 'base/base_switches.cc', | 147 'base/base_switches.cc', |
149 'base/callback_internal.cc', | 148 'base/callback_internal.cc', |
150 'base/command_line.cc', | 149 'base/command_line.cc', |
151 'base/debug/alias.cc', | 150 'base/debug/alias.cc', |
152 'base/debug/stack_trace.cc', | 151 'base/debug/stack_trace.cc', |
153 'base/debug/task_annotator.cc', | 152 'base/debug/task_annotator.cc', |
154 'base/environment.cc', | 153 'base/environment.cc', |
155 'base/files/file.cc', | 154 'base/files/file.cc', |
156 'base/files/file_enumerator.cc', | 155 'base/files/file_enumerator.cc', |
157 'base/files/file_path.cc', | 156 'base/files/file_path.cc', |
(...skipping 250 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
408 cmd.append('-v') | 407 cmd.append('-v') |
409 cmd.append('gn') | 408 cmd.append('gn') |
410 check_call(cmd) | 409 check_call(cmd) |
411 | 410 |
412 if not options.debug: | 411 if not options.debug: |
413 check_call(['strip', os.path.join(build_dir, 'gn')]) | 412 check_call(['strip', os.path.join(build_dir, 'gn')]) |
414 | 413 |
415 | 414 |
416 if __name__ == '__main__': | 415 if __name__ == '__main__': |
417 sys.exit(main(sys.argv[1:])) | 416 sys.exit(main(sys.argv[1:])) |
OLD | NEW |