From 7b424fa19e7a8d3aaac9e7535ee113efc4931765 Mon Sep 17 00:00:00 2001 From: Keith Holman Date: Wed, 20 Aug 2014 16:46:08 -0400 Subject: protobuf: add python support The compiler generated by Google Protocol Buffers currently includes support for Python bindings. However, currently the python files required to use the generated files are not included on the system. This fix installs the python header files using python setup-tools after the compiler is built. Signed-off-by: Keith Holman Signed-off-by: Bruce Ashfield --- recipes-containers/criu/protobuf_2.5.0.bb | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) (limited to 'recipes-containers/criu') diff --git a/recipes-containers/criu/protobuf_2.5.0.bb b/recipes-containers/criu/protobuf_2.5.0.bb index 4a90b2c6..a9a26d88 100644 --- a/recipes-containers/criu/protobuf_2.5.0.bb +++ b/recipes-containers/criu/protobuf_2.5.0.bb @@ -13,8 +13,22 @@ PR = "r0" SRC_URI[md5sum] = "b751f772bdeb2812a2a8e7202bf1dae8" SRC_URI[sha256sum] = "c55aa3dc538e6fd5eaf732f4eb6b98bdcb7cedb5b91d3b5bdcf29c98c293f58e" SRC_URI = "http://protobuf.googlecode.com/files/protobuf-${PV}.tar.gz" +PYTHON_SRC_DIR="python" EXTRA_OECONF += " --with-protoc=echo" -inherit autotools +inherit autotools setuptools + +do_compile() { + # Compile protoc compiler + base_do_compile +} + +do_install() { + # Install protoc compiler + autotools_do_install + # Install header files + cd "${PYTHON_SRC_DIR}" + distutils_do_install +} BBCLASSEXTEND = "native nativesdk" -- cgit v1.2.3-54-g00ecf