[Android] [PATCH] Reduce download time for contribs for compilation process

Geoffrey Métais geoffrey.metais at gmail.com
Thu Feb 19 17:11:09 CET 2015


LGTM

On Thu, Feb 19, 2015 at 5:03 PM, Jérémy Carrier <carrier.jerem at free.fr>
wrote:

> Hi,
>
> I encounter a lot of troubles since the last few days to compile libvlc
> for x86.
> As the compilation process is very long, I would suggest this slight
> modification if possible.
> It fetches the last commit only on each contrib repository, allowing
> faster download, and thus, faster compilation.
> The following patch applies to the vlc repository.
>
> This is my first patch-email ever, sorry if by any chance, I outbroke any
> custom.
>
> BR
> Jeremy
>
> ---
>
> Commit message:
>
> Fetch the last commit only for each contrib repository.
> Drop the whole commits tree.
> Speed up download process.
>
> diff --git a/contrib/src/main.mak b/contrib/src/main.mak
> index fdeeba9..a3b98c0 100644
> --- a/contrib/src/main.mak
> +++ b/contrib/src/main.mak
> @@ -296,7 +296,7 @@ HOSTVARS_PIC := $(HOSTTOOLS) \
>
>  download_git = \
>         rm -Rf $(@:.tar.xz=) && \
> -       $(GIT) clone $(2:%=--branch %) $(1) $(@:.tar.xz=) && \
> +       $(GIT) clone --depth 1 $(2:%=--branch %) $(1) $(@:.tar.xz=) && \
>         (cd $(@:.tar.xz=) && $(GIT) checkout $(3:%= %)) && \
>         rm -Rf $(@:%.tar.xz=%)/.git && \
>         (cd $(dir $@) && \
>
> _______________________________________________
> Android mailing list
> Android at videolan.org
> https://mailman.videolan.org/listinfo/android
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/android/attachments/20150219/deeef6d7/attachment.html>


More information about the Android mailing list