summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta-oe/recipes-devtools/protobuf/protobuf_3.5.1.bb7
1 files changed, 5 insertions, 2 deletions
diff --git a/meta-oe/recipes-devtools/protobuf/protobuf_3.5.1.bb b/meta-oe/recipes-devtools/protobuf/protobuf_3.5.1.bb
index 1ffb79da71..073dfaef05 100644
--- a/meta-oe/recipes-devtools/protobuf/protobuf_3.5.1.bb
+++ b/meta-oe/recipes-devtools/protobuf/protobuf_3.5.1.bb
@@ -12,7 +12,7 @@ DEPENDS = "zlib"
12DEPENDS_append_class-target = " protobuf-native" 12DEPENDS_append_class-target = " protobuf-native"
13RDEPENDS_${PN}-compiler = "${PN}" 13RDEPENDS_${PN}-compiler = "${PN}"
14RDEPENDS_${PN}-dev += "${PN}-compiler" 14RDEPENDS_${PN}-dev += "${PN}-compiler"
15RDEPENDS_${PN}-ptest = "bash python-protobuf" 15RDEPENDS_${PN}-ptest = "bash ${@bb.utils.contains('PACKAGECONFIG', 'python', 'python-protobuf', '', d)}"
16 16
17LIC_FILES_CHKSUM = "file://LICENSE;md5=35953c752efc9299b184f91bef540095" 17LIC_FILES_CHKSUM = "file://LICENSE;md5=35953c752efc9299b184f91bef540095"
18 18
@@ -24,13 +24,16 @@ SRC_URI = "git://github.com/google/protobuf.git;branch=3.5.x \
24 file://run-ptest \ 24 file://run-ptest \
25 " 25 "
26 26
27PACKAGECONFIG ??= ""
28PACKAGECONFIG[python] = ",,"
29
27EXTRA_OECONF += " --with-protoc=echo" 30EXTRA_OECONF += " --with-protoc=echo"
28 31
29inherit autotools-brokensep pkgconfig ptest 32inherit autotools-brokensep pkgconfig ptest
30 33
31S = "${WORKDIR}/git" 34S = "${WORKDIR}/git"
32TEST_SRC_DIR="examples" 35TEST_SRC_DIR="examples"
33LANG_SUPPORT="cpp python" 36LANG_SUPPORT = "cpp ${@bb.utils.contains('PACKAGECONFIG', 'python', 'python', '', d)}"
34 37
35do_compile_ptest() { 38do_compile_ptest() {
36 # Modify makefile to use the cross-compiler 39 # Modify makefile to use the cross-compiler