Skip to content
Snippets Groups Projects
Commit c1208c51 authored by Shubham Talekar's avatar Shubham Talekar
Browse files

packagegroup changes made for compilation of video

Change-Id: I3845beeb20bb8376548648b87bd4bd17ad0b00c1
inherit autotools pkgconfig sdllvm
inherit autotools pkgconfig
DESCRIPTION = "media"
......@@ -13,75 +13,69 @@ S = "${WORKDIR}/hardware/qcom/media"
DEPENDS = "adreno200"
DEPENDS += "display-hal-linux"
DEPENDS += "system-media"
DEPENDS += "av-frameworks"
DEPENDS += "glib-2.0"
DEPENDS += "libcutils"
DEPENDS += "media-headers"
DEPENDS += "libutils"
DEPENDS += "binder"
DEPENDS += "system-core"
DEPENDS += "virtual/kernel"
DEPENDS += "libion"
# 8017 need display-hal-linux to compile
DEPENDS_append_apq8017 += "display-hal-linux"
# 8909 don't need dispaly-ha to compile.
DEPENDS_remove_msm8909 = "display-hal mm-video-noship av-frameworks adreno200"
DEPENDS_remove_apq8017 = "display-hal mm-video-noship"
RDEPENDS_${PN} += "system-media glib-2.0 libcutils libutils system-core binder"
DEPENDS += "libbase"
DEPENDS += "libbase"
DEPENDS += "expat"
PACKAGECONFIG ??= "glib \
ion \
gbm \
${@bb.utils.contains('MACHINE_FEATURES', 'ubwc', 'ubwc', '', d)} \
${@bb.utils.contains('DISTRO_FEATURES', 'qti-video-encoder', 'mm-venc', '', d)} \
${@bb.utils.contains('DISTRO_FEATURES', 'qti-video-decoder', 'mm-vdec', '', d)} \
${@bb.utils.contains('MACHINE_FEATURES', 'hypervisor', 'hypervisor', '', d)} \
${@bb.utils.contains('MACHINE_FEATURES', 'vqzip', 'vqzip', '', d)} \
"
PACKAGECONFIG[mm-venc] = "--enable-venc, --disable-venc"
PACKAGECONFIG[mm-vdec] = "--enable-vdec, --disable-vdec"
PACKAGECONFIG[glib] = "--enable-use-glib, --disable-use-glib, glib-2.0, glib-2.0"
PACKAGECONFIG[media-extensions] = "--enable-target-uses-media-extensions, --disable-target-uses-media-extensions"
PACKAGECONFIG[vqzip] = "--enable-targets-that-support-vqzip, --disable-targets-that-support-vqzip"
PACKAGECONFIG[ubwc] = "--enable-is-ubwc-supported, --disable-is-ubwc-supported"
PACKAGECONFIG[gbm] = "--enable-targets-use-libgbm, --disable-targets-use-libgbm"
PACKAGECONFIG[ion] = "--enable-target-uses-ion, --disable-target-uses-ion"
PACKAGECONFIG[hypervisor] = "--enable-target-hypervisor, --disable-target-hypervisor"
PACKAGECONFIG[master-side-cp] = "--enable-master-side-cp-target-list, --disable-master-side-cp-target-list"
RDEPENDS_${PN} += "glib-2.0 libcutils libutils libbase binder display-hal-linux expat"
CXXFLAGS += "-Wno-format-truncation"
do_configure[depends] += "virtual/kernel:do_shared_workdir"
# configure features
EXTRA_OECONF_append =" --enable-use-glib="yes""
EXTRA_OECONF_append =" --enable-target-uses-ion="yes""
EXTRA_OECONF_append =" --enable-target-${SOC_FAMILY}="yes""
EXTRA_OECONF_append =" --enable-target-kernel-version=${PREFERRED_VERSION_linux-msm}"
EXTRA_OECONF_append =" --enable-target-uses-media-extensions="no""
EXTRA_OECONF_append_msm8909 =" --enable-targets-that-use-flag-msm8226="yes""
EXTRA_OECONF_append_msm8916 =" --enable-targets-that-use-flag-msm8226="yes""
EXTRA_OECONF_append_msm8953 =" --enable-build-mm-video="yes""
EXTRA_OECONF_append_apq8017 =" --enable-build-mm-video="yes""
EXTRA_OECONF_append_qcs605 =" --enable-build-mm-video="yes""
EXTRA_OECONF_append_qcs605 =" --enable-target-qcs605="yes""
EXTRA_OECONF_append_msm8953 =" --enable-targets-that-support-pq="yes""
EXTRA_OECONF_append_msm8953 =" --enable-targets-that-support-vqzip="yes""
EXTRA_OECONF_append_msm8953 =" --enable-targets-that-support-adsp-pq="yes""
EXTRA_OECONF_append_msm8996 =" --enable-build-mm-video="yes""
EXTRA_OECONF_append_msm8996 =" --enable-is-ubwc-supported="yes""
EXTRA_OECONF_append_msm8996 =" --enable-targets-that-support-pq="yes""
EXTRA_OECONF_append_msm8996 =" --enable-master-side-cp-target-list="yes""
EXTRA_OECONF_append_msm8996 =" --enable-targets-that-support-vqzip="yes""
EXTRA_OECONF_append_msm8998 =" --enable-targets-that-support-vqzip="yes""
EXTRA_OECONF_append_msmcobalt =" --enable-is-ubwc-supported="yes""
EXTRA_OECONF_append =" --enable-targets-use-libgbm="yes""
EXTRA_OECONF_append_sdmsteppe =" --enable-build-mm-video="yes""
EXTRA_OECONF_append_sdmsteppe =" --enable-target-sdmsteppe="yes""
EXTRA_OECONF_append_sdmsteppe =" --enable-vdec-build="no""
EXTRA_OECONF_append_sdmsteppe =" --enable-is-ubwc-supported="yes""
# configure headers
EXTRA_OECONF_append =" --with-glib"
EXTRA_OECONF_append =" --with-ui-headers=${STAGING_INCDIR}/ui/"
EXTRA_OECONF_append =" --with-android-headers=${STAGING_INCDIR}/"
#EXTRA_OECONF_append =" --with-utils-headers=${STAGING_INCDIR}/utils/"
#EXTRA_OECONF_append =" --with-cutils-headers=${STAGING_INCDIR}/cutils/"
EXTRA_OECONF_append =" --with-glib-headers=${STAGING_INCDIR}/glib-2.0/"
EXTRA_OECONF_append =" --with-binder-headers=${STAGING_INCDIR}/binder/"
EXTRA_OECONF_append =" --with-adreno-headers=${STAGING_INCDIR}/adreno/"
EXTRA_OECONF_append =" --with-glib-lib-dir=${STAGING_LIBDIR}/glib-2.0/include"
EXTRA_OECONF_append =" --with-gralloc-headers=${STAGING_INCDIR}/libgralloc/"
EXTRA_OECONF_append =" --with-qdutils-headers=${STAGING_INCDIR}/libqdutils/"
EXTRA_OECONF_append =" --with-libgpustats-headers=${STAGING_INCDIR}/libgpustats/"
EXTRA_OECONF_append =" --with-libpqstats-headers=${STAGING_INCDIR}/libpqstats/"
EXTRA_OECONF_append =" --with-libvqzipstats-headers=${STAGING_INCDIR}/libvqzip/"
EXTRA_OECONF_append =" --with-sanitized-headers=${STAGING_KERNEL_BUILDDIR}/usr/include"
EXTRA_OECONF_append =" --with-display-headers=${STAGING_INCDIR}/qcom/display"
EXTRA_OECONF_append =" --with-media-headers=${STAGING_INCDIR}/media-headers"
EXTRA_OECONF_append_sdmsteppe =" --with-ion-headers=${STAGING_INCDIR}/ion_headers"
EXTRA_OECONF = " --enable-use-glib="yes" \
--enable-target-uses-ion="yes" \
--enable-target-${SOC_FAMILY}="yes" \
--enable-target-kernel-version=${PREFERRED_VERSION_linux-msm} \
--enable-target-uses-media-extensions="no" \
--enable-targets-use-libgbm="yes" \
--with-glib \
--with-ui-headers=${STAGING_INCDIR}/ui/ \
--with-android-headers=${STAGING_INCDIR}/ \
--with-utils-headers=${STAGING_INCDIR}/utils/ \
--with-cutils-headers=${STAGING_INCDIR}/cutils/ \
--with-glib-headers=${STAGING_INCDIR}/glib-2.0/ \
--with-binder-headers=${STAGING_INCDIR}/binder/ \
--with-adreno-headers=${STAGING_INCDIR}/adreno/ \
--with-glib-lib-dir=${STAGING_LIBDIR}/glib-2.0/include \
--with-gralloc-headers=${STAGING_INCDIR}/libgralloc/ \
--with-qdutils-headers=${STAGING_INCDIR}/libqdutils/ \
--with-libgpustats-headers=${STAGING_INCDIR}/libgpustats/ \
--with-libpqstats-headers=${STAGING_INCDIR}/libpqstats/ \
--with-libvqzipstats-headers=${STAGING_INCDIR}/libvqzip/ \
--with-sanitized-headers=${STAGING_KERNEL_BUILDDIR}/usr/include/ \
--with-kernel-headers=${STAGING_INCDIR}/ion_headers/ \
--with-display-headers=${STAGING_INCDIR}/qcom/display \
--with-media-headers=${STAGING_INCDIR}/media-headers \
"
FILES_${PN}-dbg = "${libdir}/.debug/*"
FILES_${PN} = "${libdir}/*.so ${libdir}/*.so.* ${libdir}/*.so.*.*.* ${sysconfdir}/* ${bindir}/* ${libdir}/pkgconfig/*"
......
SUMMARY = "QTI Video opensource package groups"
PACKAGE_ARCH = "${MACHINE_ARCH}"
inherit packagegroup
LICENSE = "BSD-3-Clause"
PROVIDES = "${PACKAGES}"
PACKAGES = ' \
packagegroup-qti-video \
packagegroup-qti-media \
'
RDEPENDS_packagegroup-qti-video += " \
${@bb.utils.contains('COMBINED_FEATURES', 'qti-video', 'packagegroup-qti-media', '', d)} \
"
RDEPENDS_packagegroup-qti-media = " \
media \
"
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment