blob: 3646217319b139e26a4db06ced28c73f3c01d7fc [file] [log] [blame]
DESCRIPTION = "Audio ctrl service binary"
LICENSE = "MediaTekProprietary"
LIC_FILES_CHKSUM = "file://LICENSE;md5=e1696b147d49d491bcb4da1a57173fff"
INSANE_SKIP_${PN} += "installed-vs-shipped"
inherit workonsrc deploy
WORKONSRC = "${TOPDIR}/../src/multimedia/audio-misc/audio-ctrl-service"
FILES_${PN} += "${libdir}/*"
FILES_${PN}-dev += "${includedir}"
PACKAGES = "${PN} ${PN}-dev"
RDEPENDS_${PN} = "audio-ctrl-service-bin"
#Skip strip check in QA test.
INSANE_SKIP_${PN} += "already-stripped"
INSANE_SKIP_${PN} += "dev-so"
EXTRA_OEMAKE = "--file=Makefile.interface"
TARGET_CC_ARCH += "${LDFLAGS}"
do_compile () {
oe_runmake
}
do_install_append () {
install -d ${D}${includedir}
install -m 0644 ${S}/audio_ctrl_service_api.h ${D}${includedir}
install -d ${D}/${libdir}
install -m 0755 ${S}/libaudio-ctrl-service-interface.so.1.0.0 ${D}${libdir}
cd ${D}${libdir}
ln -s libaudio-ctrl-service-interface.so.1.0.0 ./libaudio-ctrl-service-interface.so.1
ln -s libaudio-ctrl-service-interface.so.1.0.0 ./libaudio-ctrl-service-interface.so
cd -
}