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 0000000000000000000000000000000000000000..cd57f9944a55ed3a0f438ec31a5f94b2ab25a857 --- /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 0000000000000000000000000000000000000000..f847b6613b60bdc4be63b4a3a3f4395c17f24bcd --- /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}/ +}