rjw | 1f88458 | 2022-01-06 17:20:42 +0800 | [diff] [blame^] | 1 | DESCRIPTION = "Audio ctrl service binary" |
| 2 | LICENSE = "MediaTekProprietary" |
| 3 | LIC_FILES_CHKSUM = "file://LICENSE;md5=e1696b147d49d491bcb4da1a57173fff" |
| 4 | |
| 5 | INSANE_SKIP_${PN} += "installed-vs-shipped" |
| 6 | |
| 7 | inherit workonsrc deploy |
| 8 | WORKONSRC = "${TOPDIR}/../src/multimedia/audio-misc/audio-ctrl-service" |
| 9 | |
| 10 | FILES_${PN} += "${libdir}/*" |
| 11 | FILES_${PN}-dev += "${includedir}" |
| 12 | PACKAGES = "${PN} ${PN}-dev" |
| 13 | |
| 14 | RDEPENDS_${PN} = "audio-ctrl-service-bin" |
| 15 | |
| 16 | #Skip strip check in QA test. |
| 17 | INSANE_SKIP_${PN} += "already-stripped" |
| 18 | INSANE_SKIP_${PN} += "dev-so" |
| 19 | EXTRA_OEMAKE = "--file=Makefile.interface" |
| 20 | |
| 21 | TARGET_CC_ARCH += "${LDFLAGS}" |
| 22 | |
| 23 | do_compile () { |
| 24 | oe_runmake |
| 25 | } |
| 26 | |
| 27 | do_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 | } |