summaryrefslogtreecommitdiffstats
path: root/external/meta-iot-cloud/recipes-azure/azure-iot-sdk-c/azure-iot-sdk-c.inc
diff options
context:
space:
mode:
Diffstat (limited to 'external/meta-iot-cloud/recipes-azure/azure-iot-sdk-c/azure-iot-sdk-c.inc')
-rw-r--r--external/meta-iot-cloud/recipes-azure/azure-iot-sdk-c/azure-iot-sdk-c.inc38
1 files changed, 38 insertions, 0 deletions
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"