| OLD | NEW |
| 1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
| 2 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 2 # Copyright (c) 2012 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 import buildbot_common | 6 import buildbot_common |
| 7 import optparse | 7 import optparse |
| 8 import os | 8 import os |
| 9 import sys | 9 import sys |
| 10 from generate_index import LandingPage | 10 from generate_index import LandingPage |
| (...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 167 rules += makeobj.BuildCompileRule('CC', src) | 167 rules += makeobj.BuildCompileRule('CC', src) |
| 168 for src in srcs.get('.cc', []): | 168 for src in srcs.get('.cc', []): |
| 169 rules += makeobj.BuildCompileRule('CXX', src) | 169 rules += makeobj.BuildCompileRule('CXX', src) |
| 170 rules += '\n' | 170 rules += '\n' |
| 171 rules += makeobj.BuildObjectList() | 171 rules += makeobj.BuildObjectList() |
| 172 rules += makeobj.BuildLinkRule() | 172 rules += makeobj.BuildLinkRule() |
| 173 if executable: | 173 if executable: |
| 174 rules += GenerateNMFRules(tc, executable, dlls, cfg, arches) | 174 rules += GenerateNMFRules(tc, executable, dlls, cfg, arches) |
| 175 | 175 |
| 176 rules += GenerateCleanRules(tools, configs) | 176 rules += GenerateCleanRules(tools, configs) |
| 177 rules += '\nall: $(ALL_TARGETS)\n' | 177 rules += '\nall: $(ALL_TARGETS)\n\nall_versions: all\n' |
| 178 | 178 |
| 179 return '', rules | 179 return '', rules |
| 180 | 180 |
| 181 | 181 |
| 182 def GenerateReplacements(desc, tools): | 182 def GenerateReplacements(desc, tools): |
| 183 # Generate target settings | 183 # Generate target settings |
| 184 settings = GenerateSettings(desc, tools) | 184 settings = GenerateSettings(desc, tools) |
| 185 tool_def = GenerateToolDefaults(tools) | 185 tool_def = GenerateToolDefaults(tools) |
| 186 _, rules = GenerateRules(desc, tools) | 186 _, rules = GenerateRules(desc, tools) |
| 187 | 187 |
| (...skipping 442 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 630 for dest, projects in master_projects.iteritems(): | 630 for dest, projects in master_projects.iteritems(): |
| 631 master_out = os.path.join(options.dstroot, dest, 'Makefile') | 631 master_out = os.path.join(options.dstroot, dest, 'Makefile') |
| 632 GenerateMasterMakefile(master_in, master_out, projects) | 632 GenerateMasterMakefile(master_in, master_out, projects) |
| 633 | 633 |
| 634 return 0 | 634 return 0 |
| 635 | 635 |
| 636 | 636 |
| 637 if __name__ == '__main__': | 637 if __name__ == '__main__': |
| 638 sys.exit(main(sys.argv[1:])) | 638 sys.exit(main(sys.argv[1:])) |
| 639 | 639 |
| OLD | NEW |