xf.li | 6c8fc1e | 2023-08-12 00:11:09 -0700 | [diff] [blame^] | 1 | DESCRIPTION = "service" |
| 2 | DEPENDS = "libbinder" |
| 3 | SECTION = "app" |
| 4 | LICENSE = "zte" |
| 5 | PV = "1.0.0" |
| 6 | PR = "r0" |
| 7 | |
| 8 | #配置code路径信息。 |
| 9 | FILESEXTRAPATHS_prepend :="${APP-OPEN-PATH}/test:" |
| 10 | SRC_URI = " \ |
| 11 | file://service \ |
| 12 | " |
| 13 | |
| 14 | LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/zte;md5=c075689d1d1e06d4ab5bbe53623a6808" |
| 15 | S = "${WORKDIR}" |
| 16 | |
| 17 | #引用公用头文件和编译选项。 |
| 18 | include ${BSPDIR}/sources/meta-zxic/conf/app_com.inc |
| 19 | |
| 20 | #编译 |
| 21 | do_compile() { |
| 22 | make -C service |
| 23 | } |
| 24 | |
| 25 | #库文件的安装 |
| 26 | do_install() { |
| 27 | install -d ${D}${bindir}/ |
| 28 | install -m 0755 ${S}/service/service ${D}${bindir}/ |
| 29 | |
| 30 | #install elfs |
| 31 | install -d ${ELFS-PATH}/ |
| 32 | install -m 0755 ${S}/service/service ${ELFS-PATH}/ |
| 33 | } |
| 34 | #清库 |
| 35 | do_cleanlibs () { |
| 36 | rm -fr ${ELFS-PATH}/service |
| 37 | } |
| 38 | |
| 39 | addtask cleanlibs after do_clean before do_cleansstate |
| 40 | |
| 41 | #rootfs包含的文件 |
| 42 | FILES_${PN} = "\ |
| 43 | ${bindir}/ \ |
| 44 | " |
| 45 | |
| 46 | RDEPENDS_${PN} = "libbinder" |