@@ -709,11 +709,12 @@ def GroupLibFullName(name, env):
|
||||
return env['LIBPREFIX'] + name + env['LIBSUFFIX']
|
||||
|
||||
def BuildLibInstallAction(target, source, env):
|
||||
import rtconfig
|
||||
lib_name = GetOption('buildlib')
|
||||
for Group in Projects:
|
||||
if Group['name'] == lib_name:
|
||||
lib_name = GroupLibFullName(Group['name'], env)
|
||||
dst_name = os.path.join(Group['path'], lib_name)
|
||||
dst_name = os.path.join(rtconfig.SHARE_LIB_PATH, Group['name'], lib_name)
|
||||
print('Copy '+lib_name+' => ' + dst_name)
|
||||
do_copy_file(lib_name, dst_name)
|
||||
break
|
||||
|
14
sharelib.py
14
sharelib.py
@@ -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)
|
||||
|
Reference in New Issue
Block a user