From 3c321861cfeab9c87dfcf0e3cdc951d490bb45a8 Mon Sep 17 00:00:00 2001 From: Zbigniew Bodek <zbigniew.bodek@huawei.com> Date: Thu, 17 Dec 2020 11:16:28 +0000 Subject: [PATCH] Introduce hiviewdfx recipes Provides hilog dependency to those who need to use hilog functions. Signed-off-by: Zbigniew Bodek <zbigniew.bodek@huawei.com> --- .../hiviewdfx-hilog/hiviewdfx-hilog_git.bb | 28 +++++++++++++++++++ .../hiviewdfx-innerkits-hilog_git.bb | 16 +++++++++++ 2 files changed, 44 insertions(+) create mode 100644 recipes-frameworks/hiviewdfx-hilog/hiviewdfx-hilog_git.bb create mode 100644 recipes-interfaces/hiviewdfx-innerkits-hilog/hiviewdfx-innerkits-hilog_git.bb diff --git a/recipes-frameworks/hiviewdfx-hilog/hiviewdfx-hilog_git.bb b/recipes-frameworks/hiviewdfx-hilog/hiviewdfx-hilog_git.bb new file mode 100644 index 00000000..cd57f994 --- /dev/null +++ b/recipes-frameworks/hiviewdfx-hilog/hiviewdfx-hilog_git.bb @@ -0,0 +1,28 @@ +SUMMARY = "Hiviewdfx Hilog" +DESCRIPTION = "Hiviewdfx Hilog logging module" +LICENSE = "Apache-2.0" +LIC_FILES_CHKSUM = "file://LICENSE;md5=98c2e72b17fae6c40fb14fd5e43b29ec" + +DEPENDS += "hiviewdfx-innerkits-hilog libsec" + +SRC_URI = "git://gitee.com/openharmony/hiviewdfx_frameworks_hilog_lite.git;protocol=https" + +PV = "1.0+git${SRCPV}" +PVSHORT = '${@d.getVar("PV", False).split("+")[0]}' +PVMAJOR = '${@d.getVar("PV", False).split(".")[0]}' + +SRCREV = "e8b70de7579e2634b16fac90adbc5d10755dae2e" + +S = "${WORKDIR}/git" + +CFLAGS += "-I${S}/include -fPIC -shared" +LDFLAGS += "-Wl,-soname,lib${PN}.so.${PVMAJOR} -lsec" + +do_compile () { + ${CC} ${CFLAGS} ${LDFLAGS} featured/*.c -o ${B}/lib${PN}.so.${PVSHORT} +} + +do_install () { + install -d ${D}${libdir} + oe_soinstall ${B}/lib${PN}.so.${PVSHORT} ${D}${libdir} +} diff --git a/recipes-interfaces/hiviewdfx-innerkits-hilog/hiviewdfx-innerkits-hilog_git.bb b/recipes-interfaces/hiviewdfx-innerkits-hilog/hiviewdfx-innerkits-hilog_git.bb new file mode 100644 index 00000000..f847b661 --- /dev/null +++ b/recipes-interfaces/hiviewdfx-innerkits-hilog/hiviewdfx-innerkits-hilog_git.bb @@ -0,0 +1,16 @@ +SUMMARY = "OHOS Hiviewdfx innerkits" +DESCRIPTION = "OHOS interface innerkits for Hiviewdfx" +LICENSE = "Apache-2.0" +LIC_FILES_CHKSUM = "file://LICENSE;md5=98c2e72b17fae6c40fb14fd5e43b29ec" + +SRC_URI = "git://gitee.com/openharmony/hiviewdfx_interfaces_innerkits_hilog.git;protocol=https" + +PV = "1.0+git${SRCPV}" +SRCREV = "6a2507b98ba606af7383869be084a8ecbec6b095" + +S = "${WORKDIR}/git" + +do_install () { + install -d ${D}${includedir} + install -m 0755 ${S}/*.h ${D}${includedir}/ +} -- GitLab