SUMMARY = "AWS C IoT" DESCRIPTION = "C99 implementation of AWS IoT cloud services integration with devices" HOMEPAGE = "https://github.com/awslabs/aws-c-iot" LICENSE = "Apache-2.0" LIC_FILES_CHKSUM = "file://LICENSE;md5=2ee41112a44fe7014dce33e26468ba93" DEPENDS += "\ aws-c-auth \ aws-c-common \ aws-c-event-stream \ aws-c-http \ aws-c-io \ aws-c-mqtt \ aws-c-s3 \ aws-checksums \ aws-crt-cpp \ s2n \ openssl \ " PROVIDES += "aws/aws-c-iot" BRANCH ?= "main" SRC_URI = "\ git://github.com/awslabs/aws-c-iot.git;protocol=https;branch=${BRANCH} \ file://run-ptest \ " SRCREV = "646f9e86eb35e12f45180761e47ebb9ed47923d5" S = "${WORKDIR}/git" inherit cmake ptest pkgconfig PACKAGECONFIG ??= "\ ${@bb.utils.contains('PTEST_ENABLED', '1', 'with-tests', '', d)} \ " # enable PACKAGECONFIG = "static" to build static instead of shared libs PACKAGECONFIG[static] = "-DBUILD_SHARED_LIBS=OFF,-DBUILD_SHARED_LIBS=ON" # CMAKE_CROSSCOMPILING=ON will disable building the tests PACKAGECONFIG[with-tests] = "-DBUILD_TESTING=ON -DCMAKE_CROSSCOMPILING=OFF,-DBUILD_TESTING=OFF," FILES:${PN}-dev += "${libdir}/*/cmake" CFLAGS:append = " -Wl,-Bsymbolic" EXTRA_OECMAKE += "\ -DCMAKE_MODULE_PATH=${STAGING_LIBDIR}/cmake \ -DCMAKE_PREFIX_PATH=$D/usr \ -DCMAKE_INSTALL_PREFIX=$D/usr \ " do_install_ptest () { install -d ${D}${PTEST_PATH}/tests cp -r ${B}/tests/* ${D}${PTEST_PATH}/tests/ install -m 0755 ${B}/tests/aws-c-iot-tests ${D}${PTEST_PATH}/tests/ } BBCLASSEXTEND = "native nativesdk"