Changeset dd35ec5 in rtems-libbsd for builder.py


Ignore:
Timestamp:
May 2, 2018, 9:25:18 AM (19 months ago)
Author:
Christian Mauderer <christian.mauderer@…>
Branches:
afaeccc05a556f6aa25ba044a7e49d6aa634a59e, master
Children:
9c570da
Parents:
a779a3b
git-author:
Christian Mauderer <christian.mauderer@…> (05/02/18 09:25:18)
git-committer:
Christian Mauderer <christian.mauderer@…> (05/04/18 05:15:36)
Message:

waf: Allow to add libs per test.

Update #3419.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • builder.py

    ra779a3b rdd35ec5  
    497497class TestFragementComposer(BuildSystemFragmentComposer):
    498498
    499     def __init__(self, testName, fileFragments, runTest = True, netTest = False):
     499    def __init__(self, testName, fileFragments, runTest = True, netTest = False, extraLibs = []):
    500500        self.testName = testName
    501501        self.fileFragments = fileFragments
    502502        self.runTest = runTest
    503503        self.netTest = netTest
     504        self.extraLibs = extraLibs
    504505
    505506    def compose(self, path):
    506507        return ['tests', self.testName, ('default', None)], { 'files': self.fileFragments,
    507508                                                              'run': self.runTest,
    508                                                               'net': self.netTest }
     509                                                              'net': self.netTest,
     510                                                              'libs': self.extraLibs}
    509511
    510512class TestIfHeaderComposer(TestFragementComposer):
    511513
    512     def __init__(self, testName, headers, fileFragments, runTest = True, netTest = False):
     514    def __init__(self, testName, headers, fileFragments, runTest = True, netTest = False, extraLibs = []):
    513515        if headers is not list:
    514516            headers = [headers]
    515517        self.headers = headers
    516518        super(TestIfHeaderComposer, self).__init__(testName, fileFragments,
    517                                                    runTest = runTest, netTest = netTest)
     519                                                   runTest = runTest, netTest = netTest,
     520                                                   extraLibs = extraLibs)
    518521
    519522    def compose(self, path):
Note: See TracChangeset for help on using the changeset viewer.