Skip to content

Commit

Permalink
[Recipe/NNStreamer] Fix indentation according to Format Guide
Browse files Browse the repository at this point in the history
This patch fixes indentation in the bitbake recipe of nnstreamer
according to 'Format Guide' in Openembedded's Styleguide [1].

[1] https://www.openembedded.org/wiki/Styleguide

Signed-off-by: Wook Song <[email protected]>
  • Loading branch information
wooksong authored and jijoongmoon committed Apr 18, 2019
1 parent 882e906 commit 96f4a45
Showing 1 changed file with 34 additions and 20 deletions.
54 changes: 34 additions & 20 deletions recipes-nnstreamer/nnstreamer/nnstreamer_0.1.2.bb
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,11 @@ SUMMARY = "NNStreamer, Stream Pipeline Paradigm for Nerual Network Applications"
DESCRIPTION = "NNStreamer is a GStreamer plugin allowing to construct neural network applications with stream pipeline paradigm."
SECTION = "AI"
LICENSE = "LGPLv2+"
LIC_FILES_CHKSUM = "file://LICENSE;md5=a6f89e2100d9b6cdffcea4f398e37343 \
file://tizen-api/LICENSE.Apache-2.0;md5=d3ae35440dea13087a83d59100346a44 \
file://debian/copyright;md5=0462ef8fa89a1f53f2e65e74940519ef"
LIC_FILES_CHKSUM = "\
file://LICENSE;md5=a6f89e2100d9b6cdffcea4f398e37343 \
file://tizen-api/LICENSE.Apache-2.0;md5=d3ae35440dea13087a83d59100346a44 \
file://debian/copyright;md5=0462ef8fa89a1f53f2e65e74940519ef \
"

DEPENDS = "glib-2.0 gstreamer1.0 gstreamer1.0-plugins-base gtest"

Expand All @@ -17,14 +19,19 @@ S = "${WORKDIR}/git"

inherit meson pkgconfig

EXTRA_OEMESON += "-Denable-test=true \
-Dinstall-test=true \
-Denable-tensorflow-mem-optmz=false \
-Dinstall-example=true \
-Ddisable-audio-support=false \
"
EXTRA_OEMESON += "\
-Denable-test=true \
-Dinstall-test=true \
-Denable-tensorflow-mem-optmz=false \
-Dinstall-example=true \
-Ddisable-audio-support=false \
"

PACKAGECONFIG ??= "${@bb.utils.contains('DISTRO_FEATURES','opencv','opencv','',d)} ${@bb.utils.contains('DISTRO_FEATURES','tensorflow','tensorflow','',d)} ${@bb.utils.contains('DISTRO_FEATURES','tensorflow-lite','tensorflow-lite','',d)}"
PACKAGECONFIG ??= "\
${@bb.utils.contains('DISTRO_FEATURES','opencv','opencv','',d)} \
${@bb.utils.contains('DISTRO_FEATURES','tensorflow','tensorflow','',d)} \
${@bb.utils.contains('DISTRO_FEATURES','tensorflow-lite','tensorflow-lite','',d)} \
"

PACKAGECONFIG[opencv] = "-Denable-opencv-test=true,-Denable-opencv-test=false,opencv"
PACKAGECONFIG[tensorflow] = "-Denable-tensorflow=true,-Denable-tensorflow=false,tensorflow"
Expand All @@ -35,21 +42,28 @@ do_install_append() {
}
INSANE_SKIP_${PN} += "dev-so"

FILES_${PN} += "${libdir}/*.so \
${libdir}/gstreamer-1.0/*.so \
${libdir}/nnstreamer/filters/* \
${libdir}/nnstreamer/decoders/* \
${sysconfdir}/nnstreamer.ini "
FILES_${PN} += "\
${libdir}/*.so \
${libdir}/gstreamer-1.0/*.so \
${libdir}/nnstreamer/* \
${libdir}/nnstreamer/filters/* \
${libdir}/nnstreamer/decoders/* \
${sysconfdir}/nnstreamer.ini \
"

PACKAGES =+ "${PN}-unittest"

FILES_${PN}-unittest += "${libdir}/nnstreamer/customfilters/* \
${libdir}/nnstreamer/unittest/* "
FILES_${PN}-unittest += "\
${libdir}/nnstreamer/customfilters/* \
${libdir}/nnstreamer/unittest/* \
"

RDEPENDS_${PN}-unittest = "nnstreamer gstreamer1.0-plugins-good gtest python3-numpy python3-math ssat"

RDEPENDS_${PN} = "glib-2.0 gstreamer1.0 gstreamer1.0-plugins-base"

FILES_${PN}-dev += "${includedir}/nnstreamer/* \
${libdir}/*.a \
${libdir}/pkgconfig/nnstreamer.pc"
FILES_${PN}-dev += "\
${includedir}/nnstreamer/* \
${libdir}/*.a \
${libdir}/pkgconfig/nnstreamer.pc \
"

0 comments on commit 96f4a45

Please sign in to comment.