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 66cf47f026ddecaf77adf939142a6f7c2a71c605..8367bb3d5dc549d09b69c55741eb05791ef57b82 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() |
@@ -557,6 +560,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) |