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

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

Issue 10855162: add linux support for examples and libs (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 4 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 | « no previous file | native_client_sdk/src/build_tools/make_rules.py » ('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 make_rules 7 import make_rules
8 import optparse 8 import optparse
9 import os 9 import os
10 import sys 10 import sys
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after
197 '__PROJECT_TOOLS__' : tool_def, 197 '__PROJECT_TOOLS__' : tool_def,
198 '__PROJECT_RULES__' : rules, 198 '__PROJECT_RULES__' : rules,
199 '__PROJECT_PRELAUNCH__' : prelaunch, 199 '__PROJECT_PRELAUNCH__' : prelaunch,
200 '__PROJECT_PRERUN__' : prerun, 200 '__PROJECT_PRERUN__' : prerun,
201 '__PROJECT_POSTLAUNCH__' : postlaunch 201 '__PROJECT_POSTLAUNCH__' : postlaunch
202 } 202 }
203 203
204 204
205 # 'KEY' : ( <TYPE>, [Accepted Values], <Required?>) 205 # 'KEY' : ( <TYPE>, [Accepted Values], <Required?>)
206 DSC_FORMAT = { 206 DSC_FORMAT = {
207 'TOOLS' : (list, ['newlib', 'glibc', 'pnacl', 'win'], True), 207 'TOOLS' : (list, ['newlib', 'glibc', 'pnacl', 'win', 'linux'], True),
208 'CONFIGS' : (list, ['Debug', 'Release'], False), 208 'CONFIGS' : (list, ['Debug', 'Release'], False),
209 'PREREQ' : (list, '', False), 209 'PREREQ' : (list, '', False),
210 'TARGETS' : (list, { 210 'TARGETS' : (list, {
211 'NAME': (str, '', True), 211 'NAME': (str, '', True),
212 'TYPE': (str, ['main', 'nexe', 'lib', 'so'], True), 212 'TYPE': (str, ['main', 'nexe', 'lib', 'so'], True),
213 'SOURCES': (list, '', True), 213 'SOURCES': (list, '', True),
214 'CCFLAGS': (list, '', False), 214 'CCFLAGS': (list, '', False),
215 'CXXFLAGS': (list, '', False), 215 'CXXFLAGS': (list, '', False),
216 'LDFLAGS': (list, '', False), 216 'LDFLAGS': (list, '', False),
217 'INCLUDES': (list, '', False), 217 'INCLUDES': (list, '', False),
(...skipping 317 matching lines...) Expand 10 before | Expand all | Expand 10 after
535 if options.master: 535 if options.master:
536 master_in = os.path.join(SDK_EXAMPLE_DIR, 'Makefile') 536 master_in = os.path.join(SDK_EXAMPLE_DIR, 'Makefile')
537 for dest, projects in master_projects.iteritems(): 537 for dest, projects in master_projects.iteritems():
538 master_out = os.path.join(options.dstroot, dest, 'Makefile') 538 master_out = os.path.join(options.dstroot, dest, 'Makefile')
539 GenerateMasterMakefile(master_in, master_out, projects) 539 GenerateMasterMakefile(master_in, master_out, projects)
540 return 0 540 return 0
541 541
542 542
543 if __name__ == '__main__': 543 if __name__ == '__main__':
544 sys.exit(main(sys.argv[1:])) 544 sys.exit(main(sys.argv[1:]))
OLDNEW
« no previous file with comments | « no previous file | native_client_sdk/src/build_tools/make_rules.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698