copy dependency's out files only if they are newer or don't exist
This commit is contained in:
parent
912b348f57
commit
6126001e5a
@ -90,10 +90,10 @@ function build_dependency {
|
||||
if [ "$PRESERVE_OUT_DIRECTORY_STRUCTURE" = true ] && [ "$file_dir" != '.' ]; then
|
||||
mkdir -p "$proj_root_dir/$OUTDIR/$file_dir"
|
||||
mkdir -p "$proj_root_dir/$OBJDIR/dynamic_libs/$file_dir"
|
||||
cp -v "$file" "$proj_root_dir/$OUTDIR/$file"
|
||||
cp -v -u --preserve=timestamps "$file" "$proj_root_dir/$OUTDIR/$file"
|
||||
ln -sfv "$real_file" "$proj_root_dir/$OBJDIR/dynamic_libs/$file"
|
||||
else
|
||||
cp -v "$file" "$proj_root_dir/$OUTDIR/"
|
||||
cp -v -u --preserve=timestamps "$file" "$proj_root_dir/$OUTDIR/"
|
||||
ln -sfv "$real_file" "$proj_root_dir/$OBJDIR/dynamic_libs/"
|
||||
fi
|
||||
done
|
||||
@ -104,9 +104,9 @@ function build_dependency {
|
||||
if [ "$PRESERVE_OUT_DIRECTORY_STRUCTURE" = true ]; then
|
||||
file_dir=$(dirname $file)
|
||||
mkdir -p "$proj_root_dir/$OUTDIR/$file_dir"
|
||||
cp -v "$file" "$proj_root_dir/$OUTDIR/$file"
|
||||
cp -v -u --preserve=timestamps "$file" "$proj_root_dir/$OUTDIR/$file"
|
||||
else
|
||||
cp -v "$file" "$proj_root_dir/$OUTDIR/"
|
||||
cp -v -u --preserve=timestamps "$file" "$proj_root_dir/$OUTDIR/"
|
||||
fi
|
||||
done
|
||||
fi
|
||||
|
||||
Loading…
Reference in New Issue
Block a user