Common implementation for add_library and add_installed_library. Do not use directly
(self, name, sources, install_dir, build_info)
| 1579 | ' it may be too late to add a library '+ name) |
| 1580 | |
| 1581 | def _add_library(self, name, sources, install_dir, build_info): |
| 1582 | """Common implementation for add_library and add_installed_library. Do |
| 1583 | not use directly""" |
| 1584 | build_info = copy.copy(build_info) |
| 1585 | build_info['sources'] = sources |
| 1586 | |
| 1587 | # Sometimes, depends is not set up to an empty list by default, and if |
| 1588 | # depends is not given to add_library, distutils barfs (#1134) |
| 1589 | if not 'depends' in build_info: |
| 1590 | build_info['depends'] = [] |
| 1591 | |
| 1592 | self._fix_paths_dict(build_info) |
| 1593 | |
| 1594 | # Add to libraries list so that it is build with build_clib |
| 1595 | self.libraries.append((name, build_info)) |
| 1596 | |
| 1597 | def add_installed_library(self, name, sources, install_dir, build_info=None): |
| 1598 | """ |
no test coverage detected