If static or shared libraries are available then return their info dictionary. Checks for all libraries as shared libraries first, then static (or vice versa if self.search_static_first is True).
(self, lib_dirs, libs, opt_libs=[])
| 983 | return exts |
| 984 | |
| 985 | def check_libs(self, lib_dirs, libs, opt_libs=[]): |
| 986 | """If static or shared libraries are available then return |
| 987 | their info dictionary. |
| 988 | |
| 989 | Checks for all libraries as shared libraries first, then |
| 990 | static (or vice versa if self.search_static_first is True). |
| 991 | """ |
| 992 | exts = self.library_extensions() |
| 993 | info = None |
| 994 | for ext in exts: |
| 995 | info = self._check_libs(lib_dirs, libs, opt_libs, [ext]) |
| 996 | if info is not None: |
| 997 | break |
| 998 | if not info: |
| 999 | log.info(' libraries %s not found in %s', ','.join(libs), |
| 1000 | lib_dirs) |
| 1001 | return info |
| 1002 | |
| 1003 | def check_libs2(self, lib_dirs, libs, opt_libs=[]): |
| 1004 | """If static or shared libraries are available then return |
no test coverage detected