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

Unified Diff: native_client_sdk/src/build_tools/build_sdk.py

Issue 10829027: [NaCl SDK] Add nacl_mounts to NaCl SDK build. Experimental for now. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: sync again Created 8 years, 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | native_client_sdk/src/build_tools/generate_make.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: native_client_sdk/src/build_tools/build_sdk.py
diff --git a/native_client_sdk/src/build_tools/build_sdk.py b/native_client_sdk/src/build_tools/build_sdk.py
index 7ac2e0f9779671b2fd8b6e5a1fbbb86cbe47457e..0b2ba949782c9cdde297a45703f94694e10ac498 100755
--- a/native_client_sdk/src/build_tools/build_sdk.py
+++ b/native_client_sdk/src/build_tools/build_sdk.py
@@ -428,10 +428,11 @@ EXAMPLE_LIST = [
]
LIBRARY_LIST = [
- 'pthread',
+ 'nacl_mounts',
'ppapi',
'ppapi_cpp',
'ppapi_gles2',
+ 'pthread',
]
LIB_DICT = {
@@ -440,7 +441,7 @@ LIB_DICT = {
'win': ['x86_32']
}
-def BuildStepCopyExamples(pepperdir, toolchains):
+def BuildStepCopyExamples(pepperdir, toolchains, build_experimental):
buildbot_common.BuildStep('Copy examples')
if not os.path.exists(os.path.join(pepperdir, 'tools')):
@@ -482,6 +483,9 @@ def BuildStepCopyExamples(pepperdir, toolchains):
dsc = os.path.join(SDK_LIBRARY_DIR, library, 'library.dsc')
args.append(dsc)
+ if build_experimental:
+ args.append('--experimental')
+
if generate_make.main(args):
buildbot_common.ErrorExit('Failed to build examples.')
@@ -704,6 +708,9 @@ def main(args):
action='store_true', dest='archive', default=False)
parser.add_option('--release', help='PPAPI release version.',
dest='release', default=None)
+ parser.add_option('--experimental',
+ help='build experimental examples and libraries', action='store_true',
+ dest='build_experimental', default=False)
options, args = parser.parse_args(args[1:])
platform = getos.GetPlatform()
@@ -748,7 +755,7 @@ def main(args):
print 'Building PEPPER %s at %s' % (pepper_ver, clnumber)
if options.only_examples:
- BuildStepCopyExamples(pepperdir, toolchains)
+ BuildStepCopyExamples(pepperdir, toolchains, options.build_experimental)
BuildStepBuildLibraries(pepperdir, platform)
BuildStepBuildExamples(pepperdir, platform)
if options.test_examples:
@@ -766,7 +773,7 @@ def main(args):
BuildStepBuildToolchains(pepperdir, platform, arch, pepper_ver, toolchains)
InstallHeaders(os.path.join(pepperdir, 'include'), None, 'libs')
BuildStepCopyBuildHelpers(pepperdir, platform)
- BuildStepCopyExamples(pepperdir, toolchains)
+ BuildStepCopyExamples(pepperdir, toolchains, options.build_experimental)
# Ship with libraries prebuilt, so run that first.
BuildStepBuildLibraries(pepperdir, platform)
« no previous file with comments | « no previous file | native_client_sdk/src/build_tools/generate_make.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698