summaryrefslogtreecommitdiffstats
path: root/meta-oe/dynamic-layers/meta-python/recipes-devtools/nanopb/nanopb-runtime_0.4.9.bb
blob: e43931a4ec5dd3dfce9e57d85d33ab65ac0f65e1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
require nanopb.inc

EXTRA_OECMAKE += " \
  -Dnanopb_PROTOC_PATH=/bin/false \
  -DBUILD_SHARED_LIBS=ON \
  -Dnanopb_BUILD_RUNTIME=ON \
  -Dnanopb_BUILD_GENERATOR=OFF \
  "

# Maintain compatability with old header locations for packages
# which haven't yet migrated to `nanopb/pb*.h`
do_install:append() {
  for hdr in ${D}${includedir}/nanopb/*; do
	ln -sv nanopb/$(basename "$hdr") ${D}${includedir}/
  done
}