[Spice-devel] [spice-protocol 1/4] build-sys: Import code generation files from spice-common

Frediano Ziglio fziglio at redhat.com
Fri Jul 10 08:07:32 PDT 2015


> 
> This is in preparation for shipping these files as part of
> spice-protocol, and allow spice-common to stop using spice-protocol as a
> submodule. The reason for moving them there is in order to be able to
> automatically regenerate enums.h when spice.proto changes.
> 
> This commit is just a placeholder so that a patch series can be sent.
> The actual commit is a merge commit of a repository created with git
> filter-branch on spice-common to only keep the relevant files:
> 
> git filter-branch \
>     --prune-empty \
>     --index-filter '
>         git ls-tree -z -r --name-only --full-tree $GIT_COMMIT \
>         | grep -z -v "^python_modules/" \
>         | grep -z -v "^spice.proto" \
>         | grep -z -v "^spice1.proto" \
>         | grep -z -v "^spice_codegen.py" \
>         | xargs -0 -r git rm -f --cached -r
>     ' \
>     -- \
>     --all
> 
> git filter-branch --force \
>     --prune-empty
>     --index-filter '
>         git rm -f spice-protocol --cached  --ignore-unmatch
>     ' \
>     -- \
>     --all
> ---
>  python_modules/Makefile.am     |   16 +
>  python_modules/__init__.py     |    0
>  python_modules/codegen.py      |  378 +++++++++++
>  python_modules/demarshal.py    | 1270 ++++++++++++++++++++++++++++++++++++
>  python_modules/marshal.py      |  427 ++++++++++++
>  python_modules/ptypes.py       | 1061 ++++++++++++++++++++++++++++++
>  python_modules/spice_parser.py |  162 +++++
>  spice.proto                    | 1388
>  ++++++++++++++++++++++++++++++++++++++++
>  spice1.proto                   |  943 +++++++++++++++++++++++++++
>  9 files changed, 5645 insertions(+)
>  create mode 100644 python_modules/Makefile.am
>  create mode 100644 python_modules/__init__.py
>  create mode 100644 python_modules/codegen.py
>  create mode 100644 python_modules/demarshal.py
>  create mode 100644 python_modules/marshal.py
>  create mode 100644 python_modules/ptypes.py
>  create mode 100644 python_modules/spice_parser.py
>  create mode 100644 spice.proto
>  create mode 100644 spice1.proto
> 

... omissis ...

Mainly a copy from spice-server to spice-protocol. Could you move the history of the files too ?

Frediano


More information about the Spice-devel mailing list