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 '''Entry point for both build and try bots''' | 6 '''Entry point for both build and try bots''' |
7 | 7 |
8 import build_utils | 8 import build_utils |
9 import lastchange | 9 import lastchange |
10 import os | 10 import os |
(...skipping 317 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
328 Run(GetBuildArgs('glibc', glibcdir, 'x86', '64'), cwd=NACL_DIR) | 328 Run(GetBuildArgs('glibc', glibcdir, 'x86', '64'), cwd=NACL_DIR) |
329 else: | 329 else: |
330 ErrorExit('Missing arch %s' % arch) | 330 ErrorExit('Missing arch %s' % arch) |
331 | 331 |
332 if not skip_headers: | 332 if not skip_headers: |
333 BuildStep('Copy Toolchain headers') | 333 BuildStep('Copy Toolchain headers') |
334 if arch == 'x86': | 334 if arch == 'x86': |
335 InstallHeaders(GetToolchainNaClInclude(newlibdir, 'x86'), | 335 InstallHeaders(GetToolchainNaClInclude(newlibdir, 'x86'), |
336 pepper_ver, | 336 pepper_ver, |
337 'newlib') | 337 'newlib') |
338 InstallHeaders(GetToolchainNaClInclude(newlibdir, 'x86'), | 338 InstallHeaders(GetToolchainNaClInclude(glibcdir, 'x86'), |
339 pepper_ver, | 339 pepper_ver, |
340 'glibc') | 340 'glibc') |
341 else: | 341 else: |
342 ErrorExit('Missing arch %s' % arch) | 342 ErrorExit('Missing arch %s' % arch) |
343 | 343 |
344 BuildStep('Copy make helpers') | 344 BuildStep('Copy make helpers') |
345 CopyDir(os.path.join(SDK_SRC_DIR, 'tools', '*.py'), | 345 CopyDir(os.path.join(SDK_SRC_DIR, 'tools', '*.py'), |
346 os.path.join(pepperdir, 'tools')) | 346 os.path.join(pepperdir, 'tools')) |
347 if platform == 'win': | 347 if platform == 'win': |
348 BuildStep('Add MAKE') | 348 BuildStep('Add MAKE') |
(...skipping 29 matching lines...) Expand all Loading... |
378 AddMakeBat(dirnode) | 378 AddMakeBat(dirnode) |
379 print "\n\nMake: " + dirnode | 379 print "\n\nMake: " + dirnode |
380 Run(['make', 'all', '-j8'], cwd=os.path.abspath(dirnode), shell=True) | 380 Run(['make', 'all', '-j8'], cwd=os.path.abspath(dirnode), shell=True) |
381 | 381 |
382 return 0 | 382 return 0 |
383 | 383 |
384 | 384 |
385 if __name__ == '__main__': | 385 if __name__ == '__main__': |
386 sys.exit(main()) | 386 sys.exit(main()) |
387 | 387 |
OLD | NEW |