From d14334895eb55876a6e2db621ea62da775895b2f Mon Sep 17 00:00:00 2001 From: Vladimir Prus Date: Mon, 21 Jul 2003 06:43:28 +0000 Subject: [PATCH] Unbreak STLport and railsys test. * tools/stlport.jam (stlport-target-class.generate): New method. * test/test_all.py: Run 'railsys' again. [SVN r19242] --- src/tools/stlport.jam | 14 ++++++++++++++ test/test_all.py | 8 ++++---- 2 files changed, 18 insertions(+), 4 deletions(-) diff --git a/src/tools/stlport.jam b/src/tools/stlport.jam index 3e3c89bbb..41df760e0 100644 --- a/src/tools/stlport.jam +++ b/src/tools/stlport.jam @@ -83,6 +83,20 @@ rule stlport-target-class ( project : headers ? : libraries ? : requirements * ) self.libraries = $(libraries) ; import feature project type errors generators ; + import set : difference ; + + rule generate ( property-set ) + { + # Since this target is built with stlport, it will also + # have /stlport//stlport in requirements, which will + # cause a loop in main target references. Remove that property + # manually. + + property-set = [ property-set.create [ difference + [ $(property-set).raw ] : /stlport//stlport ] ] ; + return [ basic-target.generate $(property-set) ] ; + } + rule construct ( source-targets * : property-set ) { diff --git a/test/test_all.py b/test/test_all.py index 078e26804..71aab124b 100644 --- a/test/test_all.py +++ b/test/test_all.py @@ -106,9 +106,9 @@ tests = [ "project_test1", if os.name == 'posix': tests.append("symlink") -#if 'QTDIR' in os.environ: -# tests.append("railsys") -#else: -# print 'skipping railsys test since QTDIR environment variable is unset' +if 'QTDIR' in os.environ: + tests.append("railsys") +else: + print 'skipping railsys test since QTDIR environment variable is unset' run_tests(critical_tests, tests)