xf.li | aa4d92f | 2023-09-13 00:18:58 -0700 | [diff] [blame] | 1 | DESCRIPTION = "libcodec" |
| 2 | DEPENDS = "" |
| 3 | SECTION = "lib" |
| 4 | LICENSE = "zte" |
| 5 | PV = "1.0.0" |
| 6 | PR = "r0" |
| 7 | LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/zte;md5=c075689d1d1e06d4ab5bbe53623a6808" |
| 8 | |
| 9 | #配置code路径信息。 |
| 10 | FILESEXTRAPATHS_prepend :="${APP-OPEN-PATH}/platform:" |
| 11 | SRC_URI = " \ |
| 12 | file://libcodec \ |
| 13 | " |
| 14 | |
| 15 | S = "${WORKDIR}" |
| 16 | #引用公用头文件和编译选项。 |
| 17 | include ${BSPDIR}/sources/meta-zxic/conf/app_com.inc |
| 18 | |
| 19 | #编译 |
| 20 | #do_compile () { |
| 21 | # make -C libcodec |
| 22 | #} |
| 23 | |
| 24 | #库和头文件的安装 |
| 25 | do_install () { |
| 26 | install -d ${D}${libdir}/ |
| 27 | |
| 28 | install -d ${D}/usr/include |
| 29 | install -d ${D}/usr/include/libavcodec |
| 30 | install -d ${D}/usr/include/libavformat |
| 31 | install -d ${D}/usr/include/libavutil |
| 32 | |
| 33 | install -d ${D}/usr/include/opencore-amrnb |
| 34 | install -d ${D}/usr/include/opencore-amrwb |
| 35 | |
| 36 | install -d ${D}/usr/include/vo-amrwbenc |
| 37 | install -d ${D}/usr/include/fdk-aac |
| 38 | |
| 39 | install -m 0755 ${S}/libcodec/lib/*.a ${D}${libdir}/ |
| 40 | |
| 41 | install -m 0644 ${S}/libcodec/include/libavcodec/*.h ${D}/usr/include/libavcodec |
| 42 | install -m 0644 ${S}/libcodec/include/libavformat/*.h ${D}/usr/include/libavformat |
| 43 | install -m 0644 ${S}/libcodec/include/libavutil/*.h ${D}/usr/include/libavutil |
| 44 | |
| 45 | install -m 0644 ${S}/libcodec/include/opencore-amrnb/*.h ${D}/usr/include/opencore-amrnb |
| 46 | install -m 0644 ${S}/libcodec/include/opencore-amrwb/*.h ${D}/usr/include/opencore-amrwb |
| 47 | |
| 48 | install -m 0644 ${S}/libcodec/include/vo-amrwbenc/*.h ${D}/usr/include/vo-amrwbenc |
| 49 | install -m 0644 ${S}/libcodec/include/fdk-aac/*.h ${D}/usr/include/fdk-aac |
| 50 | |
| 51 | |
| 52 | #install elfs |
| 53 | install -d ${ELFS-PATH}/ |
| 54 | |
| 55 | install -m 0755 ${S}/libcodec/lib/*.a ${ELFS-PATH}/ |
| 56 | } |
| 57 | |
| 58 | #清库 |
| 59 | do_cleanlibs () { |
| 60 | rm -fr ${ELFS-PATH}/libfdk-aac.a |
| 61 | rm -fr ${ELFS-PATH}/libvo-amrwbenc.a |
| 62 | rm -fr ${ELFS-PATH}/libopencore-amrnb.a |
| 63 | rm -fr ${ELFS-PATH}/libopencore-amrwb.a |
| 64 | rm -fr ${ELFS-PATH}/libavcodec.a |
| 65 | rm -fr ${ELFS-PATH}/libavformat.a |
| 66 | rm -fr ${ELFS-PATH}/libavutil.a |
| 67 | } |
| 68 | |
| 69 | #rootfs包含的文件 |
| 70 | FILES_${PN} += "${libdir}/*.so" |
| 71 | FILES_${PN}-dbg += "${libdir}/.debug" |
| 72 | FILES_SOLIBSDEV = "" |
| 73 | INSANE_SKIP_${PN} = "dev-so" |