SConscript (8913:8b223e308b08) | SConscript (8942:5534a564f6a0) |
---|---|
1# -*- mode:python -*- 2 3# Copyright (c) 2004-2005 The Regents of The University of Michigan 4# All rights reserved. 5# 6# Redistribution and use in source and binary forms, with or without 7# modification, are permitted provided that the following conditions are 8# met: redistributions of source code must retain the above copyright --- 887 unchanged lines hidden (view full) --- 896 # Now link a stub with main() and the static library. 897 main_objs = [ make_obj(s, True) for s in Source.get(main=True) ] 898 899 for test in UnitTest.all: 900 flags = { test.target : True } 901 test_sources = Source.get(**flags) 902 test_objs = [ make_obj(s, static=True) for s in test_sources ] 903 testname = "unittest/%s.%s" % (test.target, label) | 1# -*- mode:python -*- 2 3# Copyright (c) 2004-2005 The Regents of The University of Michigan 4# All rights reserved. 5# 6# Redistribution and use in source and binary forms, with or without 7# modification, are permitted provided that the following conditions are 8# met: redistributions of source code must retain the above copyright --- 887 unchanged lines hidden (view full) --- 896 # Now link a stub with main() and the static library. 897 main_objs = [ make_obj(s, True) for s in Source.get(main=True) ] 898 899 for test in UnitTest.all: 900 flags = { test.target : True } 901 test_sources = Source.get(**flags) 902 test_objs = [ make_obj(s, static=True) for s in test_sources ] 903 testname = "unittest/%s.%s" % (test.target, label) |
904 new_env.Program(testname, main_objs + test_objs + static_objs) | 904 new_env.Program(testname, test_objs + static_objs) |
905 906 progname = exename 907 if strip: 908 progname += '.unstripped' 909 910 targets = new_env.Program(progname, main_objs + static_objs) 911 912 if strip: --- 86 unchanged lines hidden --- | 905 906 progname = exename 907 if strip: 908 progname += '.unstripped' 909 910 targets = new_env.Program(progname, main_objs + static_objs) 911 912 if strip: --- 86 unchanged lines hidden --- |