blob: 0cf23d268812285a4fe87e362c747c5b460d803c [file] [log] [blame]
xf.liaa4d92f2023-09-13 00:18:58 -07001DESCRIPTION = "libcodec"
2DEPENDS = ""
3SECTION = "lib"
4LICENSE = "zte"
5PV = "1.0.0"
6PR = "r0"
7LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/zte;md5=c075689d1d1e06d4ab5bbe53623a6808"
8
9#配置code路径信息。
10FILESEXTRAPATHS_prepend :="${APP-OPEN-PATH}/platform:"
11SRC_URI = " \
12 file://libcodec \
13 "
14
15S = "${WORKDIR}"
16#引用公用头文件和编译选项。
17include ${BSPDIR}/sources/meta-zxic/conf/app_com.inc
18
19#编译
20#do_compile () {
21# make -C libcodec
22#}
23
24#库和头文件的安装
25do_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#清库
59do_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包含的文件
70FILES_${PN} += "${libdir}/*.so"
71FILES_${PN}-dbg += "${libdir}/.debug"
72FILES_SOLIBSDEV = ""
73INSANE_SKIP_${PN} = "dev-so"