summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnuj Mittal <anuj.mittal@intel.com>2020-09-09 05:22:18 (GMT)
committerAnuj Mittal <anuj.mittal@intel.com>2020-09-09 07:10:59 (GMT)
commitcc1a6ac6df7bca6fc05422945ac7f3f1aa6af606 (patch)
tree5dfdfdca07b93cb61618649b773d87f4f36da5cd
parent58ce85f09cf28636a809891b254754c041c987b4 (diff)
downloadmeta-intel-cc1a6ac6df7bca6fc05422945ac7f3f1aa6af606.tar.gz
intel-mediasdk: add PACKAGECONFIG for samples
Enable samples to be built by default and package them separately. Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
-rw-r--r--recipes-multimedia/mediasdk/intel-mediasdk_20.2.1.bb17
1 files changed, 15 insertions, 2 deletions
diff --git a/recipes-multimedia/mediasdk/intel-mediasdk_20.2.1.bb b/recipes-multimedia/mediasdk/intel-mediasdk_20.2.1.bb
index 3784894..a9e68f8 100644
--- a/recipes-multimedia/mediasdk/intel-mediasdk_20.2.1.bb
+++ b/recipes-multimedia/mediasdk/intel-mediasdk_20.2.1.bb
@@ -20,9 +20,12 @@ REQUIRED_DISTRO_FEATURES = "opengl"
20DEPENDS += "libdrm libva intel-media-driver" 20DEPENDS += "libdrm libva intel-media-driver"
21 21
22PACKAGECONFIG ??= "${@bb.utils.contains("DISTRO_FEATURES", "x11", "dri3", "", d)} \ 22PACKAGECONFIG ??= "${@bb.utils.contains("DISTRO_FEATURES", "x11", "dri3", "", d)} \
23 ${@bb.utils.contains("DISTRO_FEATURES", "wayland", "wayland", "", d)}" 23 ${@bb.utils.contains("DISTRO_FEATURES", "wayland", "wayland", "", d)} \
24 samples \
25 "
24 26
25PACKAGECONFIG[dri3] = "-DENABLE_X11_DRI3=ON, -DENABLE_X11_DRI3=OFF" 27PACKAGECONFIG[dri3] = "-DENABLE_X11_DRI3=ON, -DENABLE_X11_DRI3=OFF"
28PACKAGECONFIG[samples] = "-DBUILD_SAMPLES=ON, -DBUILD_SAMPLES=OFF"
26PACKAGECONFIG[wayland] = "-DENABLE_WAYLAND=ON, -DENABLE_WAYLAND=OFF, wayland wayland-native" 29PACKAGECONFIG[wayland] = "-DENABLE_WAYLAND=ON, -DENABLE_WAYLAND=OFF, wayland wayland-native"
27 30
28SRC_URI = "git://github.com/Intel-Media-SDK/MediaSDK.git;protocol=https;branch=${BPN}-20.2;lfs=0" 31SRC_URI = "git://github.com/Intel-Media-SDK/MediaSDK.git;protocol=https;branch=${BPN}-20.2;lfs=0"
@@ -33,9 +36,19 @@ UPSTREAM_CHECK_GITTAGREGEX = "^intel-mediasdk-(?P<pver>(\d+(\.\d+)+))$"
33 36
34inherit cmake pkgconfig 37inherit cmake pkgconfig
35 38
36EXTRA_OECMAKE += "-DMFX_INCLUDE=${S}/api/include -DBUILD_SAMPLES=OFF" 39EXTRA_OECMAKE += "-DMFX_INCLUDE=${S}/api/include"
40
41do_install_append() {
42 mv ${D}${datadir}/mfx/samples ${D}${libdir}/mfx/samples
43}
44
45PACKAGE_BEFORE_PN = " ${PN}-samples"
37 46
38FILES_${PN} += " \ 47FILES_${PN} += " \
39 ${libdir}/mfx \ 48 ${libdir}/mfx \
40 ${datadir}/mfx/plugins.cfg \ 49 ${datadir}/mfx/plugins.cfg \
41 " 50 "
51
52FILES_${PN}-samples = "${libdir}/mfx/samples"
53
54INSANE_SKIP_${PN}-samples += "staticdev"