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

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

Issue 1655873003: [NaCl SDK] Cleanup references to old newlib toolchain (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@add_pepper_50
Patch Set: Created 4 years, 10 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
« no previous file with comments | « native_client_sdk/src/README.Makefiles ('k') | native_client_sdk/src/build_tools/build_sdk.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) 2013 The Chromium Authors. All rights reserved. 2 # Copyright (c) 2013 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 argparse 6 import argparse
7 import multiprocessing 7 import multiprocessing
8 import os 8 import os
9 import posixpath 9 import posixpath
10 import sys 10 import sys
(...skipping 12 matching lines...) Expand all
23 import getos 23 import getos
24 24
25 25
26 MAKE = 'nacl_sdk/make_3.99.90-26-gf80222c/make.exe' 26 MAKE = 'nacl_sdk/make_3.99.90-26-gf80222c/make.exe'
27 LIB_DICT = { 27 LIB_DICT = {
28 'linux': [], 28 'linux': [],
29 'mac': [], 29 'mac': [],
30 'win': ['x86_32'] 30 'win': ['x86_32']
31 } 31 }
32 VALID_TOOLCHAINS = [ 32 VALID_TOOLCHAINS = [
33 'newlib',
34 'clang-newlib', 33 'clang-newlib',
35 'glibc', 34 'glibc',
36 'pnacl', 35 'pnacl',
37 'win', 36 'win',
38 'linux', 37 'linux',
39 'mac', 38 'mac',
40 ] 39 ]
41 40
42 # Global verbosity setting. 41 # Global verbosity setting.
43 # If set to True (normally via a command line arg) then build_projects will 42 # If set to True (normally via a command line arg) then build_projects will
(...skipping 240 matching lines...) Expand 10 before | Expand all | Expand 10 after
284 # We don't want the currently configured NACL_SDK_ROOT to have any effect 283 # We don't want the currently configured NACL_SDK_ROOT to have any effect
285 # on the build. 284 # on the build.
286 del os.environ['NACL_SDK_ROOT'] 285 del os.environ['NACL_SDK_ROOT']
287 286
288 pepper_ver = str(int(build_version.ChromeMajorVersion())) 287 pepper_ver = str(int(build_version.ChromeMajorVersion()))
289 pepperdir = os.path.join(OUT_DIR, 'pepper_' + pepper_ver) 288 pepperdir = os.path.join(OUT_DIR, 'pepper_' + pepper_ver)
290 289
291 if not options.toolchain: 290 if not options.toolchain:
292 # Order matters here: the default toolchain for an example's Makefile will 291 # Order matters here: the default toolchain for an example's Makefile will
293 # be the first toolchain in this list that is available in the example. 292 # be the first toolchain in this list that is available in the example.
294 # e.g. If an example supports newlib and glibc, then the default will be 293 # e.g. If an example supports clang-newlib and glibc, then the default will
295 # newlib. 294 # be clang-newlib.
296 options.toolchain = ['pnacl', 'newlib', 'glibc', 'host', 'clang-newlib'] 295 options.toolchain = ['pnacl', 'clang-newlib', 'glibc', 'host']
297 296
298 if 'host' in options.toolchain: 297 if 'host' in options.toolchain:
299 options.toolchain.remove('host') 298 options.toolchain.remove('host')
300 options.toolchain.append(getos.GetPlatform()) 299 options.toolchain.append(getos.GetPlatform())
301 Trace('Adding platform: ' + getos.GetPlatform()) 300 Trace('Adding platform: ' + getos.GetPlatform())
302 301
303 ValidateToolchains(options.toolchain) 302 ValidateToolchains(options.toolchain)
304 303
305 filters = {} 304 filters = {}
306 if options.toolchain: 305 if options.toolchain:
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
339 338
340 339
341 if __name__ == '__main__': 340 if __name__ == '__main__':
342 script_name = os.path.basename(sys.argv[0]) 341 script_name = os.path.basename(sys.argv[0])
343 try: 342 try:
344 sys.exit(main(sys.argv[1:])) 343 sys.exit(main(sys.argv[1:]))
345 except parse_dsc.ValidationError as e: 344 except parse_dsc.ValidationError as e:
346 buildbot_common.ErrorExit('%s: %s' % (script_name, e)) 345 buildbot_common.ErrorExit('%s: %s' % (script_name, e))
347 except KeyboardInterrupt: 346 except KeyboardInterrupt:
348 buildbot_common.ErrorExit('%s: interrupted' % script_name) 347 buildbot_common.ErrorExit('%s: interrupted' % script_name)
OLDNEW
« no previous file with comments | « native_client_sdk/src/README.Makefiles ('k') | native_client_sdk/src/build_tools/build_sdk.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698