<commit_before>DESCRIPTION = "Azure IoT Edge"

require azure-iot-edge.inc
require azure-iot-edge-legacy.inc

inherit cmake pkgconfig

DEPENDS = "\
	glib-2.0 \
	azure-iot-sdk \
	nanomsg \
	libuv \
"

# Modbus
SRC_URI += "git://github.com/Azure/iot-gateway-modbus.git;destsuffix=git-modbus;name=modbus"
SRCREV_modbus = "7daeca02df909278c775112e04d8255240cda48c"

# SQLite
SRC_URI += "git://github.com/Azure/iot-gateway-sqlite.git;destsuffix=git-sqlite;name=sqlite"
SRCREV_sqlite = "4fbf57d0c674f6ad41372ff2ba4b86a1380f1111"

SRC_URI += "\
	file://0001-Skip-adding-test-dependencies-if-not-required.patch \
	file://0002-Fix-nanomsg-library-detection.patch \
	file://0003-Skip-parson-submodule-init.patch \
	file://0004-Include-parson-with-main-library.patch \
	file://0005-Use-shared-openssl.patch \
	file://0006-Use-shared-libuv.patch \
"

SRC_URI += "\
	file://azure-functions-sample.sh \
	file://ble-gateway-sample.sh \
	file://dynamically-add-module-sample.sh \
	file://hello-world-sample.sh \
	file://modbus-sample.sh \
	file://native-module-host-sample.sh \
	file://proxy-sample.sh \
	file://simulated-device-cloud-upload-sample.sh \
	file://sqlite-sample.sh \
	file://azure-functions-module.sh \
	file://ble-module.sh \
	file://hello-world-module.sh \
	file://identitymap-module.sh \
	file://iothub-module.sh \
	file://logger-module.sh \
	file://simulated-device-module.sh \
"

PR = "r2"

S = "${WORKDIR}/git"
B = "${WORKDIR}/build"

# Default packages
PACKAGES = "\
	${PN} \
	${PN}-dev \
	${PN}-dbg \
	${PN}-modules \
	${PN}-modules-src \
	${PN}-samples \
	${PN}-samples-src \
	${PN}-dotnetcore \
	${PN}-java \
	${PN}-nodejs \
"

# Additional packages<commit_msg>Azure IoT SDK: Enable override of build directory for older Yocto versions<commit_after>DESCRIPTION = "Azure IoT Edge"

require azure-iot-edge.inc
require azure-iot-edge-legacy.inc

inherit cmake pkgconfig

DEPENDS = "\
	glib-2.0 \
	azure-iot-sdk \
	nanomsg \
	libuv \
"

# Modbus
SRC_URI += "git://github.com/Azure/iot-gateway-modbus.git;destsuffix=git-modbus;name=modbus"
SRCREV_modbus = "7daeca02df909278c775112e04d8255240cda48c"

# SQLite
SRC_URI += "git://github.com/Azure/iot-gateway-sqlite.git;destsuffix=git-sqlite;name=sqlite"
SRCREV_sqlite = "4fbf57d0c674f6ad41372ff2ba4b86a1380f1111"

SRC_URI += "\
	file://0001-Skip-adding-test-dependencies-if-not-required.patch \
	file://0002-Fix-nanomsg-library-detection.patch \
	file://0003-Skip-parson-submodule-init.patch \
	file://0004-Include-parson-with-main-library.patch \
	file://0005-Use-shared-openssl.patch \
	file://0006-Use-shared-libuv.patch \
"

SRC_URI += "\
	file://azure-functions-sample.sh \
	file://ble-gateway-sample.sh \
	file://dynamically-add-module-sample.sh \
	file://hello-world-sample.sh \
	file://modbus-sample.sh \
	file://native-module-host-sample.sh \
	file://proxy-sample.sh \
	file://simulated-device-cloud-upload-sample.sh \
	file://sqlite-sample.sh \
	file://azure-functions-module.sh \
	file://ble-module.sh \
	file://hello-world-module.sh \
	file://identitymap-module.sh \
	file://iothub-module.sh \
	file://logger-module.sh \
	file://simulated-device-module.sh \
"

PR = "r2"

S = "${WORKDIR}/git"
B ?= "${WORKDIR}/build"

# Default packages
PACKAGES = "\
	${PN} \
	${PN}-dev \
	${PN}-dbg \
	${PN}-modules \
	${PN}-modules-src \
	${PN}-samples \
	${PN}-samples-src \
	${PN}-dotnetcore \
	${PN}-java \
	${PN}-nodejs \
"

# Additional packages
{'fraction_non_alphanumeric': 0.1877575044143614, 'fraction_numerical': 0.04590935844614479, 'mean_word_length': 3.4028497409326426, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2647006', 'n_tokens_mistral': 1468, 'n_tokens_neox': 1363, 'n_words': 152}