Copy .o and .ar files for when building static library (needed for uVisor for example)

Mihail Stoyanov 2016-05-04 12:06:57 +01:00
parent ba31ed0550
commit 34ec8297a4
1 changed files with 3 additions and 1 deletions

View File

@ -272,9 +272,11 @@ def build_library(src_paths, build_path, target, toolchain_name,
else:
tmp_path = build_path
# Copy Headers
# Copy headers, objects and static libraries
for resource in resources:
toolchain.copy_files(resource.headers, build_path, rel_path=resource.base_path)
toolchain.copy_files(resource.objects, build_path, rel_path=resource.base_path)
toolchain.copy_files(resource.libraries, build_path, rel_path=resource.base_path)
if resource.linker_script:
toolchain.copy_files(resource.linker_script, build_path, rel_path=resource.base_path)