summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristophe Fergeau <cfergeau@redhat.com>2015-07-06 18:20:15 +0200
committerChristophe Fergeau <cfergeau@redhat.com>2015-08-07 11:54:48 +0200
commit1830e216c447585afca6d02462f59720a80e8bbc (patch)
treeb73320ca0c2b5801bea3cd691f887210cb31c451
parent2b9d15c1d3c8d17e0b9867a47887f2f676994015 (diff)
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.
-rw-r--r--python_modules/Makefile.am17
-rw-r--r--spice-protocol.pc.in2
2 files changed, 10 insertions, 9 deletions
diff --git a/python_modules/Makefile.am b/python_modules/Makefile.am
index 50e1a71..3a4515a 100644
--- a/python_modules/Makefile.am
+++ b/python_modules/Makefile.am
@@ -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
diff --git a/spice-protocol.pc.in b/spice-protocol.pc.in
index c7e76cd..173781a 100644
--- a/spice-protocol.pc.in
+++ b/spice-protocol.pc.in
@@ -1,5 +1,7 @@
prefix=@prefix@
+exec_prefix=@exec_prefix@
includedir=@includedir@
+codegendir=@libdir@/spice-protocol
Name: spice-protocol
Description: SPICE protocol headers