Fix modules wscript usage of 'use' parameter

This commit is contained in:
Gustavo J. A. M. Carneiro committed 2011-09-22 13:03:25 +01:00
1 parent 2ebbddc12e
commit 05b726cc71
7 files changed
+22 -28

No files matched your search

+7 -10
View File
@@ -82,7 +82,7 @@ int main ()
conf.check_nonfatal(header_name='sys/inttypes.h', define_name='HAVE_SYS_INT_TYPES_H')
if not conf.check_nonfatal(lib='rt', uselib='RT', define_name='HAVE_RT'):
if not conf.check_nonfatal(lib='rt', uselib_store='RT', define_name='HAVE_RT'):
conf.report_optional_feature("RealTime", "Real Time Simulator",
False, "librt is not available")
else:
@@ -275,11 +275,8 @@ def build(bld):
'model/realtime-simulator-impl.cc',
'model/wall-clock-synchronizer.cc',
])
core.uselib = 'RT'
core_test.uselib = 'RT'
else:
core.uselib = ''
core_test.uselib = ''
core.use.append('RT')
core_test.use.append('RT')
if env['ENABLE_THREADING']:
core.source.extend([
@@ -288,8 +285,8 @@ def build(bld):
'model/unix-system-mutex.cc',
'model/unix-system-condition.cc',
])
core.uselib = core.uselib + ' PTHREAD'
core_test.uselib = core_test.uselib + ' PTHREAD'
core.use.append('PTHREAD')
core_test.use.append('PTHREAD')
headers.source.extend([
'model/unix-fd-reader.h',
'model/system-mutex.h',
@@ -298,8 +295,8 @@ def build(bld):
])
if env['ENABLE_GSL']:
core.uselib = core.uselib + ' GSL GSLCBLAS M'
core_test.uselib = core_test.uselib + ' GSL GSLCBLAS M'
core.use.extend(['GSL', 'GSLCBLAS', 'M'])
core_test.use.extend(['GSL', 'GSLCBLAS', 'M'])
core_test.source.extend(['test/rng-test-suite.cc'])
if (bld.env['ENABLE_EXAMPLES']):