| Index: native_client_sdk/src/build_tools/generate_make.py
|
| diff --git a/native_client_sdk/src/build_tools/generate_make.py b/native_client_sdk/src/build_tools/generate_make.py
|
| index ac7d01ccebf607b434812a35082116646316d172..79286e41f3cedd8706dd732b9e448c060ff55d5b 100755
|
| --- a/native_client_sdk/src/build_tools/generate_make.py
|
| +++ b/native_client_sdk/src/build_tools/generate_make.py
|
| @@ -283,7 +283,8 @@ DSC_FORMAT = {
|
| 'DATA': (list, '', False),
|
| 'TITLE': (str, '', False),
|
| 'DESC': (str, '', False),
|
| - 'INFO': (str, '', False)
|
| + 'INFO': (str, '', False),
|
| + 'EXPERIMENTAL': (bool, [True, False], False)
|
| }
|
|
|
|
|
| @@ -527,6 +528,8 @@ def main(argv):
|
| action='store_true', dest='pnacl', default=False)
|
| parser.add_option('--host', help='Create host examples.',
|
| action='store_true', dest='host', default=False)
|
| + parser.add_option('--experimental', help='Create experimental examples.',
|
| + action='store_true', dest='experimental', default=False)
|
|
|
| toolchains = []
|
| platform = getos.GetPlatform()
|
| @@ -554,6 +557,10 @@ def main(argv):
|
| print 'Skipping %s, not in [%s].' % (filename, ', '.join(toolchains))
|
| continue
|
|
|
| + if desc.get('EXPERIMENTAL', False) and not options.experimental:
|
| + print 'Skipping %s, experimental only.' % (filename,)
|
| + continue
|
| +
|
| srcroot = os.path.dirname(os.path.abspath(filename))
|
| if not ProcessProject(srcroot, options.dstroot, desc, toolchains):
|
| ErrorExit('\n*** Failed to process project: %s ***' % filename)
|
|
|