blob: 3646217319b139e26a4db06ced28c73f3c01d7fc [file] [log] [blame]
rjw1f884582022-01-06 17:20:42 +08001DESCRIPTION = "Audio ctrl service binary"
2LICENSE = "MediaTekProprietary"
3LIC_FILES_CHKSUM = "file://LICENSE;md5=e1696b147d49d491bcb4da1a57173fff"
4
5INSANE_SKIP_${PN} += "installed-vs-shipped"
6
7inherit workonsrc deploy
8WORKONSRC = "${TOPDIR}/../src/multimedia/audio-misc/audio-ctrl-service"
9
10FILES_${PN} += "${libdir}/*"
11FILES_${PN}-dev += "${includedir}"
12PACKAGES = "${PN} ${PN}-dev"
13
14RDEPENDS_${PN} = "audio-ctrl-service-bin"
15
16#Skip strip check in QA test.
17INSANE_SKIP_${PN} += "already-stripped"
18INSANE_SKIP_${PN} += "dev-so"
19EXTRA_OEMAKE = "--file=Makefile.interface"
20
21TARGET_CC_ARCH += "${LDFLAGS}"
22
23do_compile () {
24 oe_runmake
25}
26
27do_install_append () {
28 install -d ${D}${includedir}
29 install -m 0644 ${S}/audio_ctrl_service_api.h ${D}${includedir}
30
31 install -d ${D}/${libdir}
32 install -m 0755 ${S}/libaudio-ctrl-service-interface.so.1.0.0 ${D}${libdir}
33 cd ${D}${libdir}
34 ln -s libaudio-ctrl-service-interface.so.1.0.0 ./libaudio-ctrl-service-interface.so.1
35 ln -s libaudio-ctrl-service-interface.so.1.0.0 ./libaudio-ctrl-service-interface.so
36 cd -
37}