diff options
author | Steven Knight <knight@baldmt.com> | 2002-01-31 04:29:50 (GMT) |
---|---|---|
committer | Steven Knight <knight@baldmt.com> | 2002-01-31 04:29:50 (GMT) |
commit | 1ce93f395c1d41297ba0ef82fb80be7a4d69daa9 (patch) | |
tree | fcb73c18df1f313aef2747e4036be3453094225b /test | |
parent | ae1c3983b9c6d41608d494dfbdace21cdd459951 (diff) | |
download | SCons-1ce93f395c1d41297ba0ef82fb80be7a4d69daa9.zip SCons-1ce93f395c1d41297ba0ef82fb80be7a4d69daa9.tar.gz SCons-1ce93f395c1d41297ba0ef82fb80be7a4d69daa9.tar.bz2 |
Allow libraries to specified as source files on the command line.
Diffstat (limited to 'test')
-rw-r--r-- | test/Library.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/Library.py b/test/Library.py index fb2c1ca..f13dad3 100644 --- a/test/Library.py +++ b/test/Library.py @@ -29,12 +29,12 @@ import TestSCons test = TestSCons.TestSCons() test.write('SConstruct', """ -env = Environment(LIBS = [ 'foo1', 'foo2', 'foo3' ], +env = Environment(LIBS = [ 'foo1', 'foo2' ], LIBPATH = [ '.' ]) env.Library(target = 'foo1', source = 'f1.c') env.Library(target = 'foo2', source = 'f2a.c f2b.c f2c.c') -env.Library(target = 'foo3', source = ['f3a.c', 'f3b.c', 'f3c.c']) -env.Program(target = 'prog', source = 'prog.c') +libtgt=env.Library(target = 'foo3', source = ['f3a.c', 'f3b.c', 'f3c.c']) +env.Program(target = 'prog', source = [ 'prog.c', libtgt ]) """) test.write('f1.c', r""" |