| DESCRIPTION = "libsofttimer" |
| SECTION = "lib" |
| LICENSE = "zte" |
| PV = "1.0.0" |
| PR = "r0" |
| LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/zte;md5=c075689d1d1e06d4ab5bbe53623a6808" |
| #配置code路径信息。 |
| FILESEXTRAPATHS_prepend :="${APP-OPEN-PATH}:" |
| SRC_URI = " \ |
| file://libsofttimer \ |
| " |
| |
| DEPENDS = "" |
| S = "${WORKDIR}" |
| #引用公用头文件和编译选项。 |
| include ${BSPDIR}/sources/meta-zxic/conf/app_com.inc |
| |
| do_compile () { |
| make -C libsofttimer |
| } |
| |
| do_install () { |
| install -d ${D}${libdir}/ |
| install -d ${D}/usr/include |
| install -m 0755 ${S}/libsofttimer/libsofttimer.so ${D}${libdir}/ |
| install -m 0755 ${S}/libsofttimer/libsofttimer.a ${D}${libdir}/ |
| ln -s -r ${D}${libdir}/libsofttimer.a ${D}${libdir}/libsoft_timer.a |
| ln -s -r ${D}${libdir}/libsofttimer.so ${D}${libdir}/libsoft_timer.so |
| install -m 0644 ${S}/libsofttimer/soft_timer.h ${D}/usr/include/ |
| |
| install -d ${ELFS-PATH}/ |
| install -m 0755 ${S}/libsofttimer/libsofttimer.so ${ELFS-PATH}/ |
| rm -fv ${ELFS-PATH}/libsoft_timer.so && ln -s -r ${ELFS-PATH}/libsofttimer.so ${ELFS-PATH}/libsoft_timer.so |
| } |
| |
| #清库 |
| do_cleanlibs () { |
| rm -fv ${ELFS-PATH}/libsofttimer.so |
| rm -fv ${ELFS-PATH}/libsoft_timer.so |
| } |
| |
| addtask cleanlibs after do_clean before do_cleansstate |
| |
| FILES_${PN} += "${libdir}/*.so" |
| FILES_${PN}-dbg += "${libdir}/.debug" |
| FILES_SOLIBSDEV = "" |
| INSANE_SKIP_${PN} = "dev-so" |