SConscript (13630:416abeca1e1c) | SConscript (13656:2727dfddacf3) |
---|---|
1# -*- mode:python -*- 2 3# Copyright (c) 2018 ARM Limited 4# 5# The license below extends only to copyright in the software and shall 6# not be construed as granting a license to any other intellectual 7# property including but not limited to intellectual property relating 8# to a hardware implementation of the functionality of the software --- 458 unchanged lines hidden (view full) --- 467 def __init__(self, target, *srcs_and_filts, **kwargs): 468 super(UnitTest, self).__init__(target, *srcs_and_filts) 469 470 self.main = kwargs.get('main', False) 471 472 def declare(self, env): 473 sources = list(self.sources) 474 for f in self.filters: | 1# -*- mode:python -*- 2 3# Copyright (c) 2018 ARM Limited 4# 5# The license below extends only to copyright in the software and shall 6# not be construed as granting a license to any other intellectual 7# property including but not limited to intellectual property relating 8# to a hardware implementation of the functionality of the software --- 458 unchanged lines hidden (view full) --- 467 def __init__(self, target, *srcs_and_filts, **kwargs): 468 super(UnitTest, self).__init__(target, *srcs_and_filts) 469 470 self.main = kwargs.get('main', False) 471 472 def declare(self, env): 473 sources = list(self.sources) 474 for f in self.filters: |
475 sources = Source.all.apply_filter(f) | 475 sources += Source.all.apply_filter(f) |
476 objs = self.srcs_to_objs(env, sources) + env['STATIC_OBJS'] 477 if self.main: 478 objs += env['MAIN_OBJS'] 479 return super(UnitTest, self).declare(env, objs) 480 481class GTest(Executable): 482 '''Create a unit test based on the google test framework.''' 483 all = [] --- 919 unchanged lines hidden --- | 476 objs = self.srcs_to_objs(env, sources) + env['STATIC_OBJS'] 477 if self.main: 478 objs += env['MAIN_OBJS'] 479 return super(UnitTest, self).declare(env, objs) 480 481class GTest(Executable): 482 '''Create a unit test based on the google test framework.''' 483 all = [] --- 919 unchanged lines hidden --- |