rjw | 1f88458 | 2022-01-06 17:20:42 +0800 | [diff] [blame^] | 1 | DESCRIPTION = "Audio Xml Parameter Parser" |
| 2 | LICENSE = "MediaTekProprietary" |
| 3 | LIC_FILES_CHKSUM = "file://LICENSE;md5=e1696b147d49d491bcb4da1a57173fff" |
| 4 | DEPENDS = "libxml2 alsa-lib platform-libs" |
| 5 | INCLUDE_ADD = "-I${STAGING_DIR_HOST}/usr/include -I${STAGING_DIR_HOST}/usr/include/libxml2 -I${STAGING_DIR_HOST}/usr/include/logger" |
| 6 | CFLAGS = "" |
| 7 | LDFLAGS = "--sysroot ${STAGING_DIR_HOST}" |
| 8 | CROSS = "${TARGET_PREFIX}" |
| 9 | CROSS = "${TARGET_PREFIX}" |
| 10 | |
| 11 | INSANE_SKIP_${PN} += "installed-vs-shipped" |
| 12 | FILES_${PN} += "${libdir}/*" |
| 13 | FILES_${PN} += "/system/etc/audio_param/*" |
| 14 | FILES_${PN} += "${includedir}" |
| 15 | |
| 16 | inherit workonsrc |
| 17 | WORKONSRC = "${TOPDIR}/../src/multimedia/audio-tuning/audio-xml-parser" |
| 18 | |
| 19 | #Skip strip check in QA test. |
| 20 | INSANE_SKIP_${PN} += "already-stripped" |
| 21 | EXTRA_OEMAKE = "'CROSS=${CROSS}'\ |
| 22 | 'CC=${CC}'\ |
| 23 | 'ROOT=${STAGING_DIR_HOST}'\ |
| 24 | 'PREFIX=${BACH_PREFIX}'\ |
| 25 | 'PACKAGE_ARCH=${PACKAGE_ARCH}'\ |
| 26 | 'BB_INCLUDE_ADD=${INCLUDE_ADD}'\ |
| 27 | 'BB_LDFLAGS_ADD=${LDFLAGS}'\ |
| 28 | 'BB_CFLAGS_ADD=${CFLAGS}'\ |
| 29 | 'TARGET_PLATFORM=${TARGET_PLATFORM}'" |
| 30 | |
| 31 | do_make () { |
| 32 | oe_runmake |
| 33 | } |
| 34 | |
| 35 | do_install () { |
| 36 | oe_runmake install ROOT=${D} |
| 37 | install -d ${D}/${libdir} |
| 38 | install -m 0755 ${S}/libaudioparamparser.so.1.0.0 ${D}/${libdir} |
| 39 | cd ${D}${libdir} |
| 40 | ln -s libaudioparamparser.so.1.0.0 ./libaudioparamparser.so.1 |
| 41 | ln -s libaudioparamparser.so.1.0.0 ./libaudioparamparser.so |
| 42 | cd - |
| 43 | install -d ${D}/system |
| 44 | install -d ${D}/system/etc |
| 45 | install -d ${D}/system/etc/audio_param |
| 46 | install -m 0444 ${S}/audio_param/* ${D}/system/etc/audio_param |
| 47 | |
| 48 | install -d ${D}${includedir} |
| 49 | cp -r ${S}/export_include/libxml ${D}${includedir} |
| 50 | install -m 0444 ${S}/export_include/utstring.h ${D}${includedir} |
| 51 | install -m 0444 ${S}/export_include/uthash.h ${D}${includedir} |
| 52 | install -m 0444 ${S}/export_include/utlist.h ${D}${includedir} |
| 53 | install -m 0444 ${S}/export_include/AudioParamParser.h ${D}${includedir} |
| 54 | install -m 0444 ${S}/export_include/AudioParamParserPriv.h ${D}${includedir} |
| 55 | } |