blob: 99cff3b04ba92464c69d956b2acb2166a6e0d8f5 [file] [log] [blame]
xf.li7ccf8372024-03-07 00:08:02 -08001DESCRIPTION = "libscrtc"
2DEPENDS = "libscipc libsofttimer libsoftap libnvram"
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}/sdk:"
11SRC_URI = " \
12 file://libscrtc \
13 "
14
15S = "${WORKDIR}"
16#引用公用头文件和编译选项。
17include ${BSPDIR}/sources/meta-zxic/conf/app_com.inc
18CFLAGS_append = "-I ${BSPDIR}/zxic_code/zxic_source/zxic_app_open/platform/at_ctl/inc"
19
20do_compile () {
21 make -C libscrtc
22}
23
24do_install () {
25 install -d ${D}${libdir}/
26 install -d ${D}/usr/include
27
28 install -m 0755 ${S}/libscrtc/libscrtc.so ${D}${libdir}/
29 install -m 0755 ${S}/libscrtc/libscrtc.a ${D}${libdir}/
30
31 install -m 0644 ${S}/libscrtc/*.h ${D}/usr/include/
32
33 #install elfs
34 install -d ${ELFS-PATH}/
35 install -m 0755 ${S}/libscrtc/libscrtc.so ${ELFS-PATH}/
36}
37
38#清库
39do_cleanlibs () {
40 rm -fr ${ELFS-PATH}/libscrtc.so
41}
42
43FILES_${PN} += "${libdir}/*.so"
44FILES_${PN}-dbg += "${libdir}/.debug"
45FILES_SOLIBSDEV = ""
46INSANE_SKIP_${PN} = "dev-so"
47RDEPENDS_${PN} = " libscipc libsofttimer libsoftap libnvram"