blob: 3d7240fedeb3498980f38a087906657312f4df6f [file] [log] [blame]
lh9ed821d2023-04-07 01:36:19 -07001DESCRIPTION = "libsqlite"
2SECTION = "lib"
3LICENSE = "zte"
4PV = "1.0.0"
5PR = "r0"
6LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/zte;md5=c075689d1d1e06d4ab5bbe53623a6808"
7
8#配置code路径信息。
9FILESEXTRAPATHS_prepend :="${APP-OPEN-PATH}:"
10SRC_URI = " \
11 file://libsqlite \
12 "
13
14DEPENDS = ""
15S = "${WORKDIR}"
16#引用公用头文件和编译选项。
17include ${BSPDIR}/sources/meta-zxic/conf/app_com.inc
18
19do_compile () {
20 make -C libsqlite
21}
22
23do_install () {
24 install -d ${D}${libdir}/
25 install -d ${D}/usr/include
26 install -m 0755 ${S}/libsqlite/libsqlite.so ${D}${libdir}/
27 install -m 0755 ${S}/libsqlite/libsqlite.a ${D}${libdir}/
28
29 install -m 0644 ${S}/libsqlite/sqlite3.h ${D}/usr/include
30
31 install -d ${ELFS-PATH}/
32 install -m 0755 ${S}/libsqlite/libsqlite.so ${ELFS-PATH}/
33}
34
35#清库
36do_cleanlibs () {
37 rm -fr ${ELFS-PATH}/libsqlite.so
38}
39
40FILES_${PN} += "${libdir}/*.so"
41FILES_${PN}-dbg += "${libdir}/.debug"
42FILES_SOLIBSDEV = ""
43INSANE_SKIP_${PN} = "dev-so"