From 1c7d6584a7811b7785ae5c1e378f14b5ba0971cf Mon Sep 17 00:00:00 2001 From: takeshi_hoshina Date: Mon, 2 Nov 2020 11:07:33 +0900 Subject: basesystem-jj recipes --- .../azure-iot-sdk-c/azure-iot-sdk-c.inc | 38 ++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 external/meta-iot-cloud/recipes-azure/azure-iot-sdk-c/azure-iot-sdk-c.inc (limited to 'external/meta-iot-cloud/recipes-azure/azure-iot-sdk-c/azure-iot-sdk-c.inc') diff --git a/external/meta-iot-cloud/recipes-azure/azure-iot-sdk-c/azure-iot-sdk-c.inc b/external/meta-iot-cloud/recipes-azure/azure-iot-sdk-c/azure-iot-sdk-c.inc new file mode 100644 index 00000000..547e0b0a --- /dev/null +++ b/external/meta-iot-cloud/recipes-azure/azure-iot-sdk-c/azure-iot-sdk-c.inc @@ -0,0 +1,38 @@ +inherit cmake + +DEPENDS = "\ + azure-c-shared-utility \ + parson \ +" + +SRC_URI += "\ + file://Fix-cmake-build-issues.patch \ + file://Use-provided-parson-lib.patch \ +" + +S = "${WORKDIR}/git" +B = "${WORKDIR}/build" + +PACKAGECONFIG ??= "amqp http mqtt" +PACKAGECONFIG[amqp] = "-Duse_amqp:BOOL=ON, -Duse_amqp:BOOL=OFF, azure-uamqp-c" +PACKAGECONFIG[edge] = "-Duse_edge_modules:BOOL=ON, -Duse_edge_modules:BOOL=OFF, azure-uhttp-c" +PACKAGECONFIG[http] = "-Duse_http:BOOL=ON, -Duse_http:BOOL=OFF, azure-uhttp-c" +PACKAGECONFIG[mqtt] = "-Duse_mqtt:BOOL=ON, -Duse_mqtt:BOOL=OFF, azure-umqtt-c" + +EXTRA_OECMAKE = "\ + -Dbuild_as_dynamic:BOOL=ON \ + -Dskip_samples:BOOL=ON \ + -Duse_installed_dependencies:BOOL=ON \ + -Dbuild_service_client:BOOL=OFF \ + -Dbuild_provisioning_service_client:BOOL=OFF \ +" + +sysroot_stage_all_append () { + sysroot_stage_dir ${D}${exec_prefix}/cmake ${SYSROOT_DESTDIR}${exec_prefix}/cmake +} + +FILES_${PN}-dev += "\ + ${exec_prefix}/cmake \ +" + +BBCLASSEXTEND = "native nativesdk" -- cgit 1.2.3-korg