blob: 075a1d70d0cb47d657796ae6a17cab9ea82508ab [file] [log] [blame]
DESCRIPTION = "Audio Xml Parameter Parser"
LICENSE = "MediaTekProprietary"
LIC_FILES_CHKSUM = "file://LICENSE;md5=e1696b147d49d491bcb4da1a57173fff"
DEPENDS = "libxml2 alsa-lib platform-libs"
INCLUDE_ADD = "-I${STAGING_DIR_HOST}/usr/include -I${STAGING_DIR_HOST}/usr/include/libxml2 -I${STAGING_DIR_HOST}/usr/include/logger"
CFLAGS = ""
LDFLAGS = "--sysroot ${STAGING_DIR_HOST}"
CROSS = "${TARGET_PREFIX}"
CROSS = "${TARGET_PREFIX}"
INSANE_SKIP_${PN} += "installed-vs-shipped"
FILES_${PN} += "${libdir}/*"
FILES_${PN} += "/system/etc/audio_param/*"
FILES_${PN} += "${includedir}"
inherit workonsrc
WORKONSRC = "${TOPDIR}/../src/multimedia/audio-tuning/audio-xml-parser"
#Skip strip check in QA test.
INSANE_SKIP_${PN} += "already-stripped"
EXTRA_OEMAKE = "'CROSS=${CROSS}'\
'CC=${CC}'\
'ROOT=${STAGING_DIR_HOST}'\
'PREFIX=${BACH_PREFIX}'\
'PACKAGE_ARCH=${PACKAGE_ARCH}'\
'BB_INCLUDE_ADD=${INCLUDE_ADD}'\
'BB_LDFLAGS_ADD=${LDFLAGS}'\
'BB_CFLAGS_ADD=${CFLAGS}'\
'TARGET_PLATFORM=${TARGET_PLATFORM}'"
do_make () {
oe_runmake
}
do_install () {
oe_runmake install ROOT=${D}
install -d ${D}/${libdir}
install -m 0755 ${S}/libaudioparamparser.so.1.0.0 ${D}/${libdir}
cd ${D}${libdir}
ln -s libaudioparamparser.so.1.0.0 ./libaudioparamparser.so.1
ln -s libaudioparamparser.so.1.0.0 ./libaudioparamparser.so
cd -
install -d ${D}/system
install -d ${D}/system/etc
install -d ${D}/system/etc/audio_param
install -m 0444 ${S}/audio_param/* ${D}/system/etc/audio_param
install -d ${D}${includedir}
cp -r ${S}/export_include/libxml ${D}${includedir}
install -m 0444 ${S}/export_include/utstring.h ${D}${includedir}
install -m 0444 ${S}/export_include/uthash.h ${D}${includedir}
install -m 0444 ${S}/export_include/utlist.h ${D}${includedir}
install -m 0444 ${S}/export_include/AudioParamParser.h ${D}${includedir}
install -m 0444 ${S}/export_include/AudioParamParserPriv.h ${D}${includedir}
}