修正lib导出方式

Signed-off-by: a1012112796 <1012112796@qq.com>
This commit is contained in:
2021-09-06 20:08:35 +08:00
parent ea9ef7c75a
commit b259cb77f7
2 changed files with 3 additions and 14 deletions

View File

@@ -48,19 +48,7 @@ class SharelibHandler:
def __export_lib(self, dist_path, path, libs):
for lib in libs:
libFile = path +'/lib' + lib + '.a'
libExist = False
if os.path.isfile(libFile):
shutil.copy(libFile, dist_path)
libExist = True
libFile = path +'/lib' + lib + '.lib'
if os.path.isfile(libFile):
shutil.copy(libFile, dist_path)
libExist = True
if libExist:
self._LIB_LIST.append(lib)
self._LIB_LIST.append(lib)
def __export_headers(self, dist_path, group, path, headers, all, need_path = True):
dst = os.path.join(dist_path, group)