diff --git a/meta-ohos-foundation/recipes-interfaces/iam-kits/iam-kits_git.bb b/meta-ohos-foundation/recipes-interfaces/iam-kits/iam-kits_git.bb new file mode 100644 index 0000000000000000000000000000000000000000..b0a8aa762356fc29ee6c1c368179f822257dc8be --- /dev/null +++ b/meta-ohos-foundation/recipes-interfaces/iam-kits/iam-kits_git.bb @@ -0,0 +1,16 @@ +SUMMARY = "OHOS interface kits for IAM lite" +DESCRIPTION = "Interface kits for the application permission management" +LICENSE = "Apache-2.0" +LIC_FILES_CHKSUM = "file://LICENSE;md5=98c2e72b17fae6c40fb14fd5e43b29ec" + +SRC_URI = "git://gitee.com/openharmony/security_interfaces_kits_iam_lite.git;protocol=https" + +PV = "1.0+git${SRCPV}" +SRCREV = "ae411bce509c90bb09b49f2f3371f116313880d6" + +S = "${WORKDIR}/git" + +do_install () { + install -d ${D}${includedir} + install -m 0755 ${S}/*.h ${D}${includedir}/ +} diff --git a/meta-ohos-foundation/recipes-security/iam-lite/iam-lite_git.bb b/meta-ohos-foundation/recipes-security/iam-lite/iam-lite_git.bb new file mode 100644 index 0000000000000000000000000000000000000000..caf63ce9f5f29cbc869ad4dc9669d9e7609651e5 --- /dev/null +++ b/meta-ohos-foundation/recipes-security/iam-lite/iam-lite_git.bb @@ -0,0 +1,31 @@ +SUMMARY = "IAM lite" +DESCRIPTION = "Application permission management" +LICENSE = "Apache-2.0" +LIC_FILES_CHKSUM = "file://LICENSE;md5=98c2e72b17fae6c40fb14fd5e43b29ec" + +DEPENDS += "utils-native-lite samgr-kits hiviewdfx-innerkits-hilog" + +SRC_URI = "git://gitee.com/openharmony/security_services_iam_lite.git;protocol=https" + +PV = "1.0+git${SRCPV}" +PVSHORT = '${@d.getVar("PV", False).split("+")[0]}' +PVMAJOR = '${@d.getVar("PV", False).split(".")[0]}' + +SRCREV = "ff4d69b9d1b6a31ebf0c14b2ce6cb8f6122e3340" + +S = "${WORKDIR}/git" + +CFLAGS_IAM = "${CFLAGS} -I${S}/pms_base/include -fPIC -shared" +LDFLAGS_IAM = "${LDFLAGS} -L${B} -Wl,-soname,lib${PN}.so.${PVMAJOR}" + +do_compile () { + ${CC} ${CFLAGS_IAM} ${LDFLAGS_IAM} ${S}/pms_base/src/permission_service.c \ + -o ${B}/lib${PN}.so.${PVSHORT} +} + +do_install () { + install -d ${D}${includedir} + install -m 0755 ${S}/pms_base/include/*.h ${D}${includedir}/ + install -d ${D}${libdir} + oe_soinstall ${B}/lib${PN}.so.${PVSHORT} ${D}${libdir} +}