diff options
| author | Anuj Mittal <anuj.mittal@intel.com> | 2020-09-09 13:22:18 +0800 |
|---|---|---|
| committer | Anuj Mittal <anuj.mittal@intel.com> | 2020-09-09 15:10:59 +0800 |
| commit | cc1a6ac6df7bca6fc05422945ac7f3f1aa6af606 (patch) | |
| tree | 5dfdfdca07b93cb61618649b773d87f4f36da5cd /recipes-multimedia | |
| parent | 58ce85f09cf28636a809891b254754c041c987b4 (diff) | |
| download | meta-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>
Diffstat (limited to 'recipes-multimedia')
| -rw-r--r-- | recipes-multimedia/mediasdk/intel-mediasdk_20.2.1.bb | 17 |
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 37848941..a9e68f87 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" | |||
| 20 | DEPENDS += "libdrm libva intel-media-driver" | 20 | DEPENDS += "libdrm libva intel-media-driver" |
| 21 | 21 | ||
| 22 | PACKAGECONFIG ??= "${@bb.utils.contains("DISTRO_FEATURES", "x11", "dri3", "", d)} \ | 22 | PACKAGECONFIG ??= "${@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 | ||
| 25 | PACKAGECONFIG[dri3] = "-DENABLE_X11_DRI3=ON, -DENABLE_X11_DRI3=OFF" | 27 | PACKAGECONFIG[dri3] = "-DENABLE_X11_DRI3=ON, -DENABLE_X11_DRI3=OFF" |
| 28 | PACKAGECONFIG[samples] = "-DBUILD_SAMPLES=ON, -DBUILD_SAMPLES=OFF" | ||
| 26 | PACKAGECONFIG[wayland] = "-DENABLE_WAYLAND=ON, -DENABLE_WAYLAND=OFF, wayland wayland-native" | 29 | PACKAGECONFIG[wayland] = "-DENABLE_WAYLAND=ON, -DENABLE_WAYLAND=OFF, wayland wayland-native" |
| 27 | 30 | ||
| 28 | SRC_URI = "git://github.com/Intel-Media-SDK/MediaSDK.git;protocol=https;branch=${BPN}-20.2;lfs=0" | 31 | SRC_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 | ||
| 34 | inherit cmake pkgconfig | 37 | inherit cmake pkgconfig |
| 35 | 38 | ||
| 36 | EXTRA_OECMAKE += "-DMFX_INCLUDE=${S}/api/include -DBUILD_SAMPLES=OFF" | 39 | EXTRA_OECMAKE += "-DMFX_INCLUDE=${S}/api/include" |
| 40 | |||
| 41 | do_install_append() { | ||
| 42 | mv ${D}${datadir}/mfx/samples ${D}${libdir}/mfx/samples | ||
| 43 | } | ||
| 44 | |||
| 45 | PACKAGE_BEFORE_PN = " ${PN}-samples" | ||
| 37 | 46 | ||
| 38 | FILES_${PN} += " \ | 47 | FILES_${PN} += " \ |
| 39 | ${libdir}/mfx \ | 48 | ${libdir}/mfx \ |
| 40 | ${datadir}/mfx/plugins.cfg \ | 49 | ${datadir}/mfx/plugins.cfg \ |
| 41 | " | 50 | " |
| 51 | |||
| 52 | FILES_${PN}-samples = "${libdir}/mfx/samples" | ||
| 53 | |||
| 54 | INSANE_SKIP_${PN}-samples += "staticdev" | ||
