Changeset 33d82be1 in rtems-libbsd for waf_generator.py


Ignore:
Timestamp:
Jun 27, 2017, 6:34:53 AM (2 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
c1e05b9ea378b2971e3d7704779112b4bc4296da, 4a77611a223ea883fb548679b516d326a020d447
Children:
9cc419f
Parents:
e846288
git-author:
Sebastian Huber <sebastian.huber@…> (06/27/17 06:34:53)
git-committer:
Sebastian Huber <sebastian.huber@…> (10/23/17 07:24:06)
Message:

waf: Install arch-specific header files

File:
1 edited

Legend:

Unmodified
Added
Removed
  • waf_generator.py

    re846288 r33d82be1  
    181181            d['includes'] = self.includes
    182182        return ['yacc', path, ('default', None)], d
     183
     184def headerPathSpec(headerPath):
     185    return '(\'%s\', \'%s\', \'%s\')' % (headerPath[0], headerPath[1], headerPath[2])
    183186
    184187# Module Manager - Collection of Modules
     
    645648        self.add('    bld.install_files("${PREFIX}/" + rtems.arch_bsp_lib_path(bld.env.RTEMS_VERSION, bld.env.RTEMS_ARCH_BSP), ["libbsd.a"])')
    646649        headerPaths = builder.headerPaths()
    647         self.add('    header_paths = [%s,' % (str(headerPaths[0])))
     650        self.add('    header_paths = [%s,' % (headerPathSpec(headerPaths[0])))
    648651        for hp in headerPaths[1:-1]:
    649             self.add('                     %s,' % (str(hp)))
    650         self.add('                     %s]' % (str(headerPaths[-1])))
     652            self.add('                     %s,' % (headerPathSpec(hp)))
     653        self.add('                     %s]' % (headerPathSpec(headerPaths[-1])))
    651654        self.add('    for headers in header_paths:')
    652655        self.add('        ipath = os.path.join(rtems.arch_bsp_include_path(bld.env.RTEMS_VERSION, bld.env.RTEMS_ARCH_BSP), headers[2])')
Note: See TracChangeset for help on using the changeset viewer.