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

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

Issue 11882012: Convert all project to use common.mk (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix missing common.mk path 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
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 """Entry point for both build and try bots 6 """Entry point for both build and try bots
7 7
8 This script is invoked from XXX, usually without arguments 8 This script is invoked from XXX, usually without arguments
9 to package an SDK. It automatically determines whether 9 to package an SDK. It automatically determines whether
10 this SDK is for mac, win, linux. 10 this SDK is for mac, win, linux.
(...skipping 568 matching lines...) Expand 10 before | Expand all | Expand 10 after
579 579
580 InstallNaClHeaders(GetToolchainNaClInclude('pnacl', pnacldir, 'x86'), 580 InstallNaClHeaders(GetToolchainNaClInclude('pnacl', pnacldir, 'x86'),
581 pepper_ver, 581 pepper_ver,
582 'newlib') 582 'newlib')
583 583
584 584
585 def BuildStepCopyBuildHelpers(pepperdir, platform): 585 def BuildStepCopyBuildHelpers(pepperdir, platform):
586 buildbot_common.BuildStep('Copy build helpers') 586 buildbot_common.BuildStep('Copy build helpers')
587 buildbot_common.CopyDir(os.path.join(SDK_SRC_DIR, 'tools', '*.py'), 587 buildbot_common.CopyDir(os.path.join(SDK_SRC_DIR, 'tools', '*.py'),
588 os.path.join(pepperdir, 'tools')) 588 os.path.join(pepperdir, 'tools'))
589 buildbot_common.CopyDir(os.path.join(SDK_SRC_DIR, 'tools', '*.mk'),
590 os.path.join(pepperdir, 'tools'))
589 if platform == 'win': 591 if platform == 'win':
590 buildbot_common.BuildStep('Add MAKE') 592 buildbot_common.BuildStep('Add MAKE')
591 http_download.HttpDownload(GSTORE + MAKE, 593 http_download.HttpDownload(GSTORE + MAKE,
592 os.path.join(pepperdir, 'tools', 'make.exe')) 594 os.path.join(pepperdir, 'tools', 'make.exe'))
593 595
594 596
595 EXAMPLE_LIST = [ 597 EXAMPLE_LIST = [
596 'debugging', 598 'debugging',
597 'dlopen', 599 'dlopen',
598 'file_histogram', 600 'file_histogram',
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after
739 if os.path.isfile(makefile): 741 if os.path.isfile(makefile):
740 print "\n\nMake: " + make_dir 742 print "\n\nMake: " + make_dir
741 if platform == 'win': 743 if platform == 'win':
742 # We need to modify the environment to build host on Windows. 744 # We need to modify the environment to build host on Windows.
743 env = GetWindowsEnvironment() 745 env = GetWindowsEnvironment()
744 make = os.path.join(make_dir, 'make.bat') 746 make = os.path.join(make_dir, 'make.bat')
745 else: 747 else:
746 env = os.environ 748 env = os.environ
747 make = 'make' 749 make = 'make'
748 750
749 buildbot_common.Run([make, '-j8'], 751 buildbot_common.Run([make, '-j8', 'all_versions'],
750 cwd=os.path.abspath(make_dir), env=env) 752 cwd=os.path.abspath(make_dir), env=env)
751 if clean: 753 if clean:
752 # Clean to remove temporary files but keep the built libraries. 754 # Clean to remove temporary files but keep the built libraries.
753 buildbot_common.Run([make, '-j8', 'clean'], 755 buildbot_common.Run([make, '-j8', 'clean'],
754 cwd=os.path.abspath(make_dir)) 756 cwd=os.path.abspath(make_dir))
755 757
756 758
757 def BuildStepBuildLibraries(pepperdir, platform, directory, clean=True): 759 def BuildStepBuildLibraries(pepperdir, platform, directory, clean=True):
758 BuildStepMakeAll(pepperdir, platform, directory, 'Build Libraries', 760 BuildStepMakeAll(pepperdir, platform, directory, 'Build Libraries',
759 clean=clean) 761 clean=clean)
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after
939 # Archive on non-trybots. 941 # Archive on non-trybots.
940 if options.archive: 942 if options.archive:
941 BuildStepArchiveBundle(pepper_ver, clnumber, tarfile) 943 BuildStepArchiveBundle(pepper_ver, clnumber, tarfile)
942 BuildStepArchiveSDKTools() 944 BuildStepArchiveSDKTools()
943 945
944 return 0 946 return 0
945 947
946 948
947 if __name__ == '__main__': 949 if __name__ == '__main__':
948 sys.exit(main(sys.argv)) 950 sys.exit(main(sys.argv))
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698