Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(375)

Side by Side Diff: native_client_sdk/src/build_tools/generate_make.py

Issue 11882012: Convert all project to use common.mk (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge Created 7 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « native_client_sdk/src/build_tools/build_sdk.py ('k') | native_client_sdk/src/examples/Makefile » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « native_client_sdk/src/build_tools/build_sdk.py ('k') | native_client_sdk/src/examples/Makefile » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698