blob: 075a1d70d0cb47d657796ae6a17cab9ea82508ab [file] [log] [blame]
rjw1f884582022-01-06 17:20:42 +08001DESCRIPTION = "Audio Xml Parameter Parser"
2LICENSE = "MediaTekProprietary"
3LIC_FILES_CHKSUM = "file://LICENSE;md5=e1696b147d49d491bcb4da1a57173fff"
4DEPENDS = "libxml2 alsa-lib platform-libs"
5INCLUDE_ADD = "-I${STAGING_DIR_HOST}/usr/include -I${STAGING_DIR_HOST}/usr/include/libxml2 -I${STAGING_DIR_HOST}/usr/include/logger"
6CFLAGS = ""
7LDFLAGS = "--sysroot ${STAGING_DIR_HOST}"
8CROSS = "${TARGET_PREFIX}"
9CROSS = "${TARGET_PREFIX}"
10
11INSANE_SKIP_${PN} += "installed-vs-shipped"
12FILES_${PN} += "${libdir}/*"
13FILES_${PN} += "/system/etc/audio_param/*"
14FILES_${PN} += "${includedir}"
15
16inherit workonsrc
17WORKONSRC = "${TOPDIR}/../src/multimedia/audio-tuning/audio-xml-parser"
18
19#Skip strip check in QA test.
20INSANE_SKIP_${PN} += "already-stripped"
21EXTRA_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
31do_make () {
32 oe_runmake
33}
34
35do_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}