populate EXAMPLE_DIRECTORIES variable in the configuration cache for use by test.py
This commit is contained in:
7
wscript
7
wscript
@@ -479,6 +479,13 @@ def configure(conf):
|
||||
|
||||
conf.report_optional_feature("ENABLE_EXAMPLES", "Build examples", env['ENABLE_EXAMPLES'],
|
||||
why_not_examples)
|
||||
try:
|
||||
for dir in os.listdir('examples'):
|
||||
if dir.startswith('.') or dir == 'CVS':
|
||||
continue
|
||||
conf.env.append_value('EXAMPLE_DIRECTORIES', dir)
|
||||
except OSError:
|
||||
return
|
||||
|
||||
env['VALGRIND_FOUND'] = False
|
||||
try:
|
||||
|
||||
Reference in New Issue
Block a user