build-sys: Install code generation data/scripts

spice-common generate code from these python scripts and the installed
SPICE .proto. This commit installs them during make install, and adds a
codegendir variable to the pkgconfig file so that spice-common can
locate the scripts.
This commit is contained in:
Christophe Fergeau 2015-07-06 18:20:15 +02:00
parent 2b9d15c1d3
commit 1830e216c4
2 changed files with 10 additions and 9 deletions

View File

@ -1,16 +1,15 @@
NULL =
PYTHON_MODULES = \
__init__.py \
codegen.py \
demarshal.py \
marshal.py \
ptypes.py \
spice_parser.py \
python_codegendir = $(libdir)/spice-protocol/python_modules
dist_python_codegen_DATA = \
__init__.py \
codegen.py \
demarshal.py \
marshal.py \
ptypes.py \
spice_parser.py \
$(NULL)
EXTRA_DIST = $(PYTHON_MODULES)
DISTCLEANFILES = *.pyc
-include $(top_srcdir)/git.mk

View File

@ -1,5 +1,7 @@
prefix=@prefix@
exec_prefix=@exec_prefix@
includedir=@includedir@
codegendir=@libdir@/spice-protocol
Name: spice-protocol
Description: SPICE protocol headers