Chromium Code Reviews| Index: native_client_sdk/src/build_tools/build_examples.py |
| diff --git a/native_client_sdk/src/build_tools/build_examples.py b/native_client_sdk/src/build_tools/build_examples.py |
| index f358e202f4914fbae6965ff643daac07325f1635..765bca7ba31a798a6d26fff17fdb4b1f62ebca90 100755 |
| --- a/native_client_sdk/src/build_tools/build_examples.py |
| +++ b/native_client_sdk/src/build_tools/build_examples.py |
| @@ -7,6 +7,7 @@ import optparse |
| import os |
| import sys |
| +import buildbot_common |
| import build_sdk |
| import build_utils |
| import test_sdk |
| @@ -17,6 +18,9 @@ import getos |
| def main(args): |
| parser = optparse.OptionParser() |
| + parser.add_option('--copy', |
| + help='Only\'t copy the files, don\'t build.', |
|
binji
2013/01/16 22:46:55
nit: s/Only\'t/Only/
noelallen1
2013/01/16 23:21:10
Done.
|
| + action='store_true' ) |
| parser.add_option('--clobber-examples', |
| help='Don\'t examples directory before copying new files', |
| action='store_true' ) |
| @@ -48,13 +52,20 @@ def main(args): |
| build_sdk.options = options |
| + src_path = os.path.join(buildbot_common.SDK_SRC_DIR, 'tools', '*.mk') |
|
binji
2013/01/16 22:46:55
could run build_sdk.BuildStepCopyBuildHelpers inst
noelallen1
2013/01/16 23:21:10
Done.
|
| + dst_path = os.path.join(pepperdir, 'tools') |
| + buildbot_common.CopyDir(src_path, dst_path) |
| + |
| build_sdk.BuildStepCopyExamples(pepperdir, toolchains, options.experimental, |
| options.clobber_examples) |
| + test_sdk.BuildStepCopyTests(pepperdir, toolchains, options.experimental, |
| + options.clobber_examples) |
| + if options.copy: |
| + return 0 |
| + |
| # False = don't clean after building the libraries directory. |
| build_sdk.BuildStepBuildLibraries(pepperdir, platform, 'src', False) |
| test_sdk.BuildStepBuildExamples(pepperdir, platform) |
| - test_sdk.BuildStepCopyTests(pepperdir, toolchains, options.experimental, |
| - options.clobber_examples) |
| test_sdk.BuildStepBuildTests(pepperdir, platform) |
| if options.test_examples: |
| test_sdk.BuildStepRunPyautoTests(pepperdir, platform, pepper_ver) |