@after_method('apply_link')
@feature('hwaf_export_lib')
def hwaf_export_lib(self):
    # extract package name
    pkgdir = self.path.abspath()
    pkgname = self.bld.hwaf_pkg_name(pkgdir)
    b_pkgname = osp.basename(pkgname)
    if not hasattr(self, 'link_task'):
        msg.debug('hwaf: task [%s] has no link_task' % self.name)
        return

    uses = [self.name] + waflib.Utils.to_list(getattr(self, 'use', []))
    self.bld.env.append_unique('LIB_%s' % self.name, uses)
    #self.env.append_unique('LIB_%s' % self.name, uses)
    #msg.debug('hwaf: export-lib: %s => %r' % (self.name, uses))
    return

### -----------------------------------------------------------------------------
A task to properly export a library definition.
dataset/ETHPy150Open hwaf/hwaf/py-hwaftools/hwaf-rules.py/hwaf_export_lib