diff options
-rw-r--r-- | meta-oe/recipes-devtools/protobuf/protobuf_3.5.1.bb | 7 |
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" | |||
12 | DEPENDS_append_class-target = " protobuf-native" | 12 | DEPENDS_append_class-target = " protobuf-native" |
13 | RDEPENDS_${PN}-compiler = "${PN}" | 13 | RDEPENDS_${PN}-compiler = "${PN}" |
14 | RDEPENDS_${PN}-dev += "${PN}-compiler" | 14 | RDEPENDS_${PN}-dev += "${PN}-compiler" |
15 | RDEPENDS_${PN}-ptest = "bash python-protobuf" | 15 | RDEPENDS_${PN}-ptest = "bash ${@bb.utils.contains('PACKAGECONFIG', 'python', 'python-protobuf', '', d)}" |
16 | 16 | ||
17 | LIC_FILES_CHKSUM = "file://LICENSE;md5=35953c752efc9299b184f91bef540095" | 17 | LIC_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 | ||
27 | PACKAGECONFIG ??= "" | ||
28 | PACKAGECONFIG[python] = ",," | ||
29 | |||
27 | EXTRA_OECONF += " --with-protoc=echo" | 30 | EXTRA_OECONF += " --with-protoc=echo" |
28 | 31 | ||
29 | inherit autotools-brokensep pkgconfig ptest | 32 | inherit autotools-brokensep pkgconfig ptest |
30 | 33 | ||
31 | S = "${WORKDIR}/git" | 34 | S = "${WORKDIR}/git" |
32 | TEST_SRC_DIR="examples" | 35 | TEST_SRC_DIR="examples" |
33 | LANG_SUPPORT="cpp python" | 36 | LANG_SUPPORT = "cpp ${@bb.utils.contains('PACKAGECONFIG', 'python', 'python', '', d)}" |
34 | 37 | ||
35 | do_compile_ptest() { | 38 | do_compile_ptest() { |
36 | # Modify makefile to use the cross-compiler | 39 | # Modify makefile to use the cross-compiler |